SoW-2020-0002: Trace Hit Counters: trigger error reporting integration
[lttng-tools.git] / include / lttng / event-rule / syscall-internal.h
CommitLineData
e6a39346
JR
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_SYSCALL_INTERNAL_H
9#define LTTNG_EVENT_RULE_SYSCALL_INTERNAL_H
10
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>
15
16struct lttng_event_rule_syscall {
17 struct lttng_event_rule parent;
18 char *pattern;
19 char *filter_expression;
20
21 /* Internal use only. */
22 struct {
23 char *filter;
2463b787 24 struct lttng_bytecode *bytecode;
e6a39346
JR
25 } internal_filter;
26};
27
28struct lttng_event_rule_syscall_comm {
29 /* Includes terminator `\0`. */
30 uint32_t pattern_len;
31 /* Includes terminator `\0`. */
32 uint32_t filter_expression_len;
33 /*
34 * Payload is composed of, in that order:
35 * - Pattern (null terminated),
36 * - Filter expression (null terminated).
37 */
38 char payload[];
39} LTTNG_PACKED;
40
41LTTNG_HIDDEN
42ssize_t lttng_event_rule_syscall_create_from_payload(
43 struct lttng_payload_view *view,
44 struct lttng_event_rule **rule);
45
46#endif /* LTTNG_EVENT_RULE_SYSCALL_INTERNAL_H */
This page took 0.025446 seconds and 5 git commands to generate.