public inbox for linux-trace-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] tools/rtla: Fix --dump-task option name to --dump-tasks
@ 2026-04-14 14:06 Costa Shulyupin
  2026-04-14 18:07 ` Crystal Wood
  0 siblings, 1 reply; 3+ messages in thread
From: Costa Shulyupin @ 2026-04-14 14:06 UTC (permalink / raw)
  To: Steven Rostedt, Tomas Glozar, Costa Shulyupin, Crystal Wood,
	Wander Lairson Costa, Ivan Pravdin, linux-trace-kernel,
	linux-kernel

The option was inconsistently named --dump-task in the usage
string and getopt_long table while the actual implementation
uses --dump-tasks. Fix both occurrences to match.

Assisted-by: Claude:claude-opus-4-6
Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
---
 tools/tracing/rtla/src/timerlat_hist.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tools/tracing/rtla/src/timerlat_hist.c b/tools/tracing/rtla/src/timerlat_hist.c
index 79142af4f566..3a15a85b7d72 100644
--- a/tools/tracing/rtla/src/timerlat_hist.c
+++ b/tools/tracing/rtla/src/timerlat_hist.c
@@ -694,7 +694,7 @@ static void timerlat_hist_usage(void)
 		"[-d s] [-D] [-n] [-a us] [-p us] [-i us] [-T us] [-s us] \\",
 		"         [-t [file]] [-e sys[:event]] [--filter <filter>] [--trigger <trigger>] [-c cpu-list] [-H cpu-list]\\",
 		"	  [-P priority] [-E N] [-b N] [--no-irq] [--no-thread] [--no-header] [--no-summary] \\",
-		"	  [--no-index] [--with-zeros] [--dma-latency us] [-C [cgroup_name]] [--no-aa] [--dump-task] [-u|-k]",
+		"	  [--no-index] [--with-zeros] [--dma-latency us] [-C [cgroup_name]] [--no-aa] [--dump-tasks] [-u|-k]",
 		"	  [--warm-up s] [--deepest-idle-state n]",
 		NULL,
 	};
@@ -808,7 +808,7 @@ static struct common_params
 			{"filter",		required_argument,	0, '7'},
 			{"dma-latency",		required_argument,	0, '8'},
 			{"no-aa",		no_argument,		0, '9'},
-			{"dump-task",		no_argument,		0, '\1'},
+			{"dump-tasks",		no_argument,		0, '\1'},
 			{"warm-up",		required_argument,	0, '\2'},
 			{"trace-buffer-size",	required_argument,	0, '\3'},
 			{"deepest-idle-state",	required_argument,	0, '\4'},
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] tools/rtla: Fix --dump-task option name to --dump-tasks
  2026-04-14 14:06 [PATCH v1] tools/rtla: Fix --dump-task option name to --dump-tasks Costa Shulyupin
@ 2026-04-14 18:07 ` Crystal Wood
  2026-04-14 18:51   ` Costa Shulyupin
  0 siblings, 1 reply; 3+ messages in thread
From: Crystal Wood @ 2026-04-14 18:07 UTC (permalink / raw)
  To: Costa Shulyupin, Steven Rostedt, Tomas Glozar,
	Wander Lairson Costa, Ivan Pravdin, linux-trace-kernel,
	linux-kernel

On Tue, 2026-04-14 at 17:06 +0300, Costa Shulyupin wrote:
> The option was inconsistently named --dump-task in the usage
> string and getopt_long table while the actual implementation
> uses --dump-tasks. Fix both occurrences to match.

How is the getopt_long table not the "actual implementation"?

Wouldn't it make more sense to fix the one place in the documentation
that says --dump-tasks to match what the current behavior is?

...except that apparently timerlat top does use --dump-tasks[1], so
maybe we want to make that consistent, but the changelog should be clear
that this is an interface change for timerlat hist.

We should also probably be making sure we have test coverage for both
hist and top, which would have caught this, rather than picking one or
the other for most tests.

-Crystal

[1] Oddly, timerlat_top.c is missing --dump-tasks from msg_start[],
which is the one place that timerlat_hist.c has the plural --dump-tasks.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH v1] tools/rtla: Fix --dump-task option name to --dump-tasks
  2026-04-14 18:07 ` Crystal Wood
@ 2026-04-14 18:51   ` Costa Shulyupin
  0 siblings, 0 replies; 3+ messages in thread
From: Costa Shulyupin @ 2026-04-14 18:51 UTC (permalink / raw)
  To: Crystal Wood
  Cc: Steven Rostedt, Tomas Glozar, Wander Lairson Costa, Ivan Pravdin,
	linux-trace-kernel, linux-kernel

> How is the getopt_long table not the "actual implementation"?
You are right. My bad.

Costa


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-04-14 18:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-14 14:06 [PATCH v1] tools/rtla: Fix --dump-task option name to --dump-tasks Costa Shulyupin
2026-04-14 18:07 ` Crystal Wood
2026-04-14 18:51   ` Costa Shulyupin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox