]> www.infradead.org Git - users/dwmw2/linux.git/commit
perf/test: fix perf ftrace test on s390
authorThomas Richter <tmricht@linux.ibm.com>
Tue, 19 Nov 2024 06:48:56 +0000 (07:48 +0100)
committerNamhyung Kim <namhyung@kernel.org>
Fri, 22 Nov 2024 21:36:44 +0000 (13:36 -0800)
commit5f2c8f4e1070e474642b9dea104f531b8be52e1e
treec251b07ed8a46a17cfb391d225351c2b9e4ce114
parentbd077a53ad87cb111632e564cdfe8dfbe96786de
perf/test: fix perf ftrace test on s390

On s390 the perf test case ftrace sometimes fails as follows:

  # ./perf test ftrace
  79: perf ftrace tests    : FAILED!
  #

The failure depends on the kernel .config file. Some configurations
always work fine, some do not.  The ftrace profile test mostly fails,
because the ring buffer was not large enough, and some lines
(especially the interesting ones with nanosleep in it) where dropped.

To achieve success for all tested kernel configurations, enlarge
the buffer to store the traces completely without wrapping.
The default buffer size is too small for all kernel configurations.
Set the buffer size of for the ftrace profile test to 16 MB.

Output after:
  # ./perf test ftrace
  79: perf ftrace tests     : Ok
  #

Signed-off-by: Thomas Richter <tmricht@linux.ibm.com>
Acked-by: Namhyung Kim <namhyung@kernel.org>
Cc: agordeev@linux.ibm.com
Cc: gor@linux.ibm.com
Cc: hca@linux.ibm.com
Cc: sumanthk@linux.ibm.com
Link: https://lore.kernel.org/r/20241119064856.641446-1-tmricht@linux.ibm.com
Suggested-by: Sven Schnelle <svens@linux.ibm.com>
Suggested-by: Namhyung Kim <namhyung@kernel.org>
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
tools/perf/tests/shell/ftrace.sh