SoW-2019-0002: Dynamic Snapshot
[lttng-tools.git] / doc / examples / trigger-on-event / tp.h
1 /*
2 * Copyright (C) 2020 Jérémie Galarneau <jeremie.galarneau@efficios.com>
3 *
4 * SPDX-License-Identifier: MIT
5 *
6 */
7
8 #undef TRACEPOINT_PROVIDER
9 #define TRACEPOINT_PROVIDER trigger_exemple
10
11 #undef TRACEPOINT_INCLUDE
12 #define TRACEPOINT_INCLUDE "./tp.h"
13
14 #if !defined(_TRACEPOINT_TRIGGER_EXEMPLE_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
15 #define _TRACEPOINT_TRIGGER_EXEMPLE_H
16
17 #include <lttng/tracepoint.h>
18
19 TRACEPOINT_EVENT(trigger_exemple, my_event,
20 TP_ARGS(int, iteration),
21 TP_FIELDS(
22 ctf_integer(uint64_t, iteration, iteration)
23 )
24 )
25
26 #endif /* _TRACEPOINT_TRIGGER_EXEMPLE_H */
27
28 #include <lttng/tracepoint-event.h>
This page took 0.04189 seconds and 5 git commands to generate.