projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tracepoint: add ctf sequence for network byte order integers
[lttng-ust.git]
/
tests
/
benchmark
/
bench.c
diff --git
a/tests/benchmark/bench.c
b/tests/benchmark/bench.c
index 212baefffefeeb108bfe5a091e9cc9981cdbc708..517bfb73078db7b74769b00f81143576dd723000 100644
(file)
--- a/
tests/benchmark/bench.c
+++ b/
tests/benchmark/bench.c
@@
-26,9
+26,13
@@
#include <stdlib.h>
#include <unistd.h>
#include <sched.h>
#include <stdlib.h>
#include <unistd.h>
#include <sched.h>
-#include <ust/marker.h>
#include <time.h>
#include <time.h>
+#ifdef TRACING
+#define TRACEPOINT_DEFINE
+#include "ust_tests_benchmark.h"
+#endif
+
static int nr_cpus;
static unsigned long nr_events;
static int nr_cpus;
static unsigned long nr_events;
@@
-44,8
+48,8
@@
void do_stuff(void)
fclose(file);
time(NULL);
fclose(file);
time(NULL);
-#ifdef
MARKER
-
ust_marker(event, "event %d"
, v);
+#ifdef
TRACING
+
tracepoint(ust_tests_benchmark, tpbench
, v);
#endif
}
#endif
}
This page took
0.026683 seconds
and
4
git commands to generate.