projects
/
lttv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add missing include to event.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 ba0a2ae9450cbd7e195f283137a645db4f403d44..f97e941e5e12b2d97e80c9abb52602ee393a656e 100644
(file)
--- a/
ltt-usertrace/ltt-usertrace-fast.c
+++ b/
ltt-usertrace/ltt-usertrace-fast.c
@@
-46,8
+46,6
@@
#define _GNU_SOURCE
#define LTT_TRACE
#define LTT_TRACE_FAST
#define _GNU_SOURCE
#define LTT_TRACE
#define LTT_TRACE_FAST
-#include <sys/types.h>
-#include <sys/wait.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
#include <unistd.h>
#include <stdlib.h>
#include <stdio.h>
@@
-57,22
+55,23
@@
#include <pthread.h>
#include <malloc.h>
#include <string.h>
#include <pthread.h>
#include <malloc.h>
#include <string.h>
-#include <sys/mman.h>
#include <signal.h>
#include <signal.h>
-#include <sys/stat.h>
#include <fcntl.h>
#include <stdlib.h>
#include <fcntl.h>
#include <stdlib.h>
+#include <errno.h>
#include <sys/param.h>
#include <sys/time.h>
#include <sys/param.h>
#include <sys/time.h>
-#include <
errno
.h>
-
-
// included with hack for powerpc in ltt-usertrace.h #include <asm/atomic
.h>
-#include <
asm/timex.h> //for get_cycles()
-
-_syscall0(pid_t,gettid)
+#include <
sys/types
.h>
+#include <sys/wait.h>
+
#include <sys/stat
.h>
+#include <
sys/mman.h>
+#include <unistd.h>
+#include <sys/syscall.h>
#include <ltt/ltt-usertrace.h>
#include <ltt/ltt-usertrace.h>
+#define gettid() syscall(__NR_gettid)
+
#ifdef LTT_SHOW_DEBUG
#define dbg_printf(...) printf(__VA_ARGS__)
#else
#ifdef LTT_SHOW_DEBUG
#define dbg_printf(...) printf(__VA_ARGS__)
#else
@@
-369,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.024228 seconds
and
4
git commands to generate.