SoW-2020-0002: Trace Hit Counters: trigger error reporting integration
[lttng-tools.git] / doc / examples / trigger-on-event / performance / performance.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 performance
10
11 #undef TRACEPOINT_INCLUDE
12 #define TRACEPOINT_INCLUDE "./performance.h"
13
14 #if !defined(_TRACEPOINT_PERFORMANCE_H) || defined(TRACEPOINT_HEADER_MULTI_READ)
15 #define _TRACEPOINT_PERFORMANCE_H
16
17 #include <lttng/tracepoint.h>
18
19 TRACEPOINT_EVENT(performance, hit,
20 TP_ARGS(int, source,
21 int, iteration),
22 TP_FIELDS(
23 ctf_integer(uint64_t, source, source)
24 ctf_integer(uint64_t, iteration, iteration)
25 )
26 )
27
28 TRACEPOINT_EVENT(performance, receive,
29 TP_ARGS(int, source,
30 int, iteration),
31 TP_FIELDS(
32 ctf_integer(uint64_t, source, source)
33 ctf_integer(uint64_t, iteration, iteration)
34 )
35 )
36
37 #endif /* _TRACEPOINT_PERFORMANCE_H */
38
39 #include <lttng/tracepoint-event.h>
This page took 0.050379 seconds and 5 git commands to generate.