Clean-up: run format-cpp on the tree
[lttng-tools.git] / include / lttng / event-rule / kernel-uprobe-internal.hpp
CommitLineData
df08d338
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
46fd07ac
JR
8#ifndef LTTNG_EVENT_RULE_KERNEL_UPROBE_INTERNAL_H
9#define LTTNG_EVENT_RULE_KERNEL_UPROBE_INTERNAL_H
df08d338 10
c9e313bc 11#include <common/macros.hpp>
28f23191
JG
12#include <common/payload-view.hpp>
13
c9e313bc 14#include <lttng/event-rule/event-rule-internal.hpp>
46fd07ac 15#include <lttng/event-rule/kernel-uprobe.h>
df08d338 16
46fd07ac 17struct lttng_event_rule_kernel_uprobe {
df08d338
JR
18 struct lttng_event_rule parent;
19 char *name;
20 struct lttng_userspace_probe_location *location;
21};
22
46fd07ac 23struct lttng_event_rule_kernel_uprobe_comm {
df08d338
JR
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
28f23191
JG
36ssize_t lttng_event_rule_kernel_uprobe_create_from_payload(struct lttng_payload_view *view,
37 struct lttng_event_rule **rule);
df08d338 38
df08d338 39struct lttng_userspace_probe_location *
28f23191 40lttng_event_rule_kernel_uprobe_get_location_mutable(const struct lttng_event_rule *rule);
df08d338 41
46fd07ac 42#endif /* LTTNG_EVENT_RULE_KERNEL_UPROBE_INTERNAL_H */
This page took 0.038613 seconds and 4 git commands to generate.