2 # description: Snapshot and tracing setting
5 [ ! -f snapshot
] && exit_unsupported
10 echo "Allocate and take a 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
22 echo "Take a snapshot again"
25 echo "Ensure keep tracing on"
26 test `cat tracing_on` -eq 1