2 # SPDX-License-Identifier: GPL-2.0
3 # description: event trigger - test synthetic event create remove
10 if [ ! -f set_event
]; then
11 echo "event tracing is not supported"
15 if [ ! -f synthetic_events
]; then
16 echo "synthetic event is not supported"
20 echo "Test create synthetic event"
22 echo 'wakeup_latency u64 lat pid_t pid char comm[16]' > synthetic_events
23 if [ ! -d events
/synthetic
/wakeup_latency
]; then
24 fail
"Failed to create wakeup_latency synthetic event"
29 echo "Test remove synthetic event"
30 echo '!wakeup_latency u64 lat pid_t pid char comm[16]' >> synthetic_events
31 if [ -d events
/synthetic
/wakeup_latency
]; then
32 fail
"Failed to delete wakeup_latency synthetic event"
37 echo "Test create synthetic event with an error"
38 echo 'wakeup_latency u64 lat pid_t pid char' > synthetic_events
> /dev
/null
39 if [ -d events
/synthetic
/wakeup_latency
]; then
40 fail
"Created wakeup_latency synthetic event with an invalid format"