#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>
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,