[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251008064500.245926-1-costa.shul@redhat.com>
Date: Wed, 8 Oct 2025 09:44:58 +0300
From: Costa Shulyupin <costa.shul@...hat.com>
To: Steven Rostedt <rostedt@...dmis.org>,
Tomas Glozar <tglozar@...hat.com>,
Crystal Wood <crwood@...hat.com>,
Costa Shulyupin <costa.shul@...hat.com>,
linux-trace-kernel@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: [PATCH v1] tools/rtla: Add missing --quiet option to timerlat hist
The --quiet option is available in all other rtla tools and documented
in the usage string, but was accidentally omitted from timerlat hist.
Add the missing --quiet option to timerlat hist for consistency and to
avoid confusion when silencing its output.
Signed-off-by: Costa Shulyupin <costa.shul@...hat.com>
---
tools/tracing/rtla/src/timerlat_hist.c | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tools/tracing/rtla/src/timerlat_hist.c b/tools/tracing/rtla/src/timerlat_hist.c
index 606c1688057b..983153b311ff 100644
--- a/tools/tracing/rtla/src/timerlat_hist.c
+++ b/tools/tracing/rtla/src/timerlat_hist.c
@@ -830,6 +830,7 @@ static struct common_params
{"nano", no_argument, 0, 'n'},
{"period", required_argument, 0, 'p'},
{"priority", required_argument, 0, 'P'},
+ {"quiet", no_argument, 0, 'q'},
{"stack", required_argument, 0, 's'},
{"thread", required_argument, 0, 'T'},
{"trace", optional_argument, 0, 't'},
@@ -859,7 +860,7 @@ static struct common_params
/* getopt_long stores the option index here. */
int option_index = 0;
- c = getopt_long(argc, argv, "a:c:C::b:d:e:E:DhH:i:knp:P:s:t::T:uU0123456:7:8:9\1\2:\3:",
+ c = getopt_long(argc, argv, "a:c:C::b:d:e:E:DhH:i:knp:P:qs:t::T:uU0123456:7:8:9\1\2:\3:",
long_options, &option_index);
/* detect the end of the options. */
@@ -961,6 +962,9 @@ static struct common_params
timerlat_hist_usage("Invalid -P priority");
params->common.set_sched = 1;
break;
+ case 'q':
+ params->common.quiet = 1;
+ break;
case 's':
params->print_stack = get_llong_from_str(optarg);
break;
--
2.51.0
Powered by blists - more mailing lists