Fix: lttng-snapshot: use after free of max size argument
[lttng-tools.git] / tests / regression / tools / filtering / tp.h
CommitLineData
9d16b343
MJ
1/*
2 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 */
7
9fec62f7
CB
8#undef TRACEPOINT_PROVIDER
9#define TRACEPOINT_PROVIDER tp
10
11#if !defined(_TRACEPOINT_TP_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
12#define _TRACEPOINT_TP_H
13
9fec62f7
CB
14#include <lttng/tracepoint.h>
15
16TRACEPOINT_EVENT(tp, tptest,
17 TP_ARGS(int, anint, int, netint, long *, values,
18 char *, text, size_t, textlen,
bff988fa
MD
19 char *, etext, double, doublearg, float, floatarg,
20 uint32_t *, net_values),
9fec62f7
CB
21 TP_FIELDS(
22 ctf_integer(int, intfield, anint)
23 ctf_integer_hex(int, intfield2, anint)
24 ctf_integer(long, longfield, anint)
25 ctf_integer_network(int, netintfield, netint)
26 ctf_integer_network_hex(int, netintfieldhex, netint)
27 ctf_array(long, arrfield1, values, 3)
28 ctf_array_text(char, arrfield2, text, 10)
bff988fa 29 ctf_array_network(uint32_t, arrfield3, net_values, 3)
9fec62f7
CB
30 ctf_sequence(char, seqfield1, text, size_t, textlen)
31 ctf_sequence_text(char, seqfield2, text, size_t, textlen)
bff988fa
MD
32 ctf_sequence_network(uint32_t, seqfield3, net_values, size_t, 3)
33 ctf_sequence(long, seqfield4, values, size_t, 3)
9fec62f7
CB
34 ctf_string(stringfield, text)
35 ctf_string(stringfield2, etext)
36 ctf_float(float, floatfield, floatarg)
37 ctf_float(double, doublefield, doublearg)
38 )
39)
40
41#endif /* _TRACEPOINT_TP_H */
42
59eb182b
MD
43#undef TRACEPOINT_INCLUDE
44#define TRACEPOINT_INCLUDE "./tp.h"
9fec62f7
CB
45
46/* This part must be outside ifdef protection */
47#include <lttng/tracepoint-event.h>
This page took 0.086982 seconds and 5 git commands to generate.