X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Fbenchmark%2Fbench.c;h=1626fd2beeb7998db7a9d755cd942570689a1faf;hb=c0c0989ab70574e09b2f7e8b48c2da6af664a849;hp=212baefffefeeb108bfe5a091e9cc9981cdbc708;hpb=9501d22f55b3a23f382f631c99b2325d1419b5da;p=lttng-ust.git diff --git a/tests/benchmark/bench.c b/tests/benchmark/bench.c index 212baeff..1626fd2b 100644 --- a/tests/benchmark/bench.c +++ b/tests/benchmark/bench.c @@ -1,34 +1,23 @@ /* - * bench.c + * SPDX-License-Identifier: GPL-2.0-or-later * - * LTTng Userspace Tracer (UST) - benchmark tool - * - * Copyright 2010 - Douglas Santos - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License as published by - * the Free Software Foundation; either version 2 of the License, or - * (at your option) any later version. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. + * Copyright 2010 Douglas Santos * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * 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; @@ -44,8 +33,8 @@ void do_stuff(void) fclose(file); time(NULL); -#ifdef MARKER - ust_marker(event, "event %d", v); +#ifdef TRACING + tracepoint(ust_tests_benchmark, tpbench, v); #endif }