2 # description: Kprobe dynamic event - busy event check
4 [ -f kprobe_events
] || exit_unsupported
8 echo p
:myevent _do_fork
> kprobe_events
9 test -d events
/kprobes
/myevent
10 echo 1 > events
/kprobes
/myevent
/enable
11 echo > kprobe_events
&& exit 1 # this must fail
12 echo 0 > events
/kprobes
/myevent
/enable
13 echo > kprobe_events
# this must succeed