diff options
author | Tim Moore <timoore@redhat.com> | 2009-12-10 21:36:43 +0100 |
---|---|---|
committer | Tim Moore <timoore@redhat.com> | 2009-12-10 21:36:43 +0100 |
commit | a6b3c131a27bbf3533d7ce52bb320698edb60f9c (patch) | |
tree | e11b9ef96482de802cb4c078296dcb7ee88f13c5 /includes/sys/sdt.h | |
parent | 1b9fad80af5504ef03c2a88504dbc47bea003721 (diff) | |
parent | b25c01a187d636f1bd3c8c414e7dbe3e84c1b266 (diff) | |
download | systemtap-steved-a6b3c131a27bbf3533d7ce52bb320698edb60f9c.tar.gz systemtap-steved-a6b3c131a27bbf3533d7ce52bb320698edb60f9c.tar.xz systemtap-steved-a6b3c131a27bbf3533d7ce52bb320698edb60f9c.zip |
Merge commit 'origin/master'
Diffstat (limited to 'includes/sys/sdt.h')
-rw-r--r-- | includes/sys/sdt.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/includes/sys/sdt.h b/includes/sys/sdt.h index d85d8e2e..7c23d55a 100644 --- a/includes/sys/sdt.h +++ b/includes/sys/sdt.h @@ -12,9 +12,11 @@ #ifdef __LP64__ -#define STAP_PROBE_ADDR "\t.quad " +#define STAP_PROBE_ADDR(arg) "\t.quad " arg +#elif defined (__BIG_ENDIAN__) +#define STAP_PROBE_ADDR(arg) "\t.long 0\n\t.long " arg #else -#define STAP_PROBE_ADDR "\t.long " +#define STAP_PROBE_ADDR(arg) "\t.long " arg #endif /* Allocated section needs to be writable when creating pic shared objects @@ -26,14 +28,14 @@ /* An allocated section .probes that holds the probe names and addrs. */ #define STAP_PROBE_DATA_(probe,guard,arg) \ __asm__ volatile (".section .probes," ALLOCSEC "\n" \ - "\t.align 8\n" \ + "\t.balign 8\n" \ "1:\n\t.asciz " #probe "\n" \ - "\t.align 4\n" \ + "\t.balign 4\n" \ "\t.int " #guard "\n" \ - "\t.align 8\n" \ - STAP_PROBE_ADDR "1b\n" \ - "\t.align 8\n" \ - STAP_PROBE_ADDR #arg "\n" \ + "\t.balign 8\n" \ + STAP_PROBE_ADDR("1b\n") \ + "\t.balign 8\n" \ + STAP_PROBE_ADDR(#arg "\n") \ "\t.int 0\n" \ "\t.previous\n") |