1 #!/bin/sh 2 # SPDX-License-Identifier: GPL-2.0 3 # description: Generic dynamic event - add/remove synthetic events 4 # requires: dynamic_events "s:[synthetic/]":README 5 6 echo 0 > events/enable 7 echo > dynamic_events 8 9 echo "s:latency1 u64 lat; pid_t pid;" >> dynamic_events 10 echo "s:latency2 u64 lat; pid_t pid;" >> dynamic_events 11 12 grep -q latency1 dynamic_events 13 grep -q latency2 dynamic_events 14 test -d events/synthetic/latency1 15 test -d events/synthetic/latency2 16 17 echo "-:synthetic/latency2" >> dynamic_events 18 19 grep -q latency1 dynamic_events 20 ! grep -q latency2 dynamic_events 21 22 echo > dynamic_events 23 24 clear_trace
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.