2 # description: event trigger - test synthetic event create remove
9 if [ ! -f set_event ]; then
10 echo "event tracing is not supported"
14 if [ ! -f synthetic_events ]; then
15 echo "synthetic event is not supported"
19 echo "Test create synthetic event"
21 echo 'wakeup_latency u64 lat pid_t pid char comm[16]' > synthetic_events
22 if [ ! -d events/synthetic/wakeup_latency ]; then
23 fail "Failed to create wakeup_latency synthetic event"
28 echo "Test remove synthetic event"
29 echo '!wakeup_latency u64 lat pid_t pid char comm[16]' >> synthetic_events
30 if [ -d events/synthetic/wakeup_latency ]; then
31 fail "Failed to delete wakeup_latency synthetic event"
36 echo "Test create synthetic event with an error"
37 echo 'wakeup_latency u64 lat pid_t pid char' > synthetic_events > /dev/null
38 if [ -d events/synthetic/wakeup_latency ]; then
39 fail "Created wakeup_latency synthetic event with an invalid format"