projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Performance: Mark channel and buffer event disabled check unlikely
[lttng-ust.git]
/
tests
/
tracepoint
/
benchmark
/
tracepoint_benchmark.c
diff --git
a/tests/tracepoint/benchmark/tracepoint_benchmark.c
b/tests/tracepoint/benchmark/tracepoint_benchmark.c
index 5d2397575ca3e1b2be4edf12d2913b4521cb8d38..c1208b09cd17ddc69f2d9355a5b648dba2284380 100644
(file)
--- a/
tests/tracepoint/benchmark/tracepoint_benchmark.c
+++ b/
tests/tracepoint/benchmark/tracepoint_benchmark.c
@@
-25,12
+25,14
@@
*/
#include <stdio.h>
*/
#include <stdio.h>
+
+#define TRACEPOINT_CREATE_PROBES
#include "tracepoint_benchmark.h"
#include "tracepoint_benchmark.h"
-#include <ust/type-serializer.h>
-#define NR_EVENTS 10000000
+/* Yes, this is now internal. */
+#include "../../../libust/type-serializer.h"
-DEFINE_TRACE(ust_event);
+#define NR_EVENTS 10000000
void tp_probe(void *data, unsigned int p1);
void tp_probe(void *data, unsigned int p1);
@@
-49,7
+51,7
@@
void tp_probe(void *data, unsigned int p1)
static void __attribute__((constructor)) init()
{
static void __attribute__((constructor)) init()
{
- register_tracepoint(ust_event, tp_probe, NULL);
+
__
register_tracepoint(ust_event, tp_probe, NULL);
}
void single_trace(unsigned int v)
}
void single_trace(unsigned int v)
This page took
0.024939 seconds
and
4
git commands to generate.