diff options
author | Steven Rostedt (Google) <rostedt@goodmis.org> | 2023-01-06 13:39:27 -0500 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2023-01-09 13:12:37 -0500 |
commit | 762310195778ec91343b35ba64b15c319520899c (patch) | |
tree | cf410d61f5507ab6bf230ff1300bd041e41b4b86 | |
parent | 57b2342dca41f6467b59ea293414f1694896c4a7 (diff) | |
download | trace-cmd-762310195778ec91343b35ba64b15c319520899c.tar.gz |
trace-cmd stream: Set default sleep time to half a second
When in streaming mode, set the default to half a second instead of 1
millisecond (which should be changed for record as well).
Link: https://lore.kernel.org/linux-trace-devel/20230106183930.12565-8-rostedt@goodmis.org
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
-rw-r--r-- | tracecmd/trace-record.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tracecmd/trace-record.c b/tracecmd/trace-record.c index 03f990e3..9eb10cd8 100644 --- a/tracecmd/trace-record.c +++ b/tracecmd/trace-record.c @@ -7161,11 +7161,15 @@ void trace_stream(int argc, char **argv) { struct common_record_context ctx; + /* Default sleep time is half a second for streaming */ + sleep_time = 500000; + parse_record_options(argc, argv, CMD_stream, &ctx); record_trace_command(argc, argv, &ctx); exit(0); } + void trace_profile(int argc, char **argv) { struct common_record_context ctx; |