X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=tests%2Ftrace_event%2Ftrace_event_test.c;h=4c98c95990fa779d7f68f5573fe137ffbf0c8158;hb=refs%2Fheads%2Fcygwin-2.0-experimental;hp=f4fa90a8de9e1218704e9671b33d2258d9a8d2d9;hpb=fbae86d664c12e450d3cb702b602701d37781b41;p=lttng-ust.git diff --git a/tests/trace_event/trace_event_test.c b/tests/trace_event/trace_event_test.c index f4fa90a8..4c98c959 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,18 +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; }