X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=lttng%2Foptions.h;fp=lttng%2Foptions.h;h=d5c0b5372addd603071123c79eaaafcd699f0d10;hb=64a23ac4e22093a782b87fe615fabf20edacedd2;hp=0000000000000000000000000000000000000000;hpb=b738434783af68bc4f8a0de9b97e89e58c30f16e;p=lttng-tools.git diff --git a/lttng/options.h b/lttng/options.h new file mode 100644 index 000000000..d5c0b5372 --- /dev/null +++ b/lttng/options.h @@ -0,0 +1,50 @@ +/* Copyright (C) 2011 - David Goulet + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + */ + +#ifndef _LTTNG_OPTIONS_H +#define _LTTNG_OPTIONS_H_ + +/* Function prototypes */ +int parse_args(int argc, const char **argv); +void clean_exit(int code); + +/* Command line options */ +extern int opt_trace_kernel; +extern int opt_verbose; +extern int opt_quiet; +extern char *opt_tracing_group; +extern char *opt_session_uuid; +extern char *opt_sessiond_path; +extern char *opt_session_name; +extern char *opt_event_list; +extern char *opt_trace_name; +extern int opt_destroy_trace; +extern int opt_enable_event; +extern int opt_disable_event; +extern int opt_destroy_session; +extern int opt_create_session; +extern int opt_kern_create_channel; +extern int opt_list_apps; +extern int opt_no_sessiond; +extern int opt_list_session; +extern int opt_list_traces; +extern int opt_create_trace; +extern int opt_start_trace; +extern int opt_stop_trace; +extern pid_t opt_trace_pid; + +#endif /* _LTTNG_OPTIONS_H */