31d2c6b0 |
1 | /* libltt header file |
2 | * |
3 | * Copyright 2005- |
e59e4125 |
4 | * Mathieu Desnoyers <mathieu.desnoyers@polymtl.ca> |
31d2c6b0 |
5 | * |
6 | * |
7 | * This program is free software; you can redistribute it and/or modify |
8 | * it under the terms of the GNU General Public License as published by |
9 | * the Free Software Foundation; either version 2 of the License, or |
10 | * (at your option) any later version. |
11 | * |
12 | * This program is distributed in the hope that it will be useful, |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
e59e4125 |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
31d2c6b0 |
15 | * GNU General Public License for more details. |
16 | * |
31d2c6b0 |
17 | */ |
18 | |
19 | #ifndef _LIBLTT_H |
20 | #define _LIBLTT_H |
21 | |
64ba9405 |
22 | int lttctl_init(void); |
23 | int lttctl_destroy(void); |
24 | int lttctl_setup_trace(const char *name); |
25 | int lttctl_destroy_trace(const char *name); |
26 | int lttctl_alloc_trace(const char *name); |
27 | int lttctl_start(const char *name); |
28 | int lttctl_pause(const char *name); |
29 | int lttctl_set_trans(const char *name, const char *trans); |
30 | int lttctl_set_channel_enable(const char *name, const char *channel, |
31 | int enable); |
32 | int lttctl_set_channel_overwrite(const char *name, const char *channel, |
33 | int overwrite); |
34 | int lttctl_set_channel_subbuf_num(const char *name, const char *channel, |
35 | unsigned subbuf_num); |
36 | int lttctl_set_channel_subbuf_size(const char *name, const char *channel, |
37 | unsigned subbuf_size); |
38 | |
ddc3e631 |
39 | /* Helper functions */ |
40 | int getdebugfsmntdir(char *mntdir); |
41 | |
64ba9405 |
42 | #endif /*_LIBLTT_H */ |