Update licensing: lgplv2.1 for libs, gplv2 for programs
[ltt-control.git] / liblttctl / lttctl.h
1 /*
2 * lttctl.h
3 *
4 * Linux Trace Toolkit Control Library Header File
5 *
6 * Controls the ltt-control kernel module through debugfs.
7 *
8 * Copyright (c) 2005-2010 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
9 *
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,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
19 *
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
23 */
24
25 #ifndef _LTTCTL_H
26 #define _LTTCTL_H
27
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);
44 int lttctl_set_channel_switch_timer(const char *name, const char *channel,
45 unsigned switch_timer);
46
47 /* Helper functions */
48 int getdebugfsmntdir(char *mntdir);
49
50 #endif /*_LTTCTL_H */
This page took 0.030366 seconds and 4 git commands to generate.