]> sourceware.org Git - systemtap.git/commitdiff
PR11680: fix sdt.h STAP_SDT_V2 -> V1 auto-downgrading logic
authorFrank Ch. Eigler <fche@redhat.com>
Wed, 9 Jun 2010 16:11:57 +0000 (12:11 -0400)
committerFrank Ch. Eigler <fche@redhat.com>
Wed, 9 Jun 2010 16:13:49 +0000 (12:13 -0400)
Previously, the STAP_SDT_V2 -> V1 downgrade logic was half way down in the
header file, by which time some STAP_SDT_V2 definitions had already taken
effect.

* includes/sys/sdt.h: Make work on PPC et al.

includes/sys/sdt.h

index 208e7d082ce7b81c9fa3e10913b7c3cdc3779207..dcd31ae4cf46fa4bfa72be37b62cdaa5b0d93757 100644 (file)
 #include <sys/types.h>
 #include <errno.h>
 
+
+/* The asm operand string stap_sdt_probe_entry_v2.arg_string
+   is currently only supported for x86 */
+#if ! defined __x86_64__ && ! defined __i386__
+#define STAP_SDT_V1 1
+#undef STAP_SDT_V2
+#endif
+
+
 typedef struct 
 {
   __extension__ struct
@@ -114,12 +123,6 @@ typedef struct
 #endif
 
 
-/* The asm operand string stap_sdt_probe_entry_v2.arg_string
-   is currently only supported for x86 */
-#if ! defined __x86_64__ && ! defined __i386__
-#define STAP_SDT_V1 1
-#endif
-
 #if defined __x86_64__ || defined __i386__  || defined __powerpc__ || defined __arm__ || defined __sparc__
 #define STAP_NOP "\tnop "
 #else
This page took 0.028352 seconds and 5 git commands to generate.