update ppc
[lttv.git] / ltt-usertrace / ltt / ltt-usertrace-fast.h
index d3fac6dad587a34ca736afeda5a3db78b78a2113..b71585a077487b1243b8fc61e8017ac8ffb86075 100644 (file)
 #include <asm/timex.h>
 #include <semaphore.h>
 #include <signal.h>
+#ifdef powerpc
+#define __KERNEL__     /* Ugly hack : atomic.h is broken */
+#endif
+#include <asm/atomic.h>
+#ifdef powerpc
+#include "ltt/ltt-usertrace-ppc.h"
+#undef __KERNEL__      /* Ugly hack : atomic.h is broken */
+#endif
 
 #include <ltt/ltt-facility-id-user_generic.h>
 
@@ -349,7 +357,7 @@ static inline void * __attribute__((no_instrument_function)) ltt_reserve_slot(
                                                                                                                        struct ltt_trace_info *trace,
                                                                                                                        struct ltt_buf *ltt_buf,
                                                                                                                        unsigned int data_size,
-                                                                                                                       unsigned int *slot_size,
+                                                                                                                       size_t *slot_size,
                                                                                                                        uint64_t *tsc,
                                                                                                                        size_t *before_hdr_pad,
                                                                                                                        size_t *after_hdr_pad,
This page took 0.022696 seconds and 4 git commands to generate.