WIP FPC-III support
[linux/fpc-iii.git] / tools / testing / selftests / ftrace / test.d / dynevent / add_remove_synth.tc
blob2b94611e1a28de7ca625caef65c8a6c37172edb9
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
6 echo 0 > events/enable
7 echo > dynamic_events
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
22 echo > dynamic_events
24 clear_trace