| 1 | /* Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca> |
| 2 | * |
| 3 | * This program is free software; you can redistribute it and/or |
| 4 | * modify it under the terms of the GNU General Public License |
| 5 | * as published by the Free Software Foundation; either version 2 |
| 6 | * of the License, or (at your option) any later version. |
| 7 | * |
| 8 | * This program is distributed in the hope that it will be useful, |
| 9 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 10 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 11 | * GNU General Public License for more details. |
| 12 | * |
| 13 | * You should have received a copy of the GNU General Public License |
| 14 | * along with this program; if not, write to the Free Software |
| 15 | * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
| 16 | */ |
| 17 | |
| 18 | #ifndef _LTTNG_OPTIONS_H |
| 19 | #define _LTTNG_OPTIONS_H_ |
| 20 | |
| 21 | /* Function prototypes */ |
| 22 | int parse_args(int argc, const char **argv); |
| 23 | void clean_exit(int code); |
| 24 | |
| 25 | /* Command line options */ |
| 26 | extern int opt_trace_kernel; |
| 27 | extern int opt_verbose; |
| 28 | extern int opt_quiet; |
| 29 | extern char *opt_tracing_group; |
| 30 | extern char *opt_session_uuid; |
| 31 | extern char *opt_sessiond_path; |
| 32 | extern char *opt_session_name; |
| 33 | extern char *opt_event_list; |
| 34 | extern char *opt_trace_name; |
| 35 | extern int opt_destroy_trace; |
| 36 | extern int opt_enable_event; |
| 37 | extern int opt_enable_all_event; |
| 38 | extern int opt_disable_event; |
| 39 | extern int opt_destroy_session; |
| 40 | extern int opt_create_session; |
| 41 | extern int opt_kern_create_channel; |
| 42 | extern int opt_list_apps; |
| 43 | extern int opt_list_events; |
| 44 | extern int opt_no_sessiond; |
| 45 | extern int opt_list_session; |
| 46 | extern int opt_list_traces; |
| 47 | extern int opt_create_trace; |
| 48 | extern int opt_start_trace; |
| 49 | extern int opt_stop_trace; |
| 50 | extern pid_t opt_trace_pid; |
| 51 | |
| 52 | #endif /* _LTTNG_OPTIONS_H */ |