SoW-2019-0007-2: Dynamic Snapshot: Triggers send partial event payload with notifications
[lttng-tools.git] / include / lttng / event-rule / kretprobe-internal.h
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_KRETPROBE_INTERNAL_H
9 #define LTTNG_EVENT_RULE_KRETPROBE_INTERNAL_H
10
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>
15
16 struct lttng_event_rule_kretprobe {
17 struct lttng_event_rule parent;
18 char *name;
19 struct {
20 uint64_t address;
21 uint64_t offset;
22 char *symbol_name;
23 } probe;
24 };
25
26 struct lttng_event_rule_kretprobe_comm {
27 uint32_t name_len;
28 uint32_t probe_symbol_len;
29 /*name, probe symbol_name */
30 char payload[];
31 } LTTNG_PACKED;
32
33 LTTNG_HIDDEN
34 ssize_t lttng_event_rule_kretprobe_create_from_buffer(
35 const struct lttng_buffer_view *view,
36 struct lttng_event_rule **rule);
37
38 LTTNG_HIDDEN
39 uint64_t lttng_event_rule_kretprobe_get_address(
40 const struct lttng_event_rule *rule);
41
42 LTTNG_HIDDEN
43 uint64_t lttng_event_rule_kretprobe_get_offset(
44 const struct lttng_event_rule *rule);
45
46 LTTNG_HIDDEN
47 const char *lttng_event_rule_kretprobe_get_symbol_name(
48 const struct lttng_event_rule *rule);
49
50 #endif /* LTTNG_EVENT_RULE_KRETPROBE_INTERNAL_H */
This page took 0.031319 seconds and 5 git commands to generate.