staging: rtl8192u: remove redundant assignment to pointer crypt
[linux/fpc-iii.git] / tools / testing / selftests / ftrace / test.d / 00basic / snapshot.tc
blob3b1f45e13a2e7f21a61bc34ac964582222e88cb8
1 #!/bin/sh
2 # description: Snapshot and tracing setting
3 # flags: instance
5 [ ! -f snapshot ] && exit_unsupported
7 echo "Set tracing off"
8 echo 0 > tracing_on
10 echo "Allocate and take a snapshot"
11 echo 1 > snapshot
13 # Since trace buffer is empty, snapshot is also empty, but allocated
14 grep -q "Snapshot is allocated" snapshot
16 echo "Ensure keep tracing off"
17 test `cat tracing_on` -eq 0
19 echo "Set tracing on"
20 echo 1 > tracing_on
22 echo "Take a snapshot again"
23 echo 1 > snapshot
25 echo "Ensure keep tracing on"
26 test `cat tracing_on` -eq 1
28 exit 0