2 * Copyright (C) 2019 Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
4 * SPDX-License-Identifier: LGPL-2.1-only
8 #ifndef LTTNG_EVENT_RULE_USERSPACE_PROBE_INTERNAL_H
9 #define LTTNG_EVENT_RULE_USERSPACE_PROBE_INTERNAL_H
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/userspace-probe.h>
16 struct lttng_event_rule_userspace_probe
{
17 struct lttng_event_rule parent
;
19 struct lttng_userspace_probe_location
*location
;
22 struct lttng_event_rule_userspace_probe_comm
{
23 /* Includes terminator `\0`. */
25 /* Includes terminator `\0`. */
26 uint32_t location_len
;
28 * Payload is composed of, in that order:
29 * - name (null terminated),
30 * - user space probe location object.
36 ssize_t
lttng_event_rule_userspace_probe_create_from_payload(
37 struct lttng_payload_view
*view
,
38 struct lttng_event_rule
**rule
);
41 struct lttng_userspace_probe_location
*
42 lttng_event_rule_userspace_probe_get_location_mutable(
43 const struct lttng_event_rule
*rule
);
45 #endif /* LTTNG_EVENT_RULE_USERSPACE_PROBE_INTERNAL_H */