Commit | Line | Data |
---|---|---|
57a13317 MD |
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) | |
5dbbdb43 | 41 | #define LTTNG_METADATA _IOW(0xF6, 0x46, struct lttng_channel) |
57a13317 MD |
42 | |
43 | #endif /* _LTT_DEBUGFS_ABI_H */ |