diff options
author | Stan Cox <scox@redhat.com> | 2009-04-22 16:42:42 -0400 |
---|---|---|
committer | Stan Cox <scox@redhat.com> | 2009-04-22 16:42:42 -0400 |
commit | 6c35302ea4c7ea8157cf348329858ff93ab63a82 (patch) | |
tree | b4da5f52a972256332ff049b7662f3159ad6f4e8 /includes/sys/sdt.h | |
parent | b453b91268d5bd3d08614d37c3833dfc44b8ee64 (diff) | |
download | systemtap-steved-6c35302ea4c7ea8157cf348329858ff93ab63a82.tar.gz systemtap-steved-6c35302ea4c7ea8157cf348329858ff93ab63a82.tar.xz systemtap-steved-6c35302ea4c7ea8157cf348329858ff93ab63a82.zip |
Avoid 64 bit address value on a 32 bit machine.
* sdt.h (STAP_PROBE_ADDR): New.
(STAP_PROBE_DATA_): Use it.
Diffstat (limited to 'includes/sys/sdt.h')
-rw-r--r-- | includes/sys/sdt.h | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/includes/sys/sdt.h b/includes/sys/sdt.h index e5265ff1..c2242303 100644 --- a/includes/sys/sdt.h +++ b/includes/sys/sdt.h @@ -13,6 +13,12 @@ #include <string.h> #include <sys/types.h> +#ifdef __LP64__ +#define STAP_PROBE_ADDR "\t.quad " +#else +#define STAP_PROBE_ADDR "\t.long " +#endif + #define STAP_PROBE_DATA_(probe) \ __asm__ volatile (".section .probes\n" \ "\t.align 8\n" \ @@ -20,9 +26,9 @@ "\t.align 4\n" \ "\t.int 0x31425250\n" \ "\t.align 8\n" \ - "\t.quad 1b\n" \ + STAP_PROBE_ADDR "1b\n" \ "\t.align 8\n" \ - "\t.quad 2f\n" \ + STAP_PROBE_ADDR "2f\n" \ "\t.previous\n") #define STAP_PROBE_DATA(probe) \ |