2 * Copyright (C) 2019 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_EVENT_RULE_KRETPROBE_INTERNAL_H
9 #define LTTNG_EVENT_RULE_KRETPROBE_INTERNAL_H
11 #include <common/buffer-view.h>
12 #include <common/macros.h>
13 #include <lttng/event-rule/event-rule-internal.h>
14 #include <lttng/event-rule/kretprobe.h>
16 struct lttng_event_rule_kretprobe
{
17 struct lttng_event_rule parent
;
26 struct lttng_event_rule_kretprobe_comm
{
28 uint32_t probe_symbol_len
;
29 /*name, probe symbol_name */
34 ssize_t
lttng_event_rule_kretprobe_create_from_buffer(
35 const struct lttng_buffer_view
*view
,
36 struct lttng_event_rule
**rule
);
39 uint64_t lttng_event_rule_kretprobe_get_address(
40 const struct lttng_event_rule
*rule
);
43 uint64_t lttng_event_rule_kretprobe_get_offset(
44 const struct lttng_event_rule
*rule
);
47 const char *lttng_event_rule_kretprobe_get_symbol_name(
48 const struct lttng_event_rule
*rule
);
50 #endif /* LTTNG_EVENT_RULE_KRETPROBE_INTERNAL_H */