OSDN Git Service

selftests/ftrace: Save kprobe_events to test log
authorTiezhu Yang <yangtiezhu@loongson.cn>
Fri, 6 May 2022 11:02:02 +0000 (19:02 +0800)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Thu, 12 May 2022 16:00:33 +0000 (18:00 +0200)
commiteab691b1a6841813e84abfc8cef392b67efdaede
treebb10fa4c3a283c5090a921de23e5bf901a7b9eda
parenta4fa106ee1e146a1955e81337ad95f0cc5c20592
selftests/ftrace: Save kprobe_events to test log

It may lead to kernel panic when execute the following testcase on mips:

  # cd tools/testing/selftests/ftrace
  # ./ftracetest test.d/kprobe/multiple_kprobes.tc

A preliminary analysis shows that the issue is related with

  echo 1 > events/kprobes/enable

after add the 256 probe points.

In order to find the root cause, I want to verify which probe point has
problem, so it is necessary to save kprobe_events to test log.

With this patch, we can get the 256 probe points in the test log through
the following command:

  # ./ftracetest test.d/kprobe/multiple_kprobes.tc -vvv -k

Signed-off-by: Tiezhu Yang <yangtiezhu@loongson.cn>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc