Commit | Line | Data |
---|---|---|
ed2849af MD |
1 | /* |
2 | * lttctl.h | |
2727692a | 3 | * |
ed2849af | 4 | * Linux Trace Toolkit Control Library Header File |
2727692a | 5 | * |
ed2849af | 6 | * Controls the ltt-control kernel module through debugfs. |
2727692a | 7 | * |
ed2849af | 8 | * Copyright (c) 2005-2010 Mathieu Desnoyers <mathieu.desnoyers@efficios.com> |
2727692a | 9 | * |
ed2849af MD |
10 | * This library is free software; you can redistribute it and/or |
11 | * modify it under the terms of the GNU Lesser General Public | |
12 | * License as published by the Free Software Foundation; either | |
13 | * version 2.1 of the License, or (at your option) any later version. | |
14 | * | |
15 | * This library is distributed in the hope that it will be useful, | |
2727692a | 16 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
ed2849af MD |
17 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
18 | * Lesser General Public License for more details. | |
2727692a | 19 | * |
ed2849af MD |
20 | * You should have received a copy of the GNU Lesser General Public |
21 | * License along with this library; if not, write to the Free Software | |
22 | * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA | |
2727692a | 23 | */ |
24 | ||
ed2849af MD |
25 | #ifndef _LTTCTL_H |
26 | #define _LTTCTL_H | |
2727692a | 27 | |
c928825d | 28 | int lttctl_init(void); |
29 | int lttctl_destroy(void); | |
30 | int lttctl_setup_trace(const char *name); | |
31 | int lttctl_destroy_trace(const char *name); | |
32 | int lttctl_alloc_trace(const char *name); | |
33 | int lttctl_start(const char *name); | |
34 | int lttctl_pause(const char *name); | |
35 | int lttctl_set_trans(const char *name, const char *trans); | |
36 | int lttctl_set_channel_enable(const char *name, const char *channel, | |
37 | int enable); | |
38 | int lttctl_set_channel_overwrite(const char *name, const char *channel, | |
39 | int overwrite); | |
40 | int lttctl_set_channel_subbuf_num(const char *name, const char *channel, | |
41 | unsigned subbuf_num); | |
42 | int lttctl_set_channel_subbuf_size(const char *name, const char *channel, | |
43 | unsigned subbuf_size); | |
8d5607b4 MD |
44 | int lttctl_set_channel_switch_timer(const char *name, const char *channel, |
45 | unsigned switch_timer); | |
c928825d | 46 | |
354b34fd | 47 | /* Helper functions */ |
48 | int getdebugfsmntdir(char *mntdir); | |
49 | ||
ed2849af | 50 | #endif /*_LTTCTL_H */ |