fix: namespacing of 'tp_rcu_read_lock'
[lttng-ust.git] / tests / compile / hello.cxx / ust_tests_hello.h
CommitLineData
c0c0989a
MJ
1/*
2 * SPDX-License-Identifier: MIT
3 *
4 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
5 */
6
5b393d64
MJ
7#undef LTTNG_UST_TRACEPOINT_PROVIDER
8#define LTTNG_UST_TRACEPOINT_PROVIDER ust_tests_hello
6b79f035 9
c2c72dde 10#if !defined(_TRACEPOINT_UST_TESTS_HELLO_H) || defined(LTTNG_UST_TRACEPOINT_HEADER_MULTI_READ)
6b79f035
MD
11#define _TRACEPOINT_UST_TESTS_HELLO_H
12
6b79f035 13#include <lttng/tracepoint.h>
b4051ad8 14#include <stddef.h>
6b79f035 15
2ebf164b 16LTTNG_UST_TRACEPOINT_ENUM(ust_tests_hello, my_enum,
4849bc7a 17 LTTNG_UST_TP_ENUM_VALUES(
78684808
MJ
18 lttng_ust_field_enum_value("zero", 0)
19 lttng_ust_field_enum_value("one", 1)
20 lttng_ust_field_enum_auto("two")
21 lttng_ust_field_enum_value("three", 3)
22 lttng_ust_field_enum_range("ten to twenty", 10, 20)
23 lttng_ust_field_enum_auto("21!")
95526f2d
PP
24 )
25)
26
7f2f82c3 27LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello, tptest,
cadfcbfc 28 LTTNG_UST_TP_ARGS(int, anint, int, netint, long *, values,
6b79f035 29 char *, text, size_t, textlen,
95526f2d
PP
30 double, doublearg, float, floatarg,
31 int, enumarg),
efa14d16 32 LTTNG_UST_TP_FIELDS(
b4064f28
MJ
33 lttng_ust_field_integer(int, intfield, anint)
34 lttng_ust_field_integer_hex(int, intfield2, anint)
35 lttng_ust_field_integer(long, longfield, anint)
36 lttng_ust_field_integer_network(int, netintfield, netint)
37 lttng_ust_field_integer_network_hex(int, netintfieldhex, netint)
10937ee5
MJ
38 lttng_ust_field_array(long, arrfield1, values, 3)
39 lttng_ust_field_array_text(char, arrfield2, text, 10)
1d188af9 40 lttng_ust_field_sequence(char, seqfield1, text,
6b79f035 41 size_t, textlen)
1d188af9 42 lttng_ust_field_sequence_text(char, seqfield2, text,
6b79f035 43 size_t, textlen)
3202f63a 44 lttng_ust_field_string(stringfield, text)
891226fc
MJ
45 lttng_ust_field_float(float, floatfield, floatarg)
46 lttng_ust_field_float(double, doublefield, doublearg)
78684808 47 lttng_ust_field_enum(ust_tests_hello, my_enum, int, enumfield, enumarg)
6b79f035
MD
48 )
49)
50
7f2f82c3 51LTTNG_UST_TRACEPOINT_EVENT(ust_tests_hello, tptest_sighandler,
cadfcbfc 52 LTTNG_UST_TP_ARGS(),
efa14d16 53 LTTNG_UST_TP_FIELDS()
6b79f035
MD
54)
55
56#endif /* _TRACEPOINT_UST_TESTS_HELLO_H */
57
bb71a8ea
MJ
58#undef LTTNG_UST_TRACEPOINT_INCLUDE
59#define LTTNG_UST_TRACEPOINT_INCLUDE "./ust_tests_hello.h"
6b79f035
MD
60
61/* This part must be outside ifdef protection */
62#include <lttng/tracepoint-event.h>
This page took 0.032625 seconds and 4 git commands to generate.