2 * Copyright (C) 2019 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_EVENT_RULE_SYSCALL_INTERNAL_H
9 #define LTTNG_EVENT_RULE_SYSCALL_INTERNAL_H
11 #include <common/payload-view.h>
12 #include <common/macros.h>
13 #include <lttng/event-rule/event-rule-internal.h>
14 #include <lttng/event-rule/syscall.h>
16 struct lttng_event_rule_syscall
{
17 struct lttng_event_rule parent
;
18 enum lttng_event_rule_syscall_emission_site emission_site
;
20 char *filter_expression
;
22 /* Internal use only. */
25 struct lttng_bytecode
*bytecode
;
29 struct lttng_event_rule_syscall_comm
{
30 uint32_t emission_site
;
31 /* Includes terminator `\0`. */
33 /* Includes terminator `\0`. */
34 uint32_t filter_expression_len
;
36 * Payload is composed of, in that order:
37 * - Pattern (null terminated),
38 * - Filter expression (null terminated).
44 ssize_t
lttng_event_rule_syscall_create_from_payload(
45 struct lttng_payload_view
*view
,
46 struct lttng_event_rule
**rule
);
49 const char *lttng_event_rule_syscall_emission_site_str(
50 enum lttng_event_rule_syscall_emission_site emission_site
);
51 #endif /* LTTNG_EVENT_RULE_SYSCALL_INTERNAL_H */