perf tests probe_vfs_getname.sh: Update to use 'perf check feature'
In probe_vfs_getname.sh, current we use "perf record --dry-run" to check for libtraceevent and skip the test if perf is not build with libtraceevent. Change the check to use "perf check feature" option Signed-off-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com> Acked-by: Namhyung Kim <namhyung@kernel.org> Cc: Disha Goel <disgoel@linux.vnet.ibm.com> Cc: Ian Rogers <irogers@google.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Kajol Jain <kjain@linux.ibm.com> Cc: Madhavan Srinivasan <maddy@linux.ibm.com> Cc: Namhyung Kim <namhyung@kernel.org> Link: https://lore.kernel.org/r/20240904190132.415212-6-adityag@linux.ibm.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
committed by
Arnaldo Carvalho de Melo
parent
8a028502b4
commit
512fcf7d9d
@@ -32,7 +32,7 @@ skip_if_no_debuginfo() {
|
||||
# check if perf is compiled with libtraceevent support
|
||||
skip_no_probe_record_support() {
|
||||
if [ $had_vfs_getname -eq 1 ] ; then
|
||||
perf record --dry-run -e $1 2>&1 | grep "libtraceevent is necessary for tracepoint support" && return 2
|
||||
return 1
|
||||
perf check feature -q libtraceevent && return 1
|
||||
return 2
|
||||
fi
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user