X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=doc%2Fexamples%2Fgen-tp%2Fsample.c;h=b0b0388ab88a7d4c8bde96667f34cb786af17b23;hb=HEAD;hp=729258c2c7874289aac188aac4104c996259af27;hpb=7ccf75d384dd852f7aa51b44663546dd3c6baa83;p=lttng-ust.git diff --git a/doc/examples/gen-tp/sample.c b/doc/examples/gen-tp/sample.c index 729258c2..b0b0388a 100644 --- a/doc/examples/gen-tp/sample.c +++ b/doc/examples/gen-tp/sample.c @@ -1,25 +1,17 @@ -/* - * Copyright (C) 2011-2012 Matthew Khouzam - * Copyright (C) 2012 Mathieu Desnoyers - * - * THIS MATERIAL IS PROVIDED AS IS, WITH ABSOLUTELY NO WARRANTY EXPRESSED - * OR IMPLIED. ANY USE IS AT YOUR OWN RISK. - * - * Permission is hereby granted to use or copy this program for any - * purpose, provided the above notices are retained on all copies. - * Permission to modify the code and to distribute modified code is - * granted, provided the above notices are retained, and a notice that - * the code was modified is included with the above copyright notice. - */ +// SPDX-FileCopyrightText: 2011-2012 Matthew Khouzam +// SPDX-FileCopyrightText: 2012 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + #include #include "sample_tracepoint.h" -int main(int argc, char **argv) +int main(void) { int i = 0; for (i = 0; i < 100000; i++) { - tracepoint(sample_tracepoint, message, "Hello World\n"); + lttng_ust_tracepoint(sample_tracepoint, message, "Hello World\n"); usleep(1); } return 0;