Patch "perf tests arm_callgraph_fp: Address shellcheck warnings about signal names and adding double quotes for expression" has been added to the 6.1-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

    perf tests arm_callgraph_fp: Address shellcheck warnings about signal names and adding double quotes for expression

to the 6.1-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:
     perf-tests-arm_callgraph_fp-address-shellcheck-warni.patch
and it can be found in the queue-6.1 subdirectory.

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



commit 95fa541b0cb3b4cba864523dc52a9afebd61064e
Author: Spoorthy S <spoorts2@xxxxxxxxxx>
Date:   Tue Jun 13 22:11:31 2023 +0530

    perf tests arm_callgraph_fp: Address shellcheck warnings about signal names and adding double quotes for expression
    
    [ Upstream commit 1bb17b4c6c91ad4d9468247cf5f5464fa6440668 ]
    
    Running shellcheck -S on test_arm_calligraph_fp throws warnings SC2086 and SC3049,
    
          $shellcheck -S warning tests/shell/test_arm_callgraph_fp.sh
             rm -f $PERF_DATA
                : Double quote to prevent globbing and word splitting.
             trap cleanup_files exit term int
                         : In POSIX sh, using lower/mixed case for signal names is undefined.
    
    After fixing the warnings,
    
          $shellcheck tests/shell/test_arm_callgraph_fp.sh
          $ echo $?
          0
    
    To address the POSIX shell warnings added changes to convert Lowercase
    signal names to uppercase in the script and double quoted the
    command substitutions($fix to "$fix") to solve Globbing warnings.
    
    Signed-off-by: Spoorthy S<spoorts2@xxxxxxxxxx>
    Cc: Disha Goel <disgoel@xxxxxxxxxxxxxxxxxx>
    Cc: Ian Rogers <irogers@xxxxxxxxxx>
    Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
    Cc: John Garry <john.g.garry@xxxxxxxxxx>
    Cc: Madhavan Srinivasan <maddy@xxxxxxxxxxxxx>
    Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
    Cc: Ravi Bangoria <ravi.bangoria@xxxxxxx>
    Cc: linuxppc-dev@xxxxxxxxxxxxxxxx
    Link: https://lore.kernel.org/r/20230613164145.50488-4-atrajeev@xxxxxxxxxxxxxxxxxx
    Signed-off-by: Athira Rajeev <atrajeev@xxxxxxxxxxxxxxxxxx>
    Signed-off-by: Kajol Jain <kjain@xxxxxxxxxxxxx>
    Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
    Stable-dep-of: ff16aeb9b834 ("perf test: Make test_arm_callgraph_fp.sh more robust")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/perf/tests/shell/test_arm_callgraph_fp.sh b/tools/perf/tests/shell/test_arm_callgraph_fp.sh
index e61d8deaa0c41..1380e0d12dce3 100755
--- a/tools/perf/tests/shell/test_arm_callgraph_fp.sh
+++ b/tools/perf/tests/shell/test_arm_callgraph_fp.sh
@@ -9,13 +9,13 @@ TEST_PROGRAM="perf test -w leafloop"
 
 cleanup_files()
 {
-	rm -f $PERF_DATA
+	rm -f "$PERF_DATA"
 }
 
-trap cleanup_files exit term int
+trap cleanup_files EXIT TERM INT
 
 # Add a 1 second delay to skip samples that are not in the leaf() function
-perf record -o $PERF_DATA --call-graph fp -e cycles//u -D 1000 --user-callchains -- $TEST_PROGRAM 2> /dev/null &
+perf record -o "$PERF_DATA" --call-graph fp -e cycles//u -D 1000 --user-callchains -- "$TEST_PROGRAM" 2> /dev/null &
 PID=$!
 
 echo " + Recording (PID=$PID)..."




[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