X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;ds=sidebyside;f=tests%2Ftrace_event%2Ftrace_event_test.c;h=4c98c95990fa779d7f68f5573fe137ffbf0c8158;hb=8161463975e218e0833d31ab1577a7ceb9e8e9f3;hp=8e87846e1b3696b1c4c03312525213e79997f3a5;hpb=67a61c6786237e53ed7f0c7dce11b3a56a05364f;p=ust.git diff --git a/tests/trace_event/trace_event_test.c b/tests/trace_event/trace_event_test.c index 8e87846..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,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;