2 # SPDX-License-Identifier: GPL-2.0
3 # description: Generic dynamic event - selective clear (compatibility)
4 # requires: dynamic_events kprobe_events synthetic_events "place: [<module>:]<symbol>":README "place (kretprobe): [<module>:]<symbol>":README "s:[synthetic/]":README
12 echo "p:myevent1 $PLACE" >> dynamic_events
13 echo "s:latency1 u64 lat; pid_t pid;" >> dynamic_events
14 echo "r:myevent2 $PLACE" >> dynamic_events
15 echo "s:latency2 u64 lat; pid_t pid;" >> dynamic_events
17 grep -q myevent1 dynamic_events
18 grep -q myevent2 dynamic_events
19 grep -q latency1 dynamic_events
20 grep -q latency2 dynamic_events
24 echo > synthetic_events
26 grep -q myevent1 dynamic_events
27 grep -q myevent2 dynamic_events
28 ! grep -q latency1 dynamic_events
29 ! grep -q latency2 dynamic_events
36 ! grep -q myevent1 dynamic_events
37 ! grep -q myevent2 dynamic_events
38 grep -q latency1 dynamic_events
39 grep -q latency2 dynamic_events