2 # SPDX-License-Identifier: GPL-2.0
3 # description: Kretprobe dynamic event with arguments
5 [ -f kprobe_events
] || exit_unsupported
# this is configurable
9 echo 'r:testprobe2 _do_fork $retval' > kprobe_events
10 grep testprobe2 kprobe_events
11 test -d events
/kprobes
/testprobe2
12 echo 1 > events
/kprobes
/testprobe
2/enable
14 echo 0 > events
/kprobes
/testprobe
2/enable
15 echo '-:testprobe2' >> kprobe_events
17 test -d events
/kprobes
/testprobe2
&& exit_fail || exit_pass