blob: 588fde97e93f02750ad54f5de5060b5be7462a2d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/sh
# description: Kprobe dynamic event - busy event check
[ -f kprobe_events ] || exit 1
echo 0 > events/enable || exit 1
echo > kprobe_events || exit 1
echo p:myevent do_fork > kprobe_events || exit 1
[ -d events/kprobes/myevent ] || exit 1
echo 1 > events/kprobes/myevent/enable || exit 1
echo > kprobe_events && exit 1 # this must fail
echo 0 > events/kprobes/myevent/enable || exit 1
echo > kprobe_events # this must succeed
|