perf test: Detect off-cpu support from build options
authorIan Rogers <irogers@google.com>
Thu, 14 Sep 2023 21:19:48 +0000 (14:19 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 18 Sep 2023 23:46:53 +0000 (16:46 -0700)
commitb4f48f34f9c195e8e82b31ecd8202445962c734b
tree31729260026c84e1b9169d669cd8ec812a2166af
parentc2ac838ef734cb0ff351820b77acc6fd3b6634fb
perf test: Detect off-cpu support from build options

Use perf version to detect whether BPF skeletons were enabled in a
build rather than a failing perf record.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Namhyung Kim <namhyung@kernel.org>
Cc: James Clark <james.clark@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Nick Terrell <terrelln@fb.com>
Cc: Patrice Duroux <patrice.duroux@gmail.com>
Cc: Nick Desaulniers <ndesaulniers@google.com>
Cc: Andrii Nakryiko <andrii@kernel.org>
Cc: Nathan Chancellor <nathan@kernel.org>
Cc: Kajol Jain <kjain@linux.ibm.com>
Cc: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Cc: Tiezhu Yang <yangtiezhu@loongson.cn>
Cc: Tom Rix <trix@redhat.com>
Cc: llvm@lists.linux.dev
Cc: bpf@vger.kernel.org
Link: https://lore.kernel.org/r/20230914211948.814999-6-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/record_offcpu.sh