8#ifndef LTTNG_KERNEL_PROBE_H
9#define LTTNG_KERNEL_PROBE_H
11#include <lttng/lttng-export.h>
90LTTNG_EXPORT
extern void
145LTTNG_EXPORT
extern const char *
void lttng_kernel_probe_location_destroy(struct lttng_kernel_probe_location *location)
Destroys the Linux kprobe location location.
lttng_kernel_probe_location_status
Return type of Linux kprobe location API functions.
Definition kernel-probe.h:37
enum lttng_kernel_probe_location_type lttng_kernel_probe_location_get_type(const struct lttng_kernel_probe_location *location)
Returns the type of the Linux kprobe location location.
enum lttng_kernel_probe_location_status lttng_kernel_probe_location_address_get_address(const struct lttng_kernel_probe_location *location, uint64_t *address)
Sets *address to the address within the kernel of the Linux kprobe location location.
struct lttng_kernel_probe_location * lttng_kernel_probe_location_symbol_create(const char *symbol_name, uint64_t offset)
Creates a Linux kprobe location at the offset offset bytes from the kernel symbol named symbol.
lttng_kernel_probe_location_type
Linux kprobe location type.
Definition kernel-probe.h:52
enum lttng_kernel_probe_location_status lttng_kernel_probe_location_symbol_get_offset(const struct lttng_kernel_probe_location *location, uint64_t *offset)
Sets *offset to the offset from symbol of the Linux kprobe location location.
struct lttng_kernel_probe_location * lttng_kernel_probe_location_address_create(uint64_t address)
Creates a Linux kprobe location at the address address bytes within the kernel.
const char * lttng_kernel_probe_location_symbol_get_name(const struct lttng_kernel_probe_location *location)
Returns the symbol name of the Linux kprobe location location.
@ LTTNG_KERNEL_PROBE_LOCATION_STATUS_INVALID
Unsatisfied precondition.
Definition kernel-probe.h:42
@ LTTNG_KERNEL_PROBE_LOCATION_STATUS_OK
Success.
Definition kernel-probe.h:39
@ LTTNG_KERNEL_PROBE_LOCATION_TYPE_UNKNOWN
Unknown (error).
Definition kernel-probe.h:60
@ LTTNG_KERNEL_PROBE_LOCATION_TYPE_ADDRESS
Address within the kernel.
Definition kernel-probe.h:57
@ LTTNG_KERNEL_PROBE_LOCATION_TYPE_SYMBOL_OFFSET
Offset from a named symbol.
Definition kernel-probe.h:54
Linux kprobe location (opaque type).