perf test annotate: Use --percent-limit rather than head to reduce output
authorIan Rogers <irogers@google.com>
Sat, 28 Jun 2025 01:58:32 +0000 (18:58 -0700)
committerNamhyung Kim <namhyung@kernel.org>
Mon, 30 Jun 2025 16:12:55 +0000 (09:12 -0700)
commit146847932278fef1ce13b5a839077e51ca019395
tree37a8bb63d08774df32c79c6fdfe0e999a2aee827
parent5ceedc09f27f87a6adc00d522b06dcce990a1986
perf test annotate: Use --percent-limit rather than head to reduce output

The annotate test was sped up by Thomas Richter
<tmricht@linux.ibm.com> in commit
658a8805cb60 ("perf test: Speed up test case 70 annotate basic tests")
by reducing the annotate output using head. This causes flakes on
hybrid machines where the first event dumped may not have the samples
for the test within it. Rather than reduce the output using `head`
switch to `--percent-limit 10` which will stop annotate dumping
functions that have an overhead of less than 10%, the noploop program
should be using more.

Add the missing objdump option for the pipe mode version of the
objdump with a command test.

Signed-off-by: Ian Rogers <irogers@google.com>
Tested-by: Thomas Richter <tmricht@linux.ibm.com>
Link: https://lore.kernel.org/r/20250628015832.1271229-1-irogers@google.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/annotate.sh