From 57a13317407af307da09f519799a860f88ae7246 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Thu, 2 Dec 2010 16:12:12 -0500 Subject: [PATCH] Add ltt-debugfs-abi.h Signed-off-by: Mathieu Desnoyers --- ltt-debugfs-abi.h | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 ltt-debugfs-abi.h diff --git a/ltt-debugfs-abi.h b/ltt-debugfs-abi.h new file mode 100644 index 00000000..a232e131 --- /dev/null +++ b/ltt-debugfs-abi.h @@ -0,0 +1,42 @@ +#ifndef _LTT_DEBUGFS_ABI_H +#define _LTT_DEBUGFS_ABI_H + +/* + * ltt-debugfs-abi.h + * + * Copyright 2010 (c) - Mathieu Desnoyers + * + * LTTng debugfs ABI header + */ + +#include + +enum instrum_type { + INSTRUM_TRACEPOINTS, +}; + +/* + * LTTng DebugFS ABI structures. + */ + +struct lttng_channel { + int overwrite; /* 1: overwrite, 0: discard */ + u64 subbuf_size; + u64 num_subbuf; + unsigned int switch_timer_interval; + unsigned int read_timer_interval; +}; + +struct lttng_event { + enum instrum_type itype; + char 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) + +#endif /* _LTT_DEBUGFS_ABI_H */ -- 2.34.1