2 # description: event trigger - test synthetic event create remove
15 if [ ! -f set_event ]; then
16 echo "event tracing is not supported"
20 if [ ! -f synthetic_events ]; then
21 echo "synthetic event is not supported"
25 clear_synthetic_events
29 echo "Test create synthetic event"
31 echo 'wakeup_latency u64 lat pid_t pid char comm[16]' > synthetic_events
32 if [ ! -d events/synthetic/wakeup_latency ]; then
33 fail "Failed to create wakeup_latency synthetic event"
38 echo "Test remove synthetic event"
39 echo '!wakeup_latency u64 lat pid_t pid char comm[16]' >> synthetic_events
40 if [ -d events/synthetic/wakeup_latency ]; then
41 fail "Failed to delete wakeup_latency synthetic event"
46 echo "Test create synthetic event with an error"
47 echo 'wakeup_latency u64 lat pid_t pid char' > synthetic_events > /dev/null
48 if [ -d events/synthetic/wakeup_latency ]; then
49 fail "Created wakeup_latency synthetic event with an invalid format"