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