fix 64 bits
[lttv.git] / ltt-usertrace / ltt / ltt-usertrace.h
index d64f4f21a0b6fcaa8cae2775649326bf77603241..7770f9580cd93a1a61c382b5b86074a131edcc32 100644 (file)
 #include <errno.h>
 #include <syscall.h>
 #include <linux/unistd.h>
-#include <asm/atomic.h>
 #include <string.h>
 #include <sys/types.h>
 #include <stdint.h>
+#ifdef powerpc
+#define __KERNEL__     /* Ugly hack : atomic.h is broken */
+#endif
+#include <asm/atomic.h>
+#include "ltt/ltt-usertrace-ppc.h"
+#ifdef powerpc
+#undef __KERNEL__      /* Ugly hack : atomic.h is broken */
+#endif
 
 #ifndef min
 #define min(a,b) ((a)<(b)?(a):(b))
 #endif
 
-//Put in asm-i486/unistd.h
-#define __NR_ltt_trace_generic 294
-#define __NR_ltt_register_generic      295
+#ifdef i386
+#define __NR_ltt_trace_generic 311
+#define __NR_ltt_register_generic      312
+#undef NR_syscalls
+#define NR_syscalls 313
+#endif
 
+#ifdef powerpc
+#define __NR_ltt_trace_generic 283
+#define __NR_ltt_register_generic      284
 #undef NR_syscalls
-#define NR_syscalls 296
+#define NR_syscalls 285
+#endif
 
 //FIXME : setup for ARM
 //FIXME : setup for MIPS
This page took 0.023705 seconds and 4 git commands to generate.