2 * Copyright (C) 2019 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_EVENT_RULE_TRACEPOINT_INTERNAL_H
9 #define LTTNG_EVENT_RULE_TRACEPOINT_INTERNAL_H
11 #include <common/buffer-view.h>
12 #include <common/macros.h>
13 #include <lttng/domain.h>
14 #include <lttng/event-rule/event-rule-internal.h>
15 #include <lttng/event-rule/tracepoint.h>
16 #include <lttng/event.h>
18 struct lttng_event_rule_tracepoint
{
19 struct lttng_event_rule parent
;
22 enum lttng_domain_type domain
;
28 char *filter_expression
;
32 enum lttng_loglevel_type type
;
43 /* internal use only */
46 struct lttng_bytecode
*bytecode
;
50 struct lttng_event_rule_tracepoint_comm
{
51 /* enum lttng_domain_type */
53 /* enum lttng_event_logleven_type */
55 int32_t loglevel_value
;
57 uint32_t filter_expression_len
;
58 uint32_t exclusions_count
;
59 uint32_t exclusions_len
;
61 * pattern, filter expression and exclusions each terminating with '\0'
67 ssize_t
lttng_event_rule_tracepoint_create_from_buffer(
68 const struct lttng_buffer_view
*view
,
69 struct lttng_event_rule
**rule
);
71 #endif /* LTTNG_EVENT_RULE_TRACEPOINT_INTERNAL_H */