Rename C++ header files to .hpp
[lttng-tools.git] / include / lttng / event-rule / kernel-tracepoint-internal.hpp
1 /*
2 * Copyright (C) 2019 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
3 *
4 * SPDX-License-Identifier: LGPL-2.1-only
5 *
6 */
7
8 #ifndef LTTNG_EVENT_RULE_KERNEL_TRACEPOINT_INTERNAL_H
9 #define LTTNG_EVENT_RULE_KERNEL_TRACEPOINT_INTERNAL_H
10
11 #include <common/payload-view.hpp>
12 #include <common/macros.hpp>
13 #include <common/optional.hpp>
14 #include <lttng/event-rule/event-rule-internal.hpp>
15 #include <lttng/event-rule/kernel-tracepoint.h>
16 #include <lttng/event.h>
17
18 struct lttng_event_rule_kernel_tracepoint {
19 struct lttng_event_rule parent;
20
21 /* Name pattern. */
22 char *pattern;
23
24 /* Filter. */
25 char *filter_expression;
26
27 /* internal use only. */
28 struct {
29 char *filter;
30 struct lttng_bytecode *bytecode;
31 } internal_filter;
32 };
33
34 struct lttng_event_rule_kernel_tracepoint_comm {
35 /* Includes terminator `\0`. */
36 uint32_t pattern_len;
37 /* Includes terminator `\0`. */
38 uint32_t filter_expression_len;
39 /*
40 * Payload is composed of, in that order:
41 * - pattern (null terminated),
42 * - filter expression (null terminated),
43 */
44 char payload[];
45 } LTTNG_PACKED;
46
47 ssize_t lttng_event_rule_kernel_tracepoint_create_from_payload(
48 struct lttng_payload_view *view,
49 struct lttng_event_rule **rule);
50
51 #endif /* LTTNG_EVENT_RULE_KERNEL_TRACEPOINT_INTERNAL_H */
This page took 0.042616 seconds and 5 git commands to generate.