Skip to content

Commit eab691b

Browse files
seehearfeeltsbogend
authored andcommitted
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>
1 parent a4fa106 commit eab691b

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tools/testing/selftests/ftrace/test.d/kprobe/multiple_kprobes.tc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ if [ $L -ne 256 ]; then
2525
exit_fail
2626
fi
2727

28+
cat kprobe_events >> $testlog
29+
2830
echo 1 > events/kprobes/enable
2931
echo 0 > events/kprobes/enable
3032
echo > kprobe_events

0 commit comments

Comments
 (0)