SoW-2019-0007-2: Dynamic Snapshot: Triggers send partial event payload with notifications
[lttng-tools.git] / include / lttng / event-rule / kretprobe-internal.h
CommitLineData
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_KRETPROBE_INTERNAL_H
9#define LTTNG_EVENT_RULE_KRETPROBE_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/kretprobe.h>
15
16struct lttng_event_rule_kretprobe {
17 struct lttng_event_rule parent;
18 char *name;
19 struct {
20 uint64_t address;
21 uint64_t offset;
22 char *symbol_name;
23 } probe;
24};
25
26struct lttng_event_rule_kretprobe_comm {
27 uint32_t name_len;
28 uint32_t probe_symbol_len;
29 /*name, probe symbol_name */
30 char payload[];
31} LTTNG_PACKED;
32
33LTTNG_HIDDEN
34ssize_t lttng_event_rule_kretprobe_create_from_buffer(
35 const struct lttng_buffer_view *view,
36 struct lttng_event_rule **rule);
37
38LTTNG_HIDDEN
39uint64_t lttng_event_rule_kretprobe_get_address(
40 const struct lttng_event_rule *rule);
41
42LTTNG_HIDDEN
43uint64_t lttng_event_rule_kretprobe_get_offset(
44 const struct lttng_event_rule *rule);
45
46LTTNG_HIDDEN
47const char *lttng_event_rule_kretprobe_get_symbol_name(
48 const struct lttng_event_rule *rule);
49
50#endif /* LTTNG_EVENT_RULE_KRETPROBE_INTERNAL_H */
This page took 0.029564 seconds and 5 git commands to generate.