X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=ltt-debugfs-abi.h;h=103e561b45f0460b8ac43bdb1acbd8f7c76d3dcc;hb=38d024aef3fc8a0dc8dbecf6fbd4b55dc1e5e49f;hp=2d02b44fb1995b497e321a0e41df308d028dd807;hpb=ae3dd5f081c58c263e6a70f46546c3b12b3213af;p=lttng-modules.git diff --git a/ltt-debugfs-abi.h b/ltt-debugfs-abi.h index 2d02b44f..103e561b 100644 --- a/ltt-debugfs-abi.h +++ b/ltt-debugfs-abi.h @@ -11,15 +11,16 @@ #include -enum instrum_type { - INSTRUM_TRACEPOINTS, +enum lttng_kernel_instrumentation { + LTTNG_KERNEL_TRACEPOINTS, + LTTNG_KERNEL_KPROBES, }; /* * LTTng DebugFS ABI structures. */ -struct lttng_channel { +struct lttng_kernel_channel { int overwrite; /* 1: overwrite, 0: discard */ u64 subbuf_size; u64 num_subbuf; @@ -27,20 +28,34 @@ struct lttng_channel { unsigned int read_timer_interval; }; -struct lttng_event { - enum instrum_type itype; +struct lttng_kernel_event { + enum lttng_kernel_instrumentation instrumentation; char name[]; }; -/* TODO: LTTNG_KERNEL_SESSION..... */ -/* TODO: ioctl LTTNG_KERNEL_TRACER_VERSION */ +/* + * Either addr is used, or symbol_name and offset. + */ +struct lttng_kernel_kprobe { + u64 addr; + + u64 offset; + char symbol_name[]; +}; -#define LTTNG_SESSION _IO(0xF6, 0x40) -#define LTTNG_SESSION_START _IO(0xF6, 0x41) -#define LTTNG_SESSION_STOP _IO(0xF6, 0x42) -#define LTTNG_CHANNEL _IOW(0xF6, 0x43, struct lttng_channel) -#define LTTNG_STREAM _IO(0xF6, 0x44) -#define LTTNG_EVENT _IOW(0xF6, 0x45, struct lttng_event) -#define LTTNG_METADATA _IOW(0xF6, 0x46, struct lttng_channel) +#define LTTNG_KERNEL_SESSION _IO(0xF6, 0x40) +#define LTTNG_KERNEL_SESSION_START _IO(0xF6, 0x41) +#define LTTNG_KERNEL_SESSION_STOP _IO(0xF6, 0x42) +#define LTTNG_KERNEL_CHANNEL \ + _IOW(0xF6, 0x43, struct lttng_kernel_channel) +#define LTTNG_KERNEL_STREAM _IO(0xF6, 0x44) +#define LTTNG_KERNEL_EVENT \ + _IOW(0xF6, 0x45, struct lttng_kernel_event) +#define LTTNG_KERNEL_METADATA \ + _IOW(0xF6, 0x46, struct lttng_kernel_channel) +#define LTTNG_KERNEL_KPROBE \ + _IOW(0xF6, 0x47, struct lttng_kernel_kprobe) +#define LTTNG_KERNEL_TRACER_VERSION \ + _IOW(0xF6, 0x48, struct lttng_kernel_tracer_version) #endif /* _LTT_DEBUGFS_ABI_H */