Back to home page

OSCL-LXR

 
 

    


0001 #
0002 # Generic S3 (Suspend to Mem) test
0003 #
0004 # This is the configuration file for sleepgraph. It contains
0005 # all the tool arguments so that they don't have to be given on the
0006 # command line. It also includes advanced settings for functions
0007 # and kprobes. It is run like this
0008 #
0009 #    sudo ./sleepgraph.py -config config/example.cfg
0010 #
0011 
0012 [Settings]
0013 
0014 # ---- General Options ----
0015 
0016 # Verbosity
0017 # print verbose messages (default: false)
0018 verbose: false
0019 
0020 # Suspend Mode
0021 # e.g. standby, mem, freeze, disk (default: mem)
0022 mode: mem
0023 
0024 # Output Directory Format
0025 # output folder for html, ftrace, and dmesg. Use {date} and {time} for current values
0026 output-dir: suspend-{hostname}-{date}-{time}
0027 
0028 # Automatic Wakeup
0029 # Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
0030 rtcwake: 15
0031 
0032 # Add Logs
0033 # add the dmesg and ftrace log to the html output (default: false)
0034 addlogs: true
0035 
0036 # Suspend/Resume Gap
0037 # insert a small visible gap between suspend and resume on the timeline (default: false)
0038 srgap: false
0039 
0040 # Skip HTML generation
0041 # Only capture the logs, don't generate the html timeline (default: false)
0042 skiphtml: false
0043 
0044 # Sync filesystem before suspend
0045 # run sync before the test, minimizes sys_sync call time (default: false)
0046 sync: true
0047 
0048 # Runtime suspend enable/disable
0049 # Enable/disable runtime suspend for all devices, restore all after test (default: no-action)
0050 # rs: disable
0051 
0052 # Turn display on/off for test
0053 # Switch the display on/off for the test using xset (default: no-action)
0054 # display: on
0055 
0056 # Print results to text file
0057 # Print the status of the test run in the given file (default: no-action)
0058 result: result.txt
0059 
0060 # Gzip the log files to save space
0061 # Gzip the generated log files, and read gzipped log files (default: false)
0062 gzip: true
0063 
0064 # ---- Advanced Options ----
0065 
0066 # Command to execute in lieu of suspend (default: "")
0067 # command: echo mem > /sys/power/state
0068 
0069 # Display user processes
0070 # graph user processes and cpu usage in the timeline (default: false)
0071 proc: false
0072 
0073 # Display function calls
0074 # graph source functions in the timeline (default: false)
0075 dev: false
0076 
0077 # Multiple test runs
0078 # Run N tests D seconds apart, generates separate outputs with a summary (default: false)
0079 # multi: 3 5
0080 
0081 # Back to Back Suspend/Resume
0082 # Run two suspend/resumes back to back and display in the same timeline (default: false)
0083 x2: false
0084 
0085 # Back to Back Suspend Delay
0086 # Time delay between the two test runs in ms (default: 0 ms)
0087 x2delay: 0
0088 
0089 # Pre Suspend Delay
0090 # Include an N ms delay before (1st) suspend (default: 0 ms)
0091 predelay: 0
0092 
0093 # Post Resume Delay
0094 # Include an N ms delay after (last) resume (default: 0 ms)
0095 postdelay: 0
0096 
0097 # Minimum Device Length
0098 # graph only devices longer than min in the timeline (default: 0.001 ms)
0099 mindev: 0.001
0100 
0101 # Call Loop Max Gap (dev mode only)
0102 # merge loops of the same call if each is less than maxgap apart (def: 100us)
0103 callloop-maxgap: 0.0001
0104 
0105 # Call Loop Max Length (dev mode only)
0106 # merge loops of the same call if each is less than maxlen in length (def: 5ms)
0107 callloop-maxlen: 0.005
0108 
0109 # Override default timeline entries:
0110 # Do not use the internal default functions for timeline entries (def: false)
0111 # Set this to true if you intend to only use the ones defined in the config
0112 override-timeline-functions: true
0113 
0114 # Override default dev timeline entries:
0115 # Do not use the internal default functions for dev timeline entries (def: false)
0116 # Set this to true if you intend to only use the ones defined in the config
0117 override-dev-timeline-functions: true
0118 
0119 # ---- Debug Options ----
0120 
0121 # Callgraph
0122 # gather detailed ftrace callgraph data on all timeline events (default: false)
0123 callgraph: false
0124 
0125 # Max graph depth
0126 # limit the callgraph trace to this depth (default: 0 = all)
0127 maxdepth: 2
0128 
0129 # Callgraph phase filter
0130 # Only enable callgraphs for one phase, i.e. resume_noirq (default: all)
0131 cgphase: suspend
0132 
0133 # Callgraph x2 test filter
0134 # Only enable callgraphs test 0 or 1 when using -x2 (default: 1)
0135 cgtest: 0
0136 
0137 # Expand Callgraph
0138 # pre-expand the callgraph data in the html output (default: disabled)
0139 expandcg: false
0140 
0141 # Minimum Callgraph Length
0142 # provide callgraph data for blocks longer than min (default: 0.001 ms)
0143 mincg: 1
0144 
0145 # Timestamp Precision
0146 # Number of significant digits in timestamps (0:S, [3:ms], 6:us)
0147 timeprec: 6
0148 
0149 # Device Filter
0150 # show only devices whose name/driver includes one of these strings
0151 # devicefilter: _cpu_up,_cpu_down,i915,usb
0152 
0153 # Add kprobe functions to the timeline
0154 # Add functions to the timeline from a text file (default: no-action)
0155 # fadd: file.txt
0156 
0157 # Ftrace buffer size
0158 # Set trace buffer size to N kilo-bytes (default: all of free memory up to 3GB)
0159 # bufsize: 1000