2 # SPDX-License-Identifier: GPL-2.0
3 # description: Generic dynamic event - add/remove synthetic events
4 # requires: dynamic_events "s:[synthetic/]":README
9 echo "s:latency1 u64 lat; pid_t pid;" >> dynamic_events
10 echo "s:latency2 u64 lat; pid_t pid;" >> dynamic_events
12 grep -q latency1 dynamic_events
13 grep -q latency2 dynamic_events
14 test -d events
/synthetic
/latency1
15 test -d events
/synthetic
/latency2
17 echo "-:synthetic/latency2" >> dynamic_events
19 grep -q latency1 dynamic_events
20 ! grep -q latency2 dynamic_events