Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

perf test record.sh: Fix shellcheck warning

Add quotes to avoid the following warning:
```
In tests/shell/record.sh line 264:
[ $(uname -m) = "s390x" ] && {
^---------^ SC2046 (warning): Quote this to prevent word splitting.

For more information:
https://www.shellcheck.net/wiki/SC2046 -- Quote this to prevent word splitt...
```

Fixes: c73a56ed3c97ae65 ("perf test: Fix test case Leader sampling on s390")
Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Ian Rogers and committed by
Arnaldo Carvalho de Melo
c60ee958 36a1b006

+1 -1
+1 -1
tools/perf/tests/shell/record.sh
··· 261 261 test_leader_sampling() { 262 262 echo "Basic leader sampling test" 263 263 events="{cycles,cycles}:Su" 264 - [ $(uname -m) = "s390x" ] && { 264 + [ "$(uname -m)" = "s390x" ] && { 265 265 [ ! -d /sys/devices/cpum_sf ] && { 266 266 echo "No CPUMF [Skipped record]" 267 267 return