projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
remove event.c and type.c
[lttv.git]
/
ltt-usertrace
/
ltt-usertrace-fast.c
diff --git
a/ltt-usertrace/ltt-usertrace-fast.c
b/ltt-usertrace/ltt-usertrace-fast.c
index 2d22ce9b98a45dd1fb2500ea63a31e1bf5f9088e..f97e941e5e12b2d97e80c9abb52602ee393a656e 100644
(file)
--- a/
ltt-usertrace/ltt-usertrace-fast.c
+++ b/
ltt-usertrace/ltt-usertrace-fast.c
@@
-65,14
+65,12
@@
#include <sys/wait.h>
#include <sys/stat.h>
#include <sys/mman.h>
#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>
#include <ltt/ltt-usertrace.h>
-_syscall0(pid_t,gettid);
+#define gettid() syscall(__NR_gettid)
#ifdef LTT_SHOW_DEBUG
#define dbg_printf(...) printf(__VA_ARGS__)
#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");
}
}
printf("error in sem_post");
}
}
+ return ret;
}
static int read_subbuffer(struct ltt_buf *ltt_buf, int fd)
}
static int read_subbuffer(struct ltt_buf *ltt_buf, int fd)
This page took
0.022279 seconds
and
4
git commands to generate.