X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=doc%2Fexamples%2Fgen-tp%2Fsample_tracepoint.tp;h=2f548f6cef30c49abe3cb86889cc8fc3661d2064;hb=HEAD;hp=5d23f5548bb9ea362565cacc2642e6cf494f73b3;hpb=efa14d169c6336fa8b9f478538ac7968ef9c0338;p=lttng-ust.git diff --git a/doc/examples/gen-tp/sample_tracepoint.tp b/doc/examples/gen-tp/sample_tracepoint.tp index 5d23f554..2f548f6c 100644 --- a/doc/examples/gen-tp/sample_tracepoint.tp +++ b/doc/examples/gen-tp/sample_tracepoint.tp @@ -1,15 +1,20 @@ -TRACEPOINT_EVENT( +// SPDX-FileCopyrightText: 2011-2012 Matthew Khouzam +// SPDX-FileCopyrightText: 2012 Mathieu Desnoyers +// +// SPDX-License-Identifier: MIT + +LTTNG_UST_TRACEPOINT_EVENT( sample_tracepoint, message, // C++ Style comment LTTNG_UST_TP_ARGS(const char *, text), LTTNG_UST_TP_FIELDS( - ctf_string(message, text) + lttng_ust_field_string(message, text) ) ) /* * Longer comments */ -TRACEPOINT_LOGLEVEL( +LTTNG_UST_TRACEPOINT_LOGLEVEL( sample_tracepoint, message, - TRACE_WARNING) + LTTNG_UST_TRACEPOINT_LOGLEVEL_WARNING)