Add ltt-debugfs-abi.h
[lttng-modules.git] / ltt-debugfs-abi.h
1 #ifndef _LTT_DEBUGFS_ABI_H
2 #define _LTT_DEBUGFS_ABI_H
3
4 /*
5 * ltt-debugfs-abi.h
6 *
7 * Copyright 2010 (c) - Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
8 *
9 * LTTng debugfs ABI header
10 */
11
12 #include <linux/fs.h>
13
14 enum instrum_type {
15 INSTRUM_TRACEPOINTS,
16 };
17
18 /*
19 * LTTng DebugFS ABI structures.
20 */
21
22 struct lttng_channel {
23 int overwrite; /* 1: overwrite, 0: discard */
24 u64 subbuf_size;
25 u64 num_subbuf;
26 unsigned int switch_timer_interval;
27 unsigned int read_timer_interval;
28 };
29
30 struct lttng_event {
31 enum instrum_type itype;
32 char name[];
33 };
34
35 #define LTTNG_SESSION _IO(0xF6, 0x40)
36 #define LTTNG_SESSION_START _IO(0xF6, 0x41)
37 #define LTTNG_SESSION_STOP _IO(0xF6, 0x42)
38 #define LTTNG_CHANNEL _IOW(0xF6, 0x43, struct lttng_channel)
39 #define LTTNG_STREAM _IO(0xF6, 0x44)
40 #define LTTNG_EVENT _IOW(0xF6, 0x45, struct lttng_event)
41
42 #endif /* _LTT_DEBUGFS_ABI_H */
This page took 0.029334 seconds and 4 git commands to generate.