projects
/
lttng-ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Tracepoints: Introduce DEFINE/DECLARE_TRACEPOINT, TRACEPOINT_EVENT...
[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 4d354bb1be96b2097ce31bb2721e49e8497090a6..50a184707a7a36510dbdc38df92bb2e7edb64957 100644
(file)
--- a/
tests/tracepoint/benchmark/tracepoint_benchmark.c
+++ b/
tests/tracepoint/benchmark/tracepoint_benchmark.c
@@
-30,31
+30,31
@@
#define NR_EVENTS 10000000
#define NR_EVENTS 10000000
-DEFINE_TRACE(ust_event);
+DEFINE_TRACE
POINT
(ust_event);
void tp_probe(void *data, unsigned int p1);
void tp_probe(void *data, unsigned int p1);
-DEFINE_MARKER_TP(event, ust_event, tp_probe, "p1 %u");
+DEFINE_
UST_
MARKER_TP(event, ust_event, tp_probe, "p1 %u");
/*
* Probe 1 --> ust_event
*/
void tp_probe(void *data, unsigned int p1)
{
/*
* Probe 1 --> ust_event
*/
void tp_probe(void *data, unsigned int p1)
{
- struct marker *marker;
+ struct
ust_
marker *marker;
- marker = &GET_MARKER(event);
+ marker = &GET_
UST_
MARKER(event);
ltt_specialized_trace(marker, data, &p1, sizeof(p1), sizeof(p1));
}
static void __attribute__((constructor)) init()
{
ltt_specialized_trace(marker, data, &p1, sizeof(p1), sizeof(p1));
}
static void __attribute__((constructor)) init()
{
- register_trace
_ust_event(
tp_probe, NULL);
+ register_trace
point(ust_event,
tp_probe, NULL);
}
void single_trace(unsigned int v)
{
}
void single_trace(unsigned int v)
{
- trace
_ust_event(
v);
+ trace
point(ust_event,
v);
}
void do_trace(void)
}
void do_trace(void)
This page took
0.024568 seconds
and
4
git commands to generate.