LTTng control library C API
Loading...
Searching...
No Matches
kernel-uprobe.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_UPROBE_H
9#define LTTNG_EVENT_RULE_KERNEL_UPROBE_H
10
11#include <lttng/event-rule/event-rule.h>
12#include <lttng/lttng-export.h>
13#include <lttng/userspace-probe.h>
14
15#ifdef __cplusplus
16extern "C" {
17#endif
18
79LTTNG_EXPORT extern struct lttng_event_rule *
81
116LTTNG_EXPORT extern enum lttng_event_rule_status
118 const struct lttng_userspace_probe_location **location);
119
148LTTNG_EXPORT extern enum lttng_event_rule_status
150
188LTTNG_EXPORT extern enum lttng_event_rule_status
190 const char **name);
191
193
194#ifdef __cplusplus
195}
196#endif
197
198#endif /* LTTNG_EVENT_RULE_KERNEL_UPROBE_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_uprobe_get_location(const struct lttng_event_rule *rule, const struct lttng_userspace_probe_location **location)
Sets *location to the user space probe location of the Linux user space probe event rule rule,...
enum lttng_event_rule_status lttng_event_rule_kernel_uprobe_get_event_name(const struct lttng_event_rule *rule, const char **name)
Sets *name to the event name of the Linux user space probe event rule rule.
enum lttng_event_rule_status lttng_event_rule_kernel_uprobe_set_event_name(struct lttng_event_rule *rule, const char *name)
Sets the event name of the Linux user space probe event rule rule to name.
struct lttng_event_rule * lttng_event_rule_kernel_uprobe_create(const struct lttng_userspace_probe_location *location)
Creates a default Linux user space probe event rule for the user space probe location location.
Event rule (opaque type).
Linux user space probe location (opaque type).