![]() |
LTTng control library C API
|
Legacy Linux kprobe/kretprobe location. More...
#include <event.h>
Data Fields | |
| uint64_t | addr |
| kprobe/kretprobe address. | |
| uint64_t | offset |
| kprobe/kretprobe address offset from the symbol named lttng_event_probe_attr::symbol_name. | |
| char | symbol_name [LTTNG_SYMBOL_NAME_LEN] |
| kprobe/kretprobe symbol name. | |
Legacy Linux kprobe/kretprobe location.
Such a structure indicates the location of a Linux kprobe/kretprobe for a recording event rule having such an instrumentation point type condition.
You must initialize such a structure to zeros before setting its members and using it, for example:
Set either lttng_event_probe_attr::addr or lttng_event_probe_attr::symbol_name and lttng_event_probe_attr::offset.
| uint64_t lttng_event_probe_attr::addr |
kprobe/kretprobe address.
If this member is not 0, then lttng_event_probe_attr::symbol_name must be an empty string.
| char lttng_event_probe_attr::symbol_name[LTTNG_SYMBOL_NAME_LEN] |
kprobe/kretprobe symbol name.
The actual kprobe/kretprobe address is the address of the named symbol plus the value of lttng_event_probe_attr::offset.
If this member is not an empty string, then lttng_event_probe_attr::addr must be 0.