2 # SPDX-License-Identifier: GPL-2.0
3 # description: Generic dynamic event - generic clear event
4 # requires: dynamic_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
25 echo "!p:myevent1 $PLACE" >> dynamic_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
31 echo "!s:latency1 u64 lat; pid_t pid;" >> dynamic_events
32 grep -q myevent2 dynamic_events
33 ! grep -q latency1 dynamic_events
34 grep -q latency2 dynamic_events
36 echo "!r:myevent2 $PLACE" >> dynamic_events
37 ! grep -q myevent2 dynamic_events
38 grep -q latency2 dynamic_events
40 echo "!s:latency2 u64 lat; pid_t pid;" >> dynamic_events
41 ! grep -q latency2 dynamic_events