Patch "perf test: Remove bash construct from stat_bpf_counters.sh test" has been added to the 5.15-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 test: Remove bash construct from stat_bpf_counters.sh test

to the 5.15-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-test-remove-bash-construct-from-stat_bpf_counte.patch
and it can be found in the queue-5.15 subdirectory.

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



commit a0f13f5935ec64accd11b32b3a25c7b8aeff9c06
Author: James Clark <james.clark@xxxxxxx>
Date:   Thu Oct 28 14:48:25 2021 +0100

    perf test: Remove bash construct from stat_bpf_counters.sh test
    
    [ Upstream commit c8b947642d2339ce74c6a1ce56726089539f48d9 ]
    
    Currently the test skips with an error because == only works in bash:
    
      $ ./perf test 91 -v
      Couldn't bump rlimit(MEMLOCK), failures may take place when creating BPF maps, etc
      91: perf stat --bpf-counters test                                   :
      --- start ---
      test child forked, pid 44586
      ./tests/shell/stat_bpf_counters.sh: 26: [: -v: unexpected operator
      test child finished with -2
      ---- end ----
      perf stat --bpf-counters test: Skip
    
    Changing == to = does the same thing, but doesn't result in an error:
    
      ./perf test 91 -v
      Couldn't bump rlimit(MEMLOCK), failures may take place when creating BPF maps, etc
      91: perf stat --bpf-counters test                                   :
      --- start ---
      test child forked, pid 45833
      Skipping: --bpf-counters not supported
        Error: unknown option `bpf-counters'
      [...]
      test child finished with -2
      ---- end ----
      perf stat --bpf-counters test: Skip
    
    Signed-off-by: James Clark <james.clark@xxxxxxx>
    Cc: Alexander Shishkin <alexander.shishkin@xxxxxxxxxxxxxxx>
    Cc: Florian Fainelli <f.fainelli@xxxxxxxxx>
    Cc: Ian Rogers <irogers@xxxxxxxxxx>
    Cc: Jiri Olsa <jolsa@xxxxxxxxxx>
    Cc: John Fastabend <john.fastabend@xxxxxxxxx>
    Cc: KP Singh <kpsingh@xxxxxxxxxx>
    Cc: Mark Rutland <mark.rutland@xxxxxxx>
    Cc: Martin KaFai Lau <kafai@xxxxxx>
    Cc: Namhyung Kim <namhyung@xxxxxxxxxx>
    Cc: Song Liu <songliubraving@xxxxxx>
    Cc: Sumanth Korikkar <sumanthk@xxxxxxxxxxxxx>
    Cc: Thomas Richter <tmricht@xxxxxxxxxxxxx>
    Cc: Yonghong Song <yhs@xxxxxx>
    Cc: bpf@xxxxxxxxxxxxxxx
    Cc: netdev@xxxxxxxxxxxxxxx
    Link: https://lore.kernel.org/r/20211028134828.65774-2-james.clark@xxxxxxx
    Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
    Stable-dep-of: 68ca249c964f ("perf test shell stat_bpf_counters: Fix test on Intel")
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/tools/perf/tests/shell/stat_bpf_counters.sh b/tools/perf/tests/shell/stat_bpf_counters.sh
index 2aed20dc22625..13473aeba489c 100755
--- a/tools/perf/tests/shell/stat_bpf_counters.sh
+++ b/tools/perf/tests/shell/stat_bpf_counters.sh
@@ -23,7 +23,7 @@ compare_number()
 
 # skip if --bpf-counters is not supported
 if ! perf stat --bpf-counters true > /dev/null 2>&1; then
-	if [ "$1" == "-v" ]; then
+	if [ "$1" = "-v" ]; then
 		echo "Skipping: --bpf-counters not supported"
 		perf --no-pager stat --bpf-counters true || true
 	fi



[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