* This is the kernel ABI copied from lttng-modules tree.
*/
-/* Either addr is used or symbol_name and offset. */
-struct lttng_kernel_kprobe {
- uint64_t addr;
-
- uint64_t offset;
- char symbol_name[LTTNG_SYM_NAME_LEN];
-};
-
-struct lttng_kernel_function_tracer {
+/* Function tracer */
+struct lttng_kernel_function_attr {
char symbol_name[LTTNG_SYM_NAME_LEN];
};
enum lttng_kernel_instrumentation instrumentation;
/* Per instrumentation type configuration */
union {
- struct lttng_kernel_kprobe kprobe;
- struct lttng_kernel_function_tracer ftrace;
+ struct lttng_kernel_kprobe_attr kprobe;
+ struct lttng_kernel_function_attr ftrace;
} u;
};
};
/*
- * Either addr is used or symbol_name and offset.
+ * Kernel Kprobe. Either addr is used or symbol_name and offset.
*/
-struct lttng_event_kprobe_attr {
+struct lttng_kernel_kprobe_attr {
uint64_t addr;
uint64_t offset;
enum lttng_event_type type;
/* Per event type configuration */
union {
- struct lttng_event_kprobe_attr kprobe;
+ struct lttng_kernel_kprobe_attr kprobe;
struct lttng_event_function_attr ftrace;
} attr;
};
uint64_t num_subbuf; /* power of 2 */
unsigned int switch_timer_interval; /* usec */
unsigned int read_timer_interval; /* usec */
- enum lttng_event_output output; /* splice, mmap */
+ enum lttng_event_output output; /* splice, mmap */
};
/*