]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tools/rtla: Fix --dump-tasks usage in timerlat
authorCosta Shulyupin <costa.shul@redhat.com>
Tue, 14 Apr 2026 18:52:18 +0000 (21:52 +0300)
committerTomas Glozar <tglozar@redhat.com>
Mon, 18 May 2026 09:00:44 +0000 (11:00 +0200)
Fix --dump-task to --dump-tasks in timerlat_hist usage string
and getopt_long table for consistency with timerlat_top.

Add missing --dump-tasks to timerlat_top usage synopsis.

Assisted-by: Claude:claude-opus-4-6
Signed-off-by: Costa Shulyupin <costa.shul@redhat.com>
Fixes: 2091336b9a8b ("rtla/timerlat_hist: Add auto-analysis support")
Link: https://lore.kernel.org/r/20260414185223.65353-1-costa.shul@redhat.com
Signed-off-by: Tomas Glozar <tglozar@redhat.com>
tools/tracing/rtla/src/timerlat_hist.c
tools/tracing/rtla/src/timerlat_top.c

index 79142af4f5662e6c6bbc57f5045a3ee4f0d7ccb0..3a15a85b7d72380019f556af0b7672cd3d495a94 100644 (file)
@@ -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'},
index 64cbdcc878b0d080cf7f3b5c13a37ffac56dd912..e3a374005690616e6a93b25be371e44af2d1db8b 100644 (file)
@@ -467,7 +467,8 @@ static void timerlat_top_usage(void)
        static const char *const msg_start[] = {
                "[-q] [-a us] [-d s] [-D] [-n] [-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] [--dma-latency us] [--aa-only us] [-C [cgroup_name]] [-u|-k] [--warm-up s] [--deepest-idle-state n]",
+               "         [-P priority] [--dma-latency us] [--aa-only us] [-C [cgroup_name]] [--dump-tasks] [-u|-k] [--warm-up s]\\",
+               "         [--deepest-idle-state n]",
                NULL,
        };