Move to kernel style SPDX license identifiers
[lttng-ust.git] / doc / examples / demo / ust_tests_demo2.h
CommitLineData
c0c0989a
MJ
1/*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 */
6
60302adc
JG
7#undef TRACEPOINT_PROVIDER
8#define TRACEPOINT_PROVIDER ust_tests_demo2
9
10#if !defined(_TRACEPOINT_UST_TESTS_DEMO2_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
11#define _TRACEPOINT_UST_TESTS_DEMO2_H
12
60302adc 13#include <lttng/tracepoint.h>
b4051ad8 14#include <stddef.h>
60302adc
JG
15
16TRACEPOINT_EVENT(ust_tests_demo2, loop,
17 TP_ARGS(int, anint, int, netint, long *, values,
18 char *, text, size_t, textlen,
19 double, doublearg, float, floatarg),
20 TP_FIELDS(
21 ctf_integer(int, intfield, anint)
22 ctf_integer_hex(int, intfield2, anint)
23 ctf_integer(long, longfield, anint)
24 ctf_integer_network(int, netintfield, netint)
25 ctf_integer_network_hex(int, netintfieldhex, netint)
26 ctf_array(long, arrfield1, values, 3)
27 ctf_array_text(char, arrfield2, text, 10)
28 ctf_sequence(char, seqfield1, text,
29 size_t, textlen)
30 ctf_sequence_text(char, seqfield2, text,
31 size_t, textlen)
32 ctf_string(stringfield, text)
33 ctf_float(float, floatfield, floatarg)
34 ctf_float(double, doublefield, doublearg)
35 )
36)
37TRACEPOINT_LOGLEVEL(ust_tests_demo2, loop, TRACE_WARNING)
38
39#endif /* _TRACEPOINT_UST_TESTS_DEMO2_H */
40
41#undef TRACEPOINT_INCLUDE
42#define TRACEPOINT_INCLUDE "./ust_tests_demo2.h"
43
44/* This part must be outside ifdef protection */
45#include <lttng/tracepoint-event.h>
This page took 0.026842 seconds and 4 git commands to generate.