Commit | Line | Data |
---|---|---|
5024c2ac 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_UPROBE_INTERNAL_H | |
9 | #define LTTNG_EVENT_RULE_UPROBE_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/uprobe.h> | |
15 | ||
16 | struct lttng_event_rule_uprobe { | |
17 | struct lttng_event_rule parent; | |
18 | char *name; | |
19 | struct lttng_userspace_probe_location *location; | |
20 | }; | |
21 | ||
22 | struct lttng_event_rule_uprobe_comm { | |
23 | uint32_t name_len; | |
24 | uint32_t location_len; | |
25 | /*name, location object */ | |
26 | char payload[]; | |
27 | } LTTNG_PACKED; | |
28 | ||
29 | LTTNG_HIDDEN | |
30 | ssize_t lttng_event_rule_uprobe_create_from_buffer( | |
31 | const struct lttng_buffer_view *view, | |
32 | struct lttng_event_rule **rule); | |
33 | ||
34 | LTTNG_HIDDEN | |
35 | struct lttng_userspace_probe_location * | |
36 | lttng_event_rule_uprobe_get_location_no_const( | |
37 | const struct lttng_event_rule *rule); | |
38 | ||
39 | #endif /* LTTNG_EVENT_RULE_UPROBE_INTERNAL_H */ |