@@ -24,14 +24,15 @@ OPTIONS
-------
*-N* - Don't load plugins
-*--verbose* 'level'::
+*--verbose*[='level']::
Set the log level. Supported log levels are "none", "critical", "error", "warning",
"info", "debug", "all" or their identifiers "0", "1", "2", "3", "4", "5", "6". Setting the log
level to specific value enables all logs from that and all previous levels.
+ The level will default to "info" if one is not specified.
Example: enable all critical, error and warning logs
- trace-cmd check-events --verbose warning
+ trace-cmd check-events --verbose=warning
SEE ALSO
--------
@@ -52,14 +52,15 @@ OPTIONS
Print all meta data from the file.
*--help*::
Print usage information.
-*--verbose* 'level'::
+*--verbose*[='level']::
Set the log level. Supported log levels are "none", "critical", "error", "warning",
"info", "debug", "all" or their identifiers "0", "1", "2", "3", "4", "5", "6". Setting the log
level to specific value enables all logs from that and all previous levels.
+ The level will default to "info" if one is not specified.
Example: enable all critical, error and warning logs
- trace-cmd report --verbose warning
+ trace-cmd report --verbose=warning
EXAMPLES
--------
@@ -67,14 +67,15 @@ OPTIONS
this is the same as the default. But if *-B* or *-a* is used, this is
required if the top level instance buffer should also be extracted.
-*--verbose* 'level'::
+*--verbose*[='level']::
Set the log level. Supported log levels are "none", "critical", "error", "warning",
"info", "debug", "all" or their identifiers "0", "1", "2", "3", "4", "5", "6". Setting the log
level to specific value enables all logs from that and all previous levels.
+ The level will default to "info" if one is not specified.
Example: enable all critical, error and warning logs
- trace-cmd extract --verbose warning
+ trace-cmd extract --verbose=warning
SEE ALSO
--------
@@ -36,14 +36,15 @@ OPTIONS
*-l* 'filename'::
This option writes the output messages to a log file instead of standard output.
-*--verbose* 'level'::
+*--verbose*[='level']::
Set the log level. Supported log levels are "none", "critical", "error", "warning",
"info", "debug", "all" or their identifiers "0", "1", "2", "3", "4", "5", "6". Setting the log
level to specific value enables all logs from that and all previous levels.
+ The level will default to "info" if one is not specified.
Example: enable all critical, error and warning logs
- trace-cmd listen --verbose warning
+ trace-cmd listen --verbose=warning
SEE ALSO
--------
@@ -90,14 +90,15 @@ These are the same as trace-cmd-record(1) with the *--profile* option.
is not changed. This allows watching the command execute and saving the
output of the profile to another file.
-*--verbose* 'level'::
+*--verbose*[='level']::
Set the log level. Supported log levels are "none", "critical", "error", "warning",
"info", "debug", "all" or their identifiers "0", "1", "2", "3", "4", "5", "6". Setting the log
level to specific value enables all logs from that and all previous levels.
+ The level will default to "info" if one is not specified.
Example: enable all critical, error and warning logs
- trace-cmd profile --verbose warning
+ trace-cmd profile --verbose=warning
EXAMPLES
--------
@@ -360,14 +360,15 @@ OPTIONS
executed will not be changed. This is useful if you want to monitor the
output of the command being executed, but not see the output from trace-cmd.
-*--verbose* 'level'::
+*--verbose*[='level']::
Set the log level. Supported log levels are "none", "critical", "error", "warning",
"info", "debug", "all" or their identifiers "0", "1", "2", "3", "4", "5", "6". Setting the log
level to specific value enables all logs from that and all previous levels.
+ The level will default to "info" if one is not specified.
Example: enable all critical, error and warning logs
- trace-cmd record --verbose warning
+ trace-cmd record --verbose=warning
EXAMPLES
--------
@@ -315,14 +315,15 @@ OPTIONS
*--align-ts*::
Display timestamps aligned to the first event.
-*--verbose* 'level'::
+*--verbose*[='level']::
Set the log level. Supported log levels are "none", "critical", "error", "warning",
"info", "debug", "all" or their identifiers "0", "1", "2", "3", "4", "5", "6". Setting the log
level to specific value enables all logs from that and all previous levels.
+ The level will default to "info" if one is not specified.
Example: enable all critical, error and warning logs
- trace-cmd report --verbose warning
+ trace-cmd report --verbose=warning
EXAMPLES
--------
@@ -227,14 +227,15 @@ OPTIONS
unless the *--fork* option is specified. Then it will fork the command and
return immediately.
-*--verbose* 'level'::
+*--verbose*[='level']::
Set the log level. Supported log levels are "none", "critical", "error", "warning",
"info", "debug", "all" or their identifiers "0", "1", "2", "3", "4", "5", "6". Setting the log
level to specific value enables all logs from that and all previous levels.
+ The level will default to "info" if one is not specified.
Example: enable all critical, error and warning logs
- trace-cmd set --verbose warning
+ trace-cmd set --verbose=warning
EXAMPLES
--------
@@ -24,9 +24,10 @@ stack found since the start was enabled.
Use *--reset* to reset the stack counter to zero.
-User *--verbose* 'level' to set the log level. Supported log levels are "none", "critical", "error",
+User *--verbose*[='level'] to set the log level. Supported log levels are "none", "critical", "error",
"warning", "info", "debug", "all" or their identifiers "0", "1", "2", "3", "4", "5", "6". Setting
-the log level to specific value enables all logs from that and all previous levels.
+the log level to specific value enables all logs from that and all previous levels. The level will
+default to "info" if one is not specified.
SEE ALSO
--------
@@ -302,7 +302,7 @@ void trace_agent(int argc, char **argv)
{"port", required_argument, NULL, 'p'},
{"help", no_argument, NULL, '?'},
{"debug", no_argument, NULL, DO_DEBUG},
- {"verbose", required_argument, NULL, OPT_verbose},
+ {"verbose", optional_argument, NULL, OPT_verbose},
{NULL, 0, NULL, 0}
};
@@ -24,7 +24,7 @@ void trace_check_events(int argc, char **argv)
int open_flags = 0;
int option_index = 0;
static struct option long_options[] = {
- {"verbose", required_argument, NULL, OPT_verbose},
+ {"verbose", optional_argument, NULL, OPT_verbose},
{NULL, 0, NULL, 0}
};
@@ -62,8 +62,9 @@ int trace_set_verbose(char *level)
{
int id;
+ /* Default level is info */
if (!level)
- return -1;
+ level = "info";
if (isdigit(level[0])) {
id = atoi(level);
@@ -723,7 +723,7 @@ void trace_dump(int argc, char **argv)
{"clock", no_argument, NULL, OPT_clock},
{"validate", no_argument, NULL, 'v'},
{"help", no_argument, NULL, '?'},
- {"verbose", required_argument, NULL, OPT_verbose},
+ {"verbose", optional_argument, NULL, OPT_verbose},
{NULL, 0, NULL, 0}
};
@@ -939,7 +939,7 @@ void trace_listen(int argc, char **argv)
{"port", required_argument, NULL, 'p'},
{"help", no_argument, NULL, '?'},
{"debug", no_argument, NULL, OPT_debug},
- {"verbose", required_argument, NULL, OPT_verbose},
+ {"verbose", optional_argument, NULL, OPT_verbose},
{NULL, 0, NULL, 0}
};
@@ -1603,7 +1603,7 @@ void trace_report (int argc, char **argv)
{"ts-check", no_argument, NULL, OPT_tscheck},
{"raw-ts", no_argument, NULL, OPT_raw_ts},
{"align-ts", no_argument, NULL, OPT_align_ts},
- {"verbose", required_argument, NULL, OPT_verbose},
+ {"verbose", optional_argument, NULL, OPT_verbose},
{"help", no_argument, NULL, '?'},
{NULL, 0, NULL, 0}
};
@@ -6173,7 +6173,7 @@ static void parse_record_options(int argc,
{"tsync-interval", required_argument, NULL, OPT_tsyncinterval},
{"fork", no_argument, NULL, OPT_fork},
{"tsc2nsec", no_argument, NULL, OPT_tsc2nsec},
- {"verbose", required_argument, NULL, OPT_verbose},
+ {"verbose", optional_argument, NULL, OPT_verbose},
{NULL, 0, NULL, 0}
};
@@ -164,7 +164,7 @@ void trace_stack (int argc, char **argv)
{"stop", no_argument, NULL, OPT_stop},
{"reset", no_argument, NULL, OPT_reset},
{"help", no_argument, NULL, '?'},
- {"verbose", required_argument, NULL, OPT_verbose},
+ {"verbose", optional_argument, NULL, OPT_verbose},
{NULL, 0, NULL, 0}
};