fix: relayd: unaligned access in trace_chunk_registry_ht_key_hash
[lttng-tools.git] / include / lttng / event-rule / kernel-uprobe-internal.hpp
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_KERNEL_UPROBE_INTERNAL_H
9 #define LTTNG_EVENT_RULE_KERNEL_UPROBE_INTERNAL_H
10
11 #include <common/macros.hpp>
12 #include <common/payload-view.hpp>
13
14 #include <lttng/event-rule/event-rule-internal.hpp>
15 #include <lttng/event-rule/kernel-uprobe.h>
16
17 struct lttng_event_rule_kernel_uprobe {
18 struct lttng_event_rule parent;
19 char *name;
20 struct lttng_userspace_probe_location *location;
21 };
22
23 struct lttng_event_rule_kernel_uprobe_comm {
24 /* Includes terminator `\0`. */
25 uint32_t name_len;
26 /* Includes terminator `\0`. */
27 uint32_t location_len;
28 /*
29 * Payload is composed of, in that order:
30 * - name (null terminated),
31 * - user space probe location object.
32 */
33 char payload[];
34 } LTTNG_PACKED;
35
36 ssize_t lttng_event_rule_kernel_uprobe_create_from_payload(struct lttng_payload_view *view,
37 struct lttng_event_rule **rule);
38
39 struct lttng_userspace_probe_location *
40 lttng_event_rule_kernel_uprobe_get_location_mutable(const struct lttng_event_rule *rule);
41
42 #endif /* LTTNG_EVENT_RULE_KERNEL_UPROBE_INTERNAL_H */
This page took 0.031029 seconds and 4 git commands to generate.