create directories branches, tags, trunk
[lttv.git] / ltt-usertrace / ltt-usertrace-fast.c
index 2d22ce9b98a45dd1fb2500ea63a31e1bf5f9088e..f97e941e5e12b2d97e80c9abb52602ee393a656e 100644 (file)
 #include <sys/wait.h>
 #include <sys/stat.h>
 #include <sys/mman.h>
-#include <linux/unistd.h>
-
-// included with hack for powerpc in ltt-usertrace.h #include <asm/atomic.h>
-#include <asm/timex.h> //for get_cycles()
+#include <unistd.h>
+#include <sys/syscall.h>
 
 #include <ltt/ltt-usertrace.h>
 
-_syscall0(pid_t,gettid);
+#define gettid() syscall(__NR_gettid)
 
 #ifdef LTT_SHOW_DEBUG
 #define dbg_printf(...) printf(__VA_ARGS__)
@@ -370,6 +368,7 @@ static inline int ltt_buffer_put(struct ltt_buf *ltt_buf,
                        printf("error in sem_post");
                }
        }
+       return ret;
 }
 
 static int read_subbuffer(struct ltt_buf *ltt_buf, int fd)
This page took 0.022346 seconds and 4 git commands to generate.