2 # SPDX-License-Identifier: GPL-2.0
3 # description: Generic dynamic event - add/remove kprobe events
4 # requires: dynamic_events "place: [<module>:]<symbol>":README "place (kretprobe): [<module>:]<symbol>":README
11 echo "p:myevent1 $PLACE" >> dynamic_events
12 echo "r:myevent2 $PLACE" >> dynamic_events
14 grep -q myevent1 dynamic_events
15 grep -q myevent2 dynamic_events
16 test -d events
/kprobes
/myevent1
17 test -d events
/kprobes
/myevent2
19 echo "-:myevent2" >> dynamic_events
21 grep -q myevent1 dynamic_events
22 ! grep -q myevent2 dynamic_events