blob: 5ddfb476eceb1c2568a6935a2123d14d6836c6bb (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/sh
# description: Kprobe dynamic event - adding and removing
[ -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
grep myevent kprobe_events || exit 1
[ -d events/kprobes/myevent ] || exit 1
echo > kprobe_events
|