mirror-linux/tools/perf/tests/shell
Veronika Molnarova 06a130e42a perf test: Handle perftool-testsuite_probe failure due to broken DWARF
Test case test_adding_blacklisted ends in failure if the blacklisted
probe is of an assembler function with no DWARF available. At the same
time, probing the blacklisted function with ASM DWARF doesn't test the
blacklist itself as the failure is a result of the broken DWARF.

When the broken DWARF output is encountered, check if the probed
function was compiled by the assembler. If so, the broken DWARF message
is expected and does not report a perf issue, else report a failure.  If
the ASM DWARF affected the probe, try the next probe on the blacklist.
If the first 5 probes are defective due to broken DWARF, skip the test
case.

Fixes: def5480d63 ("perf testsuite probe: Add test for blacklisted kprobes handling")
Signed-off-by: Veronika Molnarova <vmolnaro@redhat.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Michael Petlan <mpetlan@redhat.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Veronika Molnarova <vmolnaro@redhat.com>
Link: https://lore.kernel.org/r/20241017161555.236769-1-vmolnaro@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2024-10-23 17:23:09 -03:00
..
base_probe perf test: Handle perftool-testsuite_probe failure due to broken DWARF 2024-10-23 17:23:09 -03:00
base_report perf testsuite report: Add test for perf-report basic functionality 2024-08-28 18:07:21 -03:00
common perf testsuite report: Add test for perf-report basic functionality 2024-08-28 18:07:21 -03:00
coresight
lib perf test shell probe_vfs_getname: Remove extraneous '=' from probe line number regex 2024-09-11 09:35:34 -03:00
annotate.sh perf test annotate: Dump trapping test in trap handler 2024-08-14 10:20:39 -03:00
buildid.sh
daemon.sh
diff.sh
ftrace.sh perf tests ftrace: Add pattern check for time, count 2024-08-08 09:59:40 -03:00
list.sh
lock_contention.sh
perftool-testsuite_probe.sh
perftool-testsuite_report.sh perf testsuite report: Add test case for perf report 2024-08-28 18:07:21 -03:00
pipe_test.sh perf inject: Lazy build-id mmap2 event insertion 2024-09-10 17:32:47 -03:00
probe_vfs_getname.sh
record+probe_libc_inet_pton.sh perf tests probe_vfs_getname.sh: Update to use 'perf check feature' 2024-09-04 16:19:52 -03:00
record+script_probe_vfs_getname.sh perf tests probe_vfs_getname.sh: Update to use 'perf check feature' 2024-09-04 16:19:52 -03:00
record+zstd_comp_decomp.sh
record.sh perf test: Add cgroup sampling test 2024-08-19 16:32:32 -03:00
record_bpf_filter.sh perf test: Add 'perf record cgroup' filtering test 2024-08-28 18:22:27 -03:00
record_lbr.sh perf test shell lbr: Support hybrid x86 systems too 2024-08-08 17:30:39 -03:00
record_offcpu.sh
record_sideband.sh
script.sh perf test: Avoid python leak sanitizer test failures 2024-07-31 16:12:59 -03:00
stat+csv_output.sh
stat+csv_summary.sh
stat+json_output.sh
stat+shadow_stat.sh
stat+std_output.sh
stat.sh
stat_all_metricgroups.sh
stat_all_metrics.sh
stat_all_pfm.sh
stat_all_pmu.sh
stat_bpf_counters.sh perf test stat_bpf_counter.sh: Stabilize the test results 2024-06-26 11:10:58 -07:00
stat_bpf_counters_cgrp.sh
stat_metrics_values.sh
test_arm_callgraph_fp.sh perf test: Make test_arm_callgraph_fp.sh more robust 2024-06-24 14:42:59 -07:00
test_arm_coresight.sh perf test shell arm_coresight: Increase buffer size for Coresight basic tests 2024-04-18 22:22:51 -03:00
test_arm_spe.sh
test_arm_spe_fork.sh
test_brstack.sh
test_data_symbol.sh
test_intel_pt.sh
test_java_symbol.sh
test_perf_data_converter_json.sh
test_stat_intel_tpebs.sh perf test: Add test for Intel TPEBS counting mode 2024-08-13 15:26:54 -03:00
test_task_analyzer.sh perf tools test_task_analyzer.sh: Update to use 'perf check feature' 2024-09-04 16:19:33 -03:00
test_uprobe_from_different_cu.sh perf test: Skip uprobe test if probe command isn't present 2024-09-03 11:23:01 -03:00
trace+probe_vfs_getname.sh
trace_btf_enum.sh perf test trace_btf_enum: Fix shellcheck warning 2024-08-28 18:18:33 -03:00