X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=tests%2Ftrace_event%2Ftrace_event_test.c;h=4c98c95990fa779d7f68f5573fe137ffbf0c8158;hb=636cf2a01500b8bef5a5959b4f1d3a9a7222b39a;hp=8e87846e1b3696b1c4c03312525213e79997f3a5;hpb=8d71973c9b5596f5732741975d4334a3abb3ba2a;p=lttng-ust.git diff --git a/tests/trace_event/trace_event_test.c b/tests/trace_event/trace_event_test.c index 8e87846e..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,6 +16,7 @@ * 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 @@ -22,9 +25,10 @@ int main(int argc, char * argv[]) { - static unsigned long time, i; - for (i=0; i<10; i++) { - time=trace_clock_read64(); + unsigned long time, i; + + for (i = 0; i < 10; i++) { + time = trace_clock_read64(); tracepoint(test, time, i); } return 0;