mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/chenhuacai/linux-loongson
synced 2025-09-07 05:45:24 +00:00

Commit 32f6e5da83
("selftests/ftrace: Add kprobe profile testcase")
added a new kprobes testcase, but has a description which does not
describe what the test case is doing and is duplicating the description
of another test case.
Therefore change the test case description, so it is unique and then
allows easily to tell which test case actually passed or failed.
Reported-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
15 lines
468 B
Bash
15 lines
468 B
Bash
#!/bin/sh
|
|
# SPDX-License-Identifier: GPL-2.0
|
|
# description: Kprobe profile
|
|
# requires: kprobe_events
|
|
|
|
! grep -q 'myevent' kprobe_profile
|
|
echo "p:myevent $FUNCTION_FORK" > kprobe_events
|
|
grep -q 'myevent[[:space:]]*0[[:space:]]*0$' kprobe_profile
|
|
echo 1 > events/kprobes/myevent/enable
|
|
( echo "forked" )
|
|
grep -q 'myevent[[:space:]]*[[:digit:]]*[[:space:]]*0$' kprobe_profile
|
|
echo 0 > events/kprobes/myevent/enable
|
|
echo > kprobe_events
|
|
! grep -q 'myevent' kprobe_profile
|