staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / tools / testing / selftests / ftrace / test.d / trigger / inter-event / trigger-synthetic-event-createremove.tc
blobdf44b14724a4e3f24a521ca11a3872903ccb7d09
1 #!/bin/sh
2 # SPDX-License-Identifier: GPL-2.0
3 # description: event trigger - test synthetic event create remove
5 fail() { #msg
6 echo $1
7 exit_fail
10 if [ ! -f set_event ]; then
11 echo "event tracing is not supported"
12 exit_unsupported
15 if [ ! -f synthetic_events ]; then
16 echo "synthetic event is not supported"
17 exit_unsupported
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"
27 reset_trigger
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"
35 reset_trigger
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"
43 exit 0