LTTng control library C API
Loading...
Searching...
No Matches
kernel-kprobe.h
1/*
2 * SPDX-FileCopyrightText: 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_KPROBE_H
9#define LTTNG_EVENT_RULE_KERNEL_KPROBE_H
10
11#include <lttng/event-rule/event-rule.h>
12#include <lttng/lttng-export.h>
13
14#ifdef __cplusplus
15extern "C" {
16#endif
17
24
85LTTNG_EXPORT extern struct lttng_event_rule *
87
121LTTNG_EXPORT extern enum lttng_event_rule_status
123 const struct lttng_kernel_probe_location **location);
124
153LTTNG_EXPORT extern enum lttng_event_rule_status
155
193LTTNG_EXPORT extern enum lttng_event_rule_status
195 const char **name);
196
198
199#ifdef __cplusplus
200}
201#endif
202
203#endif /* LTTNG_EVENT_RULE_KERNEL_KPROBE_H */
lttng_event_rule_status
Return type of event rule API functions.
Definition event-rule.h:75
enum lttng_event_rule_status lttng_event_rule_kernel_kprobe_set_event_name(struct lttng_event_rule *rule, const char *name)
Sets the event name of the Linux kprobe event rule rule to name.
enum lttng_event_rule_status lttng_event_rule_kernel_kprobe_get_location(const struct lttng_event_rule *rule, const struct lttng_kernel_probe_location **location)
Sets *location to the kprobe location of the Linux kprobe event rule rule, a copy of the kprobe locat...
enum lttng_event_rule_status lttng_event_rule_kernel_kprobe_get_event_name(const struct lttng_event_rule *rule, const char **name)
Sets *name to the event name of the Linux kprobe event rule rule.
struct lttng_event_rule * lttng_event_rule_kernel_kprobe_create(const struct lttng_kernel_probe_location *location)
Creates a default Linux kprobe event rule for the kprobe location location.
Event rule (opaque type).
Linux kprobe location (opaque type).