LTTNG_KERNEL_KPROBE = 1,
LTTNG_KERNEL_FUNCTION = 2,
LTTNG_KERNEL_KRETPROBE = 3,
+ LTTNG_KERNEL_NOOP = 4, /* not hooked */
+ LTTNG_KERNEL_SYSCALL = 5,
};
/*
char symbol_name[LTTNG_SYM_NAME_LEN];
};
+/*
+ * For syscall tracing, name = '\0' means "enable all".
+ */
struct lttng_kernel_event {
char name[LTTNG_SYM_NAME_LEN]; /* event name */
enum lttng_kernel_instrumentation instrumentation;
uint32_t sublevel;
};
-enum lttng_calibrate_type {
- LTTNG_CALIBRATE_KRETPROBE,
+enum lttng_kernel_calibrate_type {
+ LTTNG_KERNEL_CALIBRATE_KRETPROBE,
};
-struct lttng_calibrate {
- enum lttng_calibrate_type type; /* type (input) */
- union {
- struct {
- uint64_t addr; /* address to probe (output) */
- } kretprobe;
- } u;
+struct lttng_kernel_calibrate {
+ enum lttng_kernel_calibrate_type type; /* type (input) */
};
enum lttng_kernel_context_type {
LTTNG_KERNEL_CONTEXT_PID = 0,
LTTNG_KERNEL_CONTEXT_PERF_COUNTER = 1,
- LTTNG_KERNEL_CONTEXT_COMM = 2,
+ LTTNG_KERNEL_CONTEXT_PROCNAME = 2,
LTTNG_KERNEL_CONTEXT_PRIO = 3,
LTTNG_KERNEL_CONTEXT_NICE = 4,
LTTNG_KERNEL_CONTEXT_VPID = 5,
#define LTTNG_KERNEL_TRACEPOINT_LIST _IO(0xF6, 0x42)
#define LTTNG_KERNEL_WAIT_QUIESCENT _IO(0xF6, 0x43)
#define LTTNG_KERNEL_CALIBRATE \
- _IOWR(0xF6, 0x44, struct lttng_calibrate)
+ _IOWR(0xF6, 0x44, struct lttng_kernel_calibrate)
/* Session FD ioctl */
#define LTTNG_KERNEL_METADATA \