![]() |
|
|||
0001 #!/bin/sh 0002 # description: Snapshot and tracing setting 0003 # requires: snapshot 0004 # flags: instance 0005 0006 echo "Set tracing off" 0007 echo 0 > tracing_on 0008 0009 echo "Allocate and take a snapshot" 0010 echo 1 > snapshot 0011 0012 # Since trace buffer is empty, snapshot is also empty, but allocated 0013 grep -q "Snapshot is allocated" snapshot 0014 0015 echo "Ensure keep tracing off" 0016 test `cat tracing_on` -eq 0 0017 0018 echo "Set tracing on" 0019 echo 1 > tracing_on 0020 0021 echo "Take a snapshot again" 0022 echo 1 > snapshot 0023 0024 echo "Ensure keep tracing on" 0025 test `cat tracing_on` -eq 1 0026 0027 exit 0
[ Source navigation ] | [ Diff markup ] | [ Identifier search ] | [ general search ] |
This page was automatically generated by the 2.1.0 LXR engine. The LXR team |
![]() ![]() |