LTTng control library C API
Loading...
Searching...
No Matches

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.
 

Detailed Description

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:

memset(&loc, 0, sizeof(loc));
Legacy Linux kprobe/kretprobe location.
Definition event.h:1216

Set either lttng_event_probe_attr::addr or lttng_event_probe_attr::symbol_name and lttng_event_probe_attr::offset.

See also
Instrumentation point type condition.

Field Documentation

◆ addr

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.

◆ symbol_name

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.