+++ /dev/null
-/*
- * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
- *
- * 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; only version 2
- * of the License.
- *
- * 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_CMD_H
-#define _LTTNG_CMD_H
-
-#include <lttng/lttng.h>
-#include <common/lttngerr.h>
-#include <common/lttng-share.h>
-
-enum cmd_error_code {
- CMD_SUCCESS,
- CMD_ERROR,
- CMD_UNDEFINED,
- CMD_NOT_IMPLEMENTED,
- CMD_FATAL,
-};
-
-struct cmd_struct {
- const char *name;
- int (*func)(int argc, const char **argv);
-};
-
-extern int cmd_list(int argc, const char **argv);
-extern int cmd_create(int argc, const char **argv);
-extern int cmd_destroy(int argc, const char **argv);
-extern int cmd_start(int argc, const char **argv);
-extern int cmd_stop(int argc, const char **argv);
-extern int cmd_enable_events(int argc, const char **argv);
-extern int cmd_disable_events(int argc, const char **argv);
-extern int cmd_enable_channels(int argc, const char **argv);
-extern int cmd_disable_channels(int argc, const char **argv);
-extern int cmd_add_context(int argc, const char **argv);
-extern int cmd_set_session(int argc, const char **argv);
-extern int cmd_version(int argc, const char **argv);
-extern int cmd_calibrate(int argc, const char **argv);
-
-#endif /* _LTTNG_CMD_H */
--- /dev/null
+/*
+ * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
+ *
+ * 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; only version 2
+ * of the License.
+ *
+ * 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_CMD_H
+#define _LTTNG_CMD_H
+
+#include <lttng/lttng.h>
+#include <common/lttngerr.h>
+#include <common/lttng-share.h>
+
+#include "conf.h"
+#include "utils.h"
+
+enum cmd_error_code {
+ CMD_SUCCESS,
+ CMD_ERROR,
+ CMD_UNDEFINED,
+ CMD_NOT_IMPLEMENTED,
+ CMD_FATAL,
+};
+
+struct cmd_struct {
+ const char *name;
+ int (*func)(int argc, const char **argv);
+};
+
+extern int cmd_list(int argc, const char **argv);
+extern int cmd_create(int argc, const char **argv);
+extern int cmd_destroy(int argc, const char **argv);
+extern int cmd_start(int argc, const char **argv);
+extern int cmd_stop(int argc, const char **argv);
+extern int cmd_enable_events(int argc, const char **argv);
+extern int cmd_disable_events(int argc, const char **argv);
+extern int cmd_enable_channels(int argc, const char **argv);
+extern int cmd_disable_channels(int argc, const char **argv);
+extern int cmd_add_context(int argc, const char **argv);
+extern int cmd_set_session(int argc, const char **argv);
+extern int cmd_version(int argc, const char **argv);
+extern int cmd_calibrate(int argc, const char **argv);
+
+#endif /* _LTTNG_CMD_H */
#include <urcu/list.h>
-#include "../cmd.h"
-#include "../conf.h"
-#include "../utils.h"
+#include "../command.h"
#define PRINT_LINE_LEN 80
#include <inttypes.h>
#include <ctype.h>
-#include "../cmd.h"
-#include "../conf.h"
-#include "../utils.h"
+#include "../command.h"
static int opt_event_type;
static char *opt_kernel;
#include <time.h>
#include <unistd.h>
-#include "../cmd.h"
-#include "../conf.h"
-#include "../utils.h"
+#include "../command.h"
static char *opt_output_path;
static char *opt_session_name;
#include <sys/types.h>
#include <unistd.h>
-#include "../cmd.h"
-#include "../conf.h"
-#include "../utils.h"
+#include "../command.h"
static char *opt_session_name;
#include <sys/types.h>
#include <unistd.h>
-#include "../cmd.h"
-#include "../conf.h"
-#include "../utils.h"
+#include "../command.h"
static char *opt_channels;
static int opt_kernel;
#include <sys/types.h>
#include <unistd.h>
-#include "../cmd.h"
-#include "../conf.h"
-#include "../utils.h"
+#include "../command.h"
static char *opt_event_list;
static int opt_kernel;
#include <unistd.h>
#include <inttypes.h>
-#include "../cmd.h"
-#include "../conf.h"
-#include "../utils.h"
+#include "../command.h"
static char *opt_channels;
static int opt_kernel;
#include <inttypes.h>
#include <ctype.h>
-#include "../cmd.h"
-#include "../conf.h"
-#include "../utils.h"
+#include "../command.h"
static char *opt_event_list;
static int opt_event_type;
#include <string.h>
#include <assert.h>
-#include "../cmd.h"
+#include "../command.h"
static int opt_pid;
static int opt_userspace;
#include <sys/types.h>
#include <unistd.h>
-#include "../cmd.h"
-#include "../conf.h"
-#include "../utils.h"
+#include "../command.h"
static char *opt_session_name;
#include <sys/types.h>
#include <unistd.h>
-#include "../cmd.h"
-#include "../conf.h"
-#include "../utils.h"
+#include "../command.h"
static char *opt_session_name;
#include <sys/types.h>
#include <unistd.h>
-#include "../cmd.h"
-#include "../conf.h"
-#include "../utils.h"
+#include "../command.h"
static char *opt_session_name;
#include <unistd.h>
#include <config.h>
-#include "../cmd.h"
+#include "../command.h"
enum {
OPT_HELP = 1,
#include <lttng/lttng.h>
#include <common/lttngerr.h>
-#include "cmd.h"
-#include "conf.h"
+#include "command.h"
/* Variables */
static char *progname;