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

perf tools test_task_analyzer.sh: Update to use 'perf check feature'

Currently we use output of 'perf version --build-options', to check
whether perf was built with libtraceevent support.

Instead, use 'perf check feature libtraceevent' to check for
libtraceevent support.

Reviewed-by: Athira Rajeev <atrajeev@linux.vnet.ibm.com>
Signed-off-by: Aditya Gupta <adityag@linux.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-5-adityag@linux.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by

Aditya Gupta and committed by
Arnaldo Carvalho de Melo
8a028502 6cdd7750

+2 -2
+2 -2
tools/perf/tests/shell/test_task_analyzer.sh
··· 55 55 56 56 # check if perf is compiled with libtraceevent support 57 57 skip_no_probe_record_support() { 58 - perf version --build-options | grep -q " OFF .* HAVE_LIBTRACEEVENT" && return 2 59 - return 0 58 + perf check feature -q libtraceevent && return 0 59 + return 2 60 60 } 61 61 62 62 prepare_perf_data() {