X-Git-Url: https://git.liburcu.org/?a=blobdiff_plain;f=tests%2Ftrace_event%2Ftrace_event_test.c;h=4c98c95990fa779d7f68f5573fe137ffbf0c8158;hb=8161463975e218e0833d31ab1577a7ceb9e8e9f3;hp=9ed3d6ce0433486ec5182ec1399c69e6bbd27137;hpb=6749958301e384d8491fb3509e3b089ef662d66a;p=ust.git diff --git a/tests/trace_event/trace_event_test.c b/tests/trace_event/trace_event_test.c index 9ed3d6c..4c98c95 100644 --- a/tests/trace_event/trace_event_test.c +++ b/tests/trace_event/trace_event_test.c @@ -1,4 +1,6 @@ -/* Copyright (C) 2010 Nils Carlson +/* + * Copyright (C) 2010 Nils Carlson + * Copyright (C) 2011 Mathieu Desnoyers * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public @@ -14,17 +16,20 @@ * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ + #include #include -#define CREATE_TRACE_POINTS +#define TRACEPOINT_CREATE_PROBES #include "trace_event_test.h" int main(int argc, char * argv[]) { - static unsigned long time, i; - for (i=0; i<10; i++) { - time=trace_clock_read64(); - trace_test(time, i); + unsigned long time, i; + + for (i = 0; i < 10; i++) { + time = trace_clock_read64(); + tracepoint(test, time, i); } + return 0; }