projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tracepoint and TRACEPOINT_EVENT API cleanup
[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 50a184707a7a36510dbdc38df92bb2e7edb64957..45f7d3c0957aaf28fb948fd087cac30e8672b573 100644
(file)
--- a/
tests/tracepoint/benchmark/tracepoint_benchmark.c
+++ b/
tests/tracepoint/benchmark/tracepoint_benchmark.c
@@
-25,13
+25,13
@@
*/
#include <stdio.h>
*/
#include <stdio.h>
+
+#define TRACEPOINT_CREATE_PROBES
#include "tracepoint_benchmark.h"
#include <ust/type-serializer.h>
#define NR_EVENTS 10000000
#include "tracepoint_benchmark.h"
#include <ust/type-serializer.h>
#define NR_EVENTS 10000000
-DEFINE_TRACEPOINT(ust_event);
-
void tp_probe(void *data, unsigned int p1);
DEFINE_UST_MARKER_TP(event, ust_event, tp_probe, "p1 %u");
void tp_probe(void *data, unsigned int p1);
DEFINE_UST_MARKER_TP(event, ust_event, tp_probe, "p1 %u");
@@
-49,7
+49,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.03808 seconds
and
4
git commands to generate.