Clean-up: run format-cpp on the tree
[lttng-tools.git] / include / lttng / event-rule / kernel-kprobe-internal.hpp
CommitLineData
077192fd
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
85522de5
JR
8#ifndef LTTNG_EVENT_RULE_KERNEL_KPROBE_INTERNAL_H
9#define LTTNG_EVENT_RULE_KERNEL_KPROBE_INTERNAL_H
077192fd 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>
85522de5 15#include <lttng/event-rule/kernel-kprobe.h>
077192fd 16
85522de5 17struct lttng_event_rule_kernel_kprobe {
077192fd
JR
18 struct lttng_event_rule parent;
19 char *name;
20 struct lttng_kernel_probe_location *location;
21};
22
85522de5 23struct lttng_event_rule_kernel_kprobe_comm {
077192fd
JR
24 /* Includes terminator `\0`. */
25 uint32_t name_len;
26 uint32_t location_len;
27 /*
28 * Payload is composed of, in that order:
29 * - name (null terminated),
30 * - kernel probe location object.
31 */
32 char payload[];
33} LTTNG_PACKED;
34
28f23191
JG
35ssize_t lttng_event_rule_kernel_kprobe_create_from_payload(struct lttng_payload_view *payload,
36 struct lttng_event_rule **rule);
077192fd 37
85522de5 38#endif /* LTTNG_EVENT_RULE_KERNEL_KPROBE_INTERNAL_H */
This page took 0.03905 seconds and 4 git commands to generate.