perf/test: Speed up test case perf annotate basic tests
authorThomas Richter <tmricht@linux.ibm.com>
Tue, 17 Sep 2024 08:57:06 +0000 (10:57 +0200)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 27 Sep 2024 06:42:46 +0000 (23:42 -0700)
commitb38c49d8296b9eee1ffb6471853d542fd76de2fb
treefd2dc4aa7decb8498bbe6013f2ae17e7eab0c945
parent4f23fc34cc68812c68c3a3dec15e26e87565f430
perf/test: Speed up test case perf annotate basic tests

perf test 70 takes a long time. One culprit is the output of command
perf annotate. Per default enabled are
 - demangle symbol names
 - interleave source code with assembly code.
Disable demangle of symbols and abort the annotation
after the first 250 lines.

This speeds up the test case considerable, for example
on s390:

Output before:
 # time  perf test 70
 70: perf annotate basic tests             : Ok
 .....
 real   2m7.467s
 user   1m26.869s
 sys    0m34.086s
 #

 Output after:
 # time perf test 70
 70: perf annotate basic tests             : Ok

 real   0m3.341s
 user   0m1.606s
 sys    0m0.362s
 #

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Reviewed-by: James Clark <james.clark@linaro.org>
Cc: Heiko Carstens <hca@linux.ibm.com>
Cc: Vasily Gorbik <gor@linux.ibm.com>
Cc: Alexander Gordeev <agordeev@linux.ibm.com>
Cc: sumanthk@linux.ibm.com
Link: https://lore.kernel.org/r/20240917085706.249691-1-tmricht@linux.ibm.com
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/annotate.sh