Revision c8b947642d2339ce74c6a1ce56726089539f48d9 authored by James Clark on 28 October 2021, 13:48:25 UTC, committed by Arnaldo Carvalho de Melo on 13 November 2021, 21:11:51 UTC
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@arm.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Florian Fainelli <f.fainelli@gmail.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: John Fastabend <john.fastabend@gmail.com>
Cc: KP Singh <kpsingh@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Martin KaFai Lau <kafai@fb.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Song Liu <songliubraving@fb.com>
Cc: Sumanth Korikkar <sumanthk@linux.ibm.com>
Cc: Thomas Richter <tmricht@linux.ibm.com>
Cc: Yonghong Song <yhs@fb.com>
Cc: bpf@vger.kernel.org
Cc: netdev@vger.kernel.org
Link: https://lore.kernel.org/r/20211028134828.65774-2-james.clark@arm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 88e4823
History
File Mode Size
completion.rst -rw-r--r-- 12.2 KB
index.rst -rw-r--r-- 369 bytes
sched-arch.rst -rw-r--r-- 2.8 KB
sched-bwc.rst -rw-r--r-- 10.9 KB
sched-capacity.rst -rw-r--r-- 15.9 KB
sched-deadline.rst -rw-r--r-- 36.7 KB
sched-design-CFS.rst -rw-r--r-- 9.6 KB
sched-domains.rst -rw-r--r-- 4.3 KB
sched-energy.rst -rw-r--r-- 19.5 KB
sched-nice-design.rst -rw-r--r-- 5.1 KB
sched-pelt.c -rw-r--r-- 2.0 KB
sched-rt-group.rst -rw-r--r-- 6.8 KB
sched-stats.rst -rw-r--r-- 7.4 KB
schedutil.txt -rw-r--r-- 5.9 KB
text_files.rst -rw-r--r-- 101 bytes

back to top