[Powerpc] Tune/optimize powerpc{32,64}/power7/memchr.S.
[glibc.git] / nptl_db / db-symbols.h
blobf87113a5df6a8073af0f3305f4fe4d9f629f5efe
1 /* List of symbols in libpthread examined by libthread_db.
2 Copyright (C) 2009 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <http://www.gnu.org/licenses/>. */
19 #ifdef HAVE_ASM_GLOBAL_DOT_NAME
20 # define DOT(x) .##x /* PPC64 requires . prefix on code symbols. */
21 #else
22 # define DOT(x) x /* No prefix. */
23 #endif
25 #define STRINGIFY(name) STRINGIFY_1(name)
26 #define STRINGIFY_1(name) #name
28 #define DB_STRUCT(type) \
29 DB_LOOKUP_NAME (SYM_SIZEOF_##type, _thread_db_sizeof_##type)
30 #define DB_STRUCT_FIELD(type, field) \
31 DB_LOOKUP_NAME (SYM_##type##_FIELD_##field, _thread_db_##type##_##field)
32 #define DB_SYMBOL(name) \
33 DB_LOOKUP_NAME (SYM_##name, name)
34 #define DB_FUNCTION(name) \
35 DB_LOOKUP_NAME (SYM_##name, DOT (name))
36 #define DB_VARIABLE(name) \
37 DB_LOOKUP_NAME (SYM_##name, name) \
38 DB_LOOKUP_NAME (SYM_DESC_##name, _thread_db_##name)
40 # include "structs.def"
42 # undef DB_STRUCT
43 # undef DB_FUNCTION
44 # undef DB_SYMBOL
45 # undef DB_VARIABLE
46 # undef DOT
48 DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_REGISTER64, _thread_db_register64)
49 DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_REGISTER32, _thread_db_register32)
50 DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_CONST_THREAD_AREA,
51 _thread_db_const_thread_area)
52 DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_REGISTER32_THREAD_AREA,
53 _thread_db_register32_thread_area)
54 DB_LOOKUP_NAME_TH_UNIQUE (SYM_TH_UNIQUE_REGISTER64_THREAD_AREA,
55 _thread_db_register64_thread_area)