2 # Generic S3 (Suspend to Mem) test
4 # This is the configuration file for sleepgraph. It contains
5 # all the tool arguments so that they don't have to be given on the
6 # command line. It also includes advanced settings for functions
7 # and kprobes. It is run like this
9 # sudo ./sleepgraph.py -config config/example.cfg
14 # ---- General Options ----
17 # print verbose messages (default: false)
21 # e.g. standby, mem, freeze, disk (default: mem)
24 # Output Directory Format
25 # output folder for html, ftrace, and dmesg. Use {date} and {time} for current values
26 output-dir: suspend-{hostname}-{date}-{time}
29 # Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
33 # add the dmesg and ftrace log to the html output (default: false)
37 # insert a small visible gap between suspend and resume on the timeline (default: false)
40 # Skip HTML generation
41 # Only capture the logs, don't generate the html timeline (default: false)
44 # Sync filesystem before suspend
45 # run sync before the test, minimizes sys_sync call time (default: false)
48 # Runtime suspend enable/disable
49 # Enable/disable runtime suspend for all devices, restore all after test (default: no-action)
52 # Turn display on/off for test
53 # Switch the display on/off for the test using xset (default: no-action)
56 # Print results to text file
57 # Print the status of the test run in the given file (default: no-action)
60 # Gzip the log files to save space
61 # Gzip the generated log files, and read gzipped log files (default: false)
64 # ---- Advanced Options ----
66 # Command to execute in lieu of suspend (default: "")
67 # command: echo mem > /sys/power/state
69 # Display user processes
70 # graph user processes and cpu usage in the timeline (default: false)
73 # Display function calls
74 # graph source functions in the timeline (default: false)
78 # Run N tests D seconds apart, generates separate outputs with a summary (default: false)
81 # Back to Back Suspend/Resume
82 # Run two suspend/resumes back to back and display in the same timeline (default: false)
85 # Back to Back Suspend Delay
86 # Time delay between the two test runs in ms (default: 0 ms)
90 # Include an N ms delay before (1st) suspend (default: 0 ms)
94 # Include an N ms delay after (last) resume (default: 0 ms)
97 # Minimum Device Length
98 # graph only devices longer than min in the timeline (default: 0.001 ms)
101 # ---- Debug Options ----
104 # gather detailed ftrace callgraph data on all timeline events (default: false)
107 # Callgraph phase filter
108 # Only enable callgraphs for one phase, i.e. resume_noirq (default: all)
111 # Callgraph x2 test filter
112 # Only enable callgraphs test 0 or 1 when using -x2 (default: 1)
116 # pre-expand the callgraph data in the html output (default: disabled)
119 # Minimum Callgraph Length
120 # provide callgraph data for blocks longer than min (default: 0.001 ms)
123 # Timestamp Precision
124 # Number of significant digits in timestamps (0:S, [3:ms], 6:us)
128 # show only devices whose name/driver includes one of these strings
129 # devicefilter: _cpu_up,_cpu_down,i915,usb
131 # Add kprobe functions to the timeline
132 # Add functions to the timeline from a text file (default: no-action)