diff options
author | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-11-20 11:42:00 +0530 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@redhat.com> | 2014-11-24 11:41:42 +0530 |
commit | 279bc5b3c384c09746fbadb2b68c6db9e833c064 (patch) | |
tree | e0f6a347b712368adaef58c3befa459d6c262117 /include/libc-symbols.h | |
parent | e0cfa51064489fdff85953bad1e0f3c42e093662 (diff) | |
download | glibc-279bc5b3c384c09746fbadb2b68c6db9e833c064.tar.gz glibc-279bc5b3c384c09746fbadb2b68c6db9e833c064.tar.xz glibc-279bc5b3c384c09746fbadb2b68c6db9e833c064.zip |
Use MODULE_NAME in stap-probe instead of IN_LIB
Define MODULE_NAME in the build command and define IN_MODULE using MODULE_NAME. Verified that the generated code is unchanged on x86_64. * Makeconfig (module-cppflags-real): Define MODULE_NAME instead of IN_MODULE. * include/libc-symbols.h (IN_MODULE): Define using MODULE_NAME. (PASTE_NAME, PASTE_NAME1): New macros. * include/stap-probe.h (LIBC_PROBE_1): Use MODULE_NAME instead of IN_LIB. (STAP_PROBE_ASM): Likewise.
Diffstat (limited to 'include/libc-symbols.h')
-rw-r--r-- | include/libc-symbols.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/libc-symbols.h b/include/libc-symbols.h index 9c5c9bb850..5cbf47308d 100644 --- a/include/libc-symbols.h +++ b/include/libc-symbols.h @@ -20,8 +20,12 @@ #ifndef _LIBC_SYMBOLS_H #define _LIBC_SYMBOLS_H 1 +#define IN_MODULE PASTE_NAME (MODULE_, MODULE_NAME) #define IS_IN(lib) (IN_MODULE == MODULE_##lib) +#define PASTE_NAME(a,b) PASTE_NAME1 (a,b) +#define PASTE_NAME1(a,b) a##b + /* This file's macros are included implicitly in the compilation of every file in the C library by -imacros. |