!58 trace-cmd stream: Set default sleep time to half a second
From: @meiyang666 Reviewed-by: @Charlie_li Signed-off-by: @Charlie_li
This commit is contained in:
commit
8266ed2a90
@ -0,0 +1,31 @@
|
||||
From 57e830f5078314a114a34c6512629ff66b9ee590 Mon Sep 17 00:00:00 2001
|
||||
From: wangmeiyang <wangmeiyang@xfusion.com>
|
||||
Date: Tue, 26 Dec 2023 11:01:29 +0800
|
||||
Subject: [PATCH 1/2] 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>
|
||||
---
|
||||
tracecmd/trace-record.c | 3 +++
|
||||
1 file changed, 3 insertions(+)
|
||||
|
||||
diff --git a/tracecmd/trace-record.c b/tracecmd/trace-record.c
|
||||
index 89a3e76..826d1e7 100644
|
||||
--- a/tracecmd/trace-record.c
|
||||
+++ b/tracecmd/trace-record.c
|
||||
@@ -6533,6 +6533,9 @@ 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(argc, argv, &ctx);
|
||||
exit(0);
|
||||
--
|
||||
2.37.0.windows.1
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
Name: trace-cmd
|
||||
Version: 2.9.2
|
||||
Release: 9
|
||||
Release: 10
|
||||
Summary: A front-end for Ftrace
|
||||
License: GPLv2 and LGPLv2
|
||||
URL: http://git.kernel.org/?p=linux/kernel/git/rostedt/trace-cmd.git;a=summary
|
||||
@ -72,6 +72,9 @@ echo "%{_bindir}/%{name}" > $RPM_BUILD_ROOT/etc/ld.so.conf.d/%{name}-%{_arch}.co
|
||||
%{_mandir}/man5/*
|
||||
|
||||
%changelog
|
||||
* Thu Dec 26 2023 meiyang666 <wangmeiyang@xfusion.com> - 2.9.2-10
|
||||
- trace-cmd stream: Set default sleep time to half a second
|
||||
|
||||
* Mon Jan 09 2023 Bolehu <heyaohua@xfusion.com> - 2.9.2-9
|
||||
- Fix broken profile command
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user