perf test: Fix non-bash issue with stat bpf counters
authorIan Rogers <irogers@google.com>
Thu, 17 Jun 2021 18:42:13 +0000 (11:42 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Sat, 19 Jun 2021 13:06:46 +0000 (10:06 -0300)
commit482698c2f848f9dee1a5bd949793c2fe6a71adc5
tree3aedfc9c88379dacf9d92b5a2b8a1bd1418fbabe
parentc087e9480cf33672ef2c6cce4348d754988b8437
perf test: Fix non-bash issue with stat bpf counters

$(( .. )) is a bash feature but the test's interpreter is !/bin/sh,
switch the code to use expr.

Signed-off-by: Ian Rogers <irogers@google.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Song Liu <songliubraving@fb.com>
Cc: bpf@vger.kernel.org
Link: http://lore.kernel.org/lkml/20210617184216.2075588-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/tests/shell/stat_bpf_counters.sh