2 # description: Kprobe dynamic event with arguments
4 [ -f kprobe_events
] || exit_unsupported
# this is configurable
8 echo 'p:testprobe _do_fork $stack $stack0 +0($stack)' > kprobe_events
9 grep testprobe kprobe_events
10 test -d events
/kprobes
/testprobe
11 echo 1 > events
/kprobes
/testprobe
/enable
13 echo 0 > events
/kprobes
/testprobe
/enable
14 echo "-:testprobe" >> kprobe_events
16 test -d events
/kprobes
/testprobe
&& exit 1 ||
exit 0