Patch "rtla: Fix consistency in getopt_long for timerlat_hist" has been added to the 6.12-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    rtla: Fix consistency in getopt_long for timerlat_hist

to the 6.12-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     rtla-fix-consistency-in-getopt_long-for-timerlat_his.patch
and it can be found in the queue-6.12 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 6bf3ee049d6fd11286071919d0ae17b6f74d31eb
Author: Gabriele Monaco <gmonaco@xxxxxxxxxx>
Date:   Thu Sep 26 16:34:17 2024 +0200

    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@xxxxxxxxxx>
    Cc: Luis Goncalves <lgoncalv@xxxxxxxxxx>
    Cc: Tomas Glozar <tglozar@xxxxxxxxxx>
    Link: https://lore.kernel.org/20240926143417.54039-1-gmonaco@xxxxxxxxxx
    Signed-off-by: Gabriele Monaco <gmonaco@xxxxxxxxxx>
    Signed-off-by: Steven Rostedt (Google) <rostedt@xxxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/tracing/rtla/src/timerlat_hist.c b/tools/tracing/rtla/src/timerlat_hist.c
index 829511a712224..f6aa83ff15659 100644
--- a/tools/tracing/rtla/src/timerlat_hist.c
+++ b/tools/tracing/rtla/src/timerlat_hist.c
@@ -778,7 +778,7 @@ static struct timerlat_hist_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:s:t::T:uU0123456:7:8:9\1\2:\3:",
 				 long_options, &option_index);
 
 		/* detect the end of the options. */




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux