X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=doc%2Fexamples%2Fgen-tp%2Fsample.c;h=b0b0388ab88a7d4c8bde96667f34cb786af17b23;hb=53f7d0d7404de911dd62dff06f08539e33ea7519;hp=e56c332e79dfd55dc2c194e3d8c9dd7cd527658d;hpb=2208d8b5689264e35ed0a660d8c3c82021cc0367;p=lttng-ust.git diff --git a/doc/examples/gen-tp/sample.c b/doc/examples/gen-tp/sample.c index e56c332e..b0b0388a 100644 --- a/doc/examples/gen-tp/sample.c +++ b/doc/examples/gen-tp/sample.c @@ -1,9 +1,7 @@ -/* - * SPDX-License-Identifier: MIT - * - * Copyright (C) 2011-2012 Matthew Khouzam - * Copyright (C) 2012 Mathieu Desnoyers - */ +// SPDX-FileCopyrightText: 2011-2012 Matthew Khouzam +// SPDX-FileCopyrightText: 2012 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT #include @@ -13,7 +11,7 @@ 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;