X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt-usertrace%2Fltt-usertrace-fast.c;h=f97e941e5e12b2d97e80c9abb52602ee393a656e;hb=5e7ec335fe47cf30743b5db2d6a36729f32ab14e;hp=2d22ce9b98a45dd1fb2500ea63a31e1bf5f9088e;hpb=4359c2bbb65b481e58f0e088383cdf0af7414dfc;p=lttv.git diff --git a/ltt-usertrace/ltt-usertrace-fast.c b/ltt-usertrace/ltt-usertrace-fast.c index 2d22ce9b..f97e941e 100644 --- a/ltt-usertrace/ltt-usertrace-fast.c +++ b/ltt-usertrace/ltt-usertrace-fast.c @@ -65,14 +65,12 @@ #include #include #include -#include - -// included with hack for powerpc in ltt-usertrace.h #include -#include //for get_cycles() +#include +#include #include -_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)