linux/tools/perf/tests/shell
Athira Rajeev 4627a000dc perf tests: Fix 'perf probe' error log check in skip_if_no_debuginfo
The perf probe related tests like probe_vfs_getname.sh which
is in "tools/perf/tests/shell" directory have dependency on
debuginfo information in the kernel. Currently debuginfo
check is handled by skip_if_no_debuginfo function in the
file "lib/probe_vfs_getname.sh". skip_if_no_debuginfo function
looks for this specific error log from perf probe to skip
the testcase:

<<>>
Failed to find the path for the kernel|Debuginfo-analysis is
not supported
<>>

But in some case, like this one in powerpc, while running this
test, observed error logs is:

<<>>
The /lib/modules/<version>/build/vmlinux file has no debug information.
Rebuild with CONFIG_DEBUG_INFO=y, or install an appropriate debuginfo
package.
  Error: Failed to add events.
<<>>

Update the skip_if_no_debuginfo function to include the above
error, to skip the test in these scenarios too.

Reported-by: Disha Goel <disgoel@linux.vnet.ibm.com>
Signed-off-by: Athira Jajeev <atrajeev@linux.vnet.ibm.com>
Tested-by: Disha Goel <disgoel@linux.vnet.ibm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Madhavan Srinivasan <maddy@linux.vnet.ibm.com>
Cc: Michael Ellerman <mpe@ellerman.id.au>
Cc: Nageswara R Sastry <rnsastry@linux.ibm.com>
Cc: linuxppc-dev@lists.ozlabs.org
Link: https://lore.kernel.org/r/20220916104904.99798-1-atrajeev@linux.vnet.ibm.com
Reviewed-By: Kajol Jain <kjain@linux.ibm.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2022-10-04 08:55:22 -03:00
..
lib perf tests: Fix 'perf probe' error log check in skip_if_no_debuginfo 2022-10-04 08:55:22 -03:00
buildid.sh perf buildid-cache: Add test for PE executable 2021-03-02 09:41:04 -03:00
daemon.sh Merge remote-tracking branch 'torvalds/master' into perf/core 2021-03-29 10:39:10 -03:00
pipe_test.sh perf tools: Add pipe_test.sh to verify pipe operations 2021-08-02 10:14:58 -03:00
probe_vfs_getname.sh perf tests: Add missing SPDX headers 2019-06-17 15:57:19 -03:00
record_offcpu.sh perf offcpu: Update offcpu test for child process 2022-08-11 17:57:45 -03:00
record.sh perf test: Fix test case 87 ("perf record tests") for hybrid systems 2022-09-29 09:52:56 -03:00
record+probe_libc_inet_pton.sh Merge remote-tracking branch 'tip/perf/core' into perf/urgent 2019-07-08 13:06:57 -03:00
record+script_probe_vfs_getname.sh perf test: Fix record+script_probe_vfs_getname.sh /tmp cleanup 2021-10-26 11:14:49 -03:00
record+zstd_comp_decomp.sh perf tests: Remove bash construct from record+zstd_comp_decomp.sh 2021-11-13 18:11:51 -03:00
stat_all_metricgroups.sh perf test: Enable system wide for metricgroups test 2022-01-11 18:46:23 -03:00
stat_all_metrics.sh perf test: Make all metrics test more tolerant 2022-07-12 08:54:47 -03:00
stat_all_pmu.sh perf test: Fix "all PMU test" to skip hv_24x7/hv_gpci tests on powerpc 2022-05-21 14:45:06 -03:00
stat_bpf_counters_cgrp.sh perf test: Add a new test for perf stat cgroup BPF counter 2022-09-21 10:30:55 -03:00
stat_bpf_counters.sh perf test: Remove bash construct from stat_bpf_counters.sh test 2021-11-13 18:11:51 -03:00
stat.sh perf test: Stat test for repeat with a weak group 2022-08-27 11:55:17 -03:00
stat+csv_output.sh perf test: Fix test case 83 ('perf stat CSV output linter') on s390 2022-07-20 13:20:33 -03:00
stat+csv_summary.sh perf test: Add CSV summary test 2021-03-24 10:21:57 -03:00
stat+json_output.sh perf test: JSON format checking 2022-08-10 10:44:01 -03:00
stat+shadow_stat.sh perf tests: Skip 'perf stat metrics (shadow stat) test' for hybrid 2021-04-29 10:31:00 -03:00
test_arm_callgraph_fp.sh perf test: Record only user callchains on the "Check Arm64 callgraphs are complete in fp mode" test 2022-06-19 10:41:43 -03:00
test_arm_coresight.sh perf tests: Fix coresight perf test failure. 2022-05-08 21:48:49 -03:00
test_arm_spe_fork.sh perf test arm-spe: Check if perf-record hangs when recording workload with forks 2022-06-03 21:18:35 +02:00
test_arm_spe.sh perf test: Add ARM SPE system wide test 2022-08-01 14:46:30 -03:00
test_brstack.sh perf tests powerpc: Fix branch stack sampling test to include sanity check for branch filter 2022-09-26 10:24:31 -03:00
test_intel_pt.sh perf intel-pt: Add a test for system-wide side band 2022-05-26 12:36:56 -03:00
trace+probe_vfs_getname.sh perf tests: Fix trace+probe_vfs_getname.sh /tmp cleanup 2021-10-26 11:17:38 -03:00