X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=doc%2Fexamples%2Fgen-tp%2Fsample.c;h=52c4a9ebc5df52043a67bf83edfe8780fe1b9c9f;hb=65c955a51b7d49c17baad6bc65b55f845808ba77;hp=185ea3faa6428c2210ad7bcdfc98c10afffdd771;hpb=e92f3e285939848f248af08f11a39a04a7fcf852;p=lttng-ust.git diff --git a/doc/examples/gen-tp/sample.c b/doc/examples/gen-tp/sample.c index 185ea3fa..52c4a9eb 100644 --- a/doc/examples/gen-tp/sample.c +++ b/doc/examples/gen-tp/sample.c @@ -1,27 +1,19 @@ /* - * Copyright (C) 2011-2012 Matthew Khouzam - * Copyright (C) 2012 Mathieu Desnoyers + * SPDX-License-Identifier: MIT * - * Permission is hereby granted, free of charge, to any person obtaining a copy - * of this software and associated documentation files (the "Software"), to deal - * in the Software without restriction, including without limitation the rights - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell - * copies of the Software, and to permit persons to whom the Software is - * furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice shall be included in - * all copies or substantial portions of the Software. + * Copyright (C) 2011-2012 Matthew Khouzam + * Copyright (C) 2012 Mathieu Desnoyers */ #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;