projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix: allow quiet rotation at destroy of live session
[lttng-tools.git]
/
src
/
bin
/
lttng
/
command.h
diff --git
a/src/bin/lttng/command.h
b/src/bin/lttng/command.h
index 3ac61e1e4fd8914e7244094ff630423e201490f7..6b20847f26168d9368d85056e030bca9fb2f2d12 100644
(file)
--- a/
src/bin/lttng/command.h
+++ b/
src/bin/lttng/command.h
@@
-28,13
+28,20
@@
#define DECL_COMMAND(_name) \
extern int cmd_##_name(int, const char **)
#define DECL_COMMAND(_name) \
extern int cmd_##_name(int, const char **)
+#ifdef LTTNG_EMBED_HELP
+# define HELP_MSG_NAME help_msg
+# define SHOW_HELP_ERROR_LINE ERR("Cannot show --help for `lttng-%s`", argv[0]);
+#else
+# define HELP_MSG_NAME NULL
+# define SHOW_HELP_ERROR_LINE ;
+#endif
+
#define SHOW_HELP() \
do { \
#define SHOW_HELP() \
do { \
- ret = show_cmd_
man_page(argv[0]);
\
+ ret = show_cmd_
help(argv[0], HELP_MSG_NAME);
\
\
if (ret) { \
\
if (ret) { \
- ERR("Cannot view man page lttng-%s(1)", argv[0]); \
- perror("exec"); \
+ SHOW_HELP_ERROR_LINE \
ret = CMD_ERROR; \
} \
} while (0)
ret = CMD_ERROR; \
} \
} while (0)
@@
-66,7
+73,6
@@
DECL_COMMAND(disable_channels);
DECL_COMMAND(add_context);
DECL_COMMAND(set_session);
DECL_COMMAND(version);
DECL_COMMAND(add_context);
DECL_COMMAND(set_session);
DECL_COMMAND(version);
-DECL_COMMAND(calibrate);
DECL_COMMAND(view);
DECL_COMMAND(enable_consumer);
DECL_COMMAND(disable_consumer);
DECL_COMMAND(view);
DECL_COMMAND(enable_consumer);
DECL_COMMAND(disable_consumer);
@@
-77,6
+83,9
@@
DECL_COMMAND(track);
DECL_COMMAND(untrack);
DECL_COMMAND(metadata);
DECL_COMMAND(regenerate);
DECL_COMMAND(untrack);
DECL_COMMAND(metadata);
DECL_COMMAND(regenerate);
+DECL_COMMAND(rotate);
+DECL_COMMAND(enable_rotation);
+DECL_COMMAND(disable_rotation);
extern int cmd_help(int argc, const char **argv,
const struct cmd_struct commands[]);
extern int cmd_help(int argc, const char **argv,
const struct cmd_struct commands[]);
This page took
0.024905 seconds
and
4
git commands to generate.