X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Fbenchmark%2Fbench.c;h=1626fd2beeb7998db7a9d755cd942570689a1faf;hb=c0c0989ab70574e09b2f7e8b48c2da6af664a849;hp=4e9c355126cb07eab69b62003d64f03afbd29c91;hpb=b64d025089c6d40963e029cff23efed4ed1f2f22;p=lttng-ust.git diff --git a/tests/benchmark/bench.c b/tests/benchmark/bench.c index 4e9c3551..1626fd2b 100644 --- a/tests/benchmark/bench.c +++ b/tests/benchmark/bench.c @@ -1,18 +1,23 @@ /* - * bench.c + * SPDX-License-Identifier: GPL-2.0-or-later + * + * Copyright 2010 Douglas Santos * * LTTng Userspace Tracer (UST) - benchmark tool */ -#define _GNU_SOURCE #include #include #include #include #include -#include #include +#ifdef TRACING +#define TRACEPOINT_DEFINE +#include "ust_tests_benchmark.h" +#endif + static int nr_cpus; static unsigned long nr_events; @@ -28,8 +33,8 @@ void do_stuff(void) fclose(file); time(NULL); -#ifdef MARKER - trace_mark(event, "event %d", v); +#ifdef TRACING + tracepoint(ust_tests_benchmark, tpbench, v); #endif }