projects
/
ust.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Markers: Namespace cleanup, with API change.
[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 c8ba8c15ac0d1c8762c536e8fe98efad1776eaf9..5d2397575ca3e1b2be4edf12d2913b4521cb8d38 100644
(file)
--- a/
tests/tracepoint/benchmark/tracepoint_benchmark.c
+++ b/
tests/tracepoint/benchmark/tracepoint_benchmark.c
@@
-18,7
+18,7
@@
*/
/*
*/
/*
- * This test is aimed at testing tracepoint *with*
trace_mark
:
+ * This test is aimed at testing tracepoint *with*
ust_marker
:
*
* 1) tracepoint named : "ust_event"
* -) Probe 1 registered and recording the value 42
*
* 1) tracepoint named : "ust_event"
* -) Probe 1 registered and recording the value 42
@@
-34,27
+34,27
@@
DEFINE_TRACE(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.02527 seconds
and
4
git commands to generate.