make check: add warning when LTTng processes are running
[lttng-tools.git] / src / bin / lttng / command.h
CommitLineData
f3ed775e
DG
1/*
2 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
3 *
d14d33bf
AM
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License, version 2 only,
6 * as published by the Free Software Foundation.
f3ed775e
DG
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 *
d14d33bf
AM
13 * You should have received a copy of the GNU General Public License along
14 * with this program; if not, write to the Free Software Foundation, Inc.,
15 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
f3ed775e
DG
16 */
17
18#ifndef _LTTNG_CMD_H
19#define _LTTNG_CMD_H
20
21#include <lttng/lttng.h>
990570ed
DG
22#include <common/common.h>
23#include <common/defaults.h>
f3ed775e 24
c399183f
DG
25#include "conf.h"
26#include "utils.h"
27
f3ed775e 28enum cmd_error_code {
42224349 29 CMD_SUCCESS = 0,
f3ed775e
DG
30 CMD_ERROR,
31 CMD_UNDEFINED,
f3ed775e 32 CMD_FATAL,
d16c1a4c 33 CMD_WARNING,
4ce78777 34 CMD_UNSUPPORTED,
f3ed775e
DG
35};
36
37struct cmd_struct {
38 const char *name;
39 int (*func)(int argc, const char **argv);
40};
41
42extern int cmd_list(int argc, const char **argv);
43extern int cmd_create(int argc, const char **argv);
44extern int cmd_destroy(int argc, const char **argv);
f3ed775e
DG
45extern int cmd_start(int argc, const char **argv);
46extern int cmd_stop(int argc, const char **argv);
47extern int cmd_enable_events(int argc, const char **argv);
e953ef25 48extern int cmd_disable_events(int argc, const char **argv);
d36b8583 49extern int cmd_enable_channels(int argc, const char **argv);
26cc6b4e 50extern int cmd_disable_channels(int argc, const char **argv);
d65106b1 51extern int cmd_add_context(int argc, const char **argv);
3087ef18 52extern int cmd_set_session(int argc, const char **argv);
eb9cb8b7 53extern int cmd_version(int argc, const char **argv);
d0254c7c 54extern int cmd_calibrate(int argc, const char **argv);
0c95f5b2 55extern int cmd_view(int argc, const char **argv);
00e2e675
DG
56extern int cmd_enable_consumer(int argc, const char **argv);
57extern int cmd_disable_consumer(int argc, const char **argv);
57f272ed 58extern int cmd_snapshot(int argc, const char **argv);
c864d6d7 59extern int cmd_save(int argc, const char **argv);
8c42d845 60extern int cmd_load(int argc, const char **argv);
ccf10263
MD
61extern int cmd_track(int argc, const char **argv);
62extern int cmd_untrack(int argc, const char **argv);
f3ed775e
DG
63
64#endif /* _LTTNG_CMD_H */
This page took 0.062304 seconds and 4 git commands to generate.