SoW-2020-0003: Trace Hit Counters
[lttng-tools.git] / doc / examples / map / tracepoint-incr-value-example.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 incr_value_ex
10
11 #undef TRACEPOINT_INCLUDE
12 #define TRACEPOINT_INCLUDE "./tracepoint-incr-value-example.h"
13
14 #if !defined(_TRACEPOINT_TRIGGER_EXAMPLE_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
15 #define _TRACEPOINT_TRIGGER_EXAMPLE_H
16
17 #include <lttng/tracepoint.h>
18
19 TRACEPOINT_EVENT(incr_value_ex, event1,
20 TP_ARGS(int, iteration),
21 TP_FIELDS(
22 ctf_integer(uint64_t, iteration, iteration)
23 )
24 )
25
26 TRACEPOINT_EVENT(incr_value_ex, event2,
27 TP_ARGS(int, iteration),
28 TP_FIELDS(
29 ctf_integer(uint64_t, iteration, iteration)
30 )
31 )
32
33 TRACEPOINT_EVENT(incr_value_ex, event3,
34 TP_ARGS(int, iteration),
35 TP_FIELDS(
36 ctf_integer(uint64_t, iteration, iteration)
37 )
38 )
39
40 #endif /* _TRACEPOINT_TRIGGER_EXAMPLE_H */
41
42 #include <lttng/tracepoint-event.h>
This page took 0.030805 seconds and 5 git commands to generate.