]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
rtla: Fix consistency in getopt_long for timerlat_hist
authorGabriele Monaco <gmonaco@redhat.com>
Thu, 26 Sep 2024 14:34:17 +0000 (16:34 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2024 19:03:58 +0000 (20:03 +0100)
commit5f87f1b22f3f3ae59deead3f10dd2b166717d2cf
treedfefb7692c583a38e18732464ba96a947935e407
parent53835aaccc2c76d9158f7e6255db3e99fac4f2b1
rtla: Fix consistency in getopt_long for timerlat_hist

[ Upstream commit cfb1ea216c1656a4112becbc4bf757891933b902 ]

Commit e9a4062e1527 ("rtla: Add --trace-buffer-size option") adds a new
long option to rtla utilities, but among all affected files,
timerlat_hist misses a trailing `:` in the corresponding short option
inside the getopt string (e.g. `\3:`). This patch propagates the `:`.

Although this change is not functionally required, it improves
consistency and slightly reduces the likelihood a future change would
introduce a problem.

Cc: John Kacur <jkacur@redhat.com>
Cc: Luis Goncalves <lgoncalv@redhat.com>
Cc: Tomas Glozar <tglozar@redhat.com>
Link: https://lore.kernel.org/20240926143417.54039-1-gmonaco@redhat.com
Signed-off-by: Gabriele Monaco <gmonaco@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/tracing/rtla/src/timerlat_hist.c