1a6fbdbb2STodd E Brandt# 2a6fbdbb2STodd E Brandt# Generic S3 (Suspend to Mem) test 3a6fbdbb2STodd E Brandt# 4a6fbdbb2STodd E Brandt# This is the configuration file for sleepgraph. It contains 5a6fbdbb2STodd E Brandt# all the tool arguments so that they don't have to be given on the 6a6fbdbb2STodd E Brandt# command line. It also includes advanced settings for functions 7a6fbdbb2STodd E Brandt# and kprobes. It is run like this 8a6fbdbb2STodd E Brandt# 9a6fbdbb2STodd E Brandt# sudo ./sleepgraph.py -config config/example.cfg 10a6fbdbb2STodd E Brandt# 11a6fbdbb2STodd E Brandt 12a6fbdbb2STodd E Brandt[Settings] 13a6fbdbb2STodd E Brandt 14a6fbdbb2STodd E Brandt# ---- General Options ---- 15a6fbdbb2STodd E Brandt 16a6fbdbb2STodd E Brandt# Verbosity 17a6fbdbb2STodd E Brandt# print verbose messages (default: false) 18a6fbdbb2STodd E Brandtverbose: false 19a6fbdbb2STodd E Brandt 20a6fbdbb2STodd E Brandt# Suspend Mode 21a6fbdbb2STodd E Brandt# e.g. standby, mem, freeze, disk (default: mem) 22a6fbdbb2STodd E Brandtmode: mem 23a6fbdbb2STodd E Brandt 24a6fbdbb2STodd E Brandt# Output Directory Format 25a6fbdbb2STodd E Brandt# output folder for html, ftrace, and dmesg. Use {date} and {time} for current values 26a6fbdbb2STodd E Brandtoutput-dir: suspend-{hostname}-{date}-{time} 27a6fbdbb2STodd E Brandt 28a6fbdbb2STodd E Brandt# Automatic Wakeup 29a6fbdbb2STodd E Brandt# Use rtcwake to autoresume after X seconds, or off to disable (default: 15) 30a6fbdbb2STodd E Brandtrtcwake: 15 31a6fbdbb2STodd E Brandt 32a6fbdbb2STodd E Brandt# Add Logs 33a6fbdbb2STodd E Brandt# add the dmesg and ftrace log to the html output (default: false) 34a6fbdbb2STodd E Brandtaddlogs: true 35a6fbdbb2STodd E Brandt 36a6fbdbb2STodd E Brandt# Suspend/Resume Gap 37a6fbdbb2STodd E Brandt# insert a small visible gap between suspend and resume on the timeline (default: false) 38a6fbdbb2STodd E Brandtsrgap: false 39a6fbdbb2STodd E Brandt 40a6fbdbb2STodd E Brandt# Skip HTML generation 41a6fbdbb2STodd E Brandt# Only capture the logs, don't generate the html timeline (default: false) 42a6fbdbb2STodd E Brandtskiphtml: false 43a6fbdbb2STodd E Brandt 44a6fbdbb2STodd E Brandt# Sync filesystem before suspend 45a6fbdbb2STodd E Brandt# run sync before the test, minimizes sys_sync call time (default: false) 46a6fbdbb2STodd E Brandtsync: true 47a6fbdbb2STodd E Brandt 48a6fbdbb2STodd E Brandt# Runtime suspend enable/disable 49a6fbdbb2STodd E Brandt# Enable/disable runtime suspend for all devices, restore all after test (default: no-action) 50a6fbdbb2STodd E Brandt# rs: disable 51a6fbdbb2STodd E Brandt 52a6fbdbb2STodd E Brandt# Turn display on/off for test 53a6fbdbb2STodd E Brandt# Switch the display on/off for the test using xset (default: no-action) 54a6fbdbb2STodd E Brandt# display: on 55a6fbdbb2STodd E Brandt 56a6fbdbb2STodd E Brandt# Print results to text file 57a6fbdbb2STodd E Brandt# Print the status of the test run in the given file (default: no-action) 58a6fbdbb2STodd E Brandtresult: result.txt 59a6fbdbb2STodd E Brandt 60a6fbdbb2STodd E Brandt# Gzip the log files to save space 61a6fbdbb2STodd E Brandt# Gzip the generated log files, and read gzipped log files (default: false) 62a6fbdbb2STodd E Brandtgzip: true 63a6fbdbb2STodd E Brandt 64a6fbdbb2STodd E Brandt# ---- Advanced Options ---- 65a6fbdbb2STodd E Brandt 66a6fbdbb2STodd E Brandt# Command to execute in lieu of suspend (default: "") 67a6fbdbb2STodd E Brandt# command: echo mem > /sys/power/state 68a6fbdbb2STodd E Brandt 69a6fbdbb2STodd E Brandt# Display user processes 70a6fbdbb2STodd E Brandt# graph user processes and cpu usage in the timeline (default: false) 71a6fbdbb2STodd E Brandtproc: false 72a6fbdbb2STodd E Brandt 73a6fbdbb2STodd E Brandt# Display function calls 74a6fbdbb2STodd E Brandt# graph source functions in the timeline (default: false) 75a6fbdbb2STodd E Brandtdev: false 76a6fbdbb2STodd E Brandt 77a6fbdbb2STodd E Brandt# Multiple test runs 78a6fbdbb2STodd E Brandt# Run N tests D seconds apart, generates separate outputs with a summary (default: false) 79a6fbdbb2STodd E Brandt# multi: 3 5 80a6fbdbb2STodd E Brandt 81a6fbdbb2STodd E Brandt# Back to Back Suspend/Resume 82a6fbdbb2STodd E Brandt# Run two suspend/resumes back to back and display in the same timeline (default: false) 83a6fbdbb2STodd E Brandtx2: false 84a6fbdbb2STodd E Brandt 85a6fbdbb2STodd E Brandt# Back to Back Suspend Delay 86a6fbdbb2STodd E Brandt# Time delay between the two test runs in ms (default: 0 ms) 87a6fbdbb2STodd E Brandtx2delay: 0 88a6fbdbb2STodd E Brandt 89a6fbdbb2STodd E Brandt# Pre Suspend Delay 90a6fbdbb2STodd E Brandt# Include an N ms delay before (1st) suspend (default: 0 ms) 91a6fbdbb2STodd E Brandtpredelay: 0 92a6fbdbb2STodd E Brandt 93a6fbdbb2STodd E Brandt# Post Resume Delay 94a6fbdbb2STodd E Brandt# Include an N ms delay after (last) resume (default: 0 ms) 95a6fbdbb2STodd E Brandtpostdelay: 0 96a6fbdbb2STodd E Brandt 97a6fbdbb2STodd E Brandt# Minimum Device Length 98a6fbdbb2STodd E Brandt# graph only devices longer than min in the timeline (default: 0.001 ms) 99a6fbdbb2STodd E Brandtmindev: 0.001 100a6fbdbb2STodd E Brandt 101*d5a5e4ecSTodd Brandt# Call Loop Max Gap (dev mode only) 102*d5a5e4ecSTodd Brandt# merge loops of the same call if each is less than maxgap apart (def: 100us) 103*d5a5e4ecSTodd Brandtcallloop-maxgap: 0.0001 104*d5a5e4ecSTodd Brandt 105*d5a5e4ecSTodd Brandt# Call Loop Max Length (dev mode only) 106*d5a5e4ecSTodd Brandt# merge loops of the same call if each is less than maxlen in length (def: 5ms) 107*d5a5e4ecSTodd Brandtcallloop-maxlen: 0.005 108*d5a5e4ecSTodd Brandt 109*d5a5e4ecSTodd Brandt# Override default timeline entries: 110*d5a5e4ecSTodd Brandt# Do not use the internal default functions for timeline entries (def: false) 111*d5a5e4ecSTodd Brandt# Set this to true if you intend to only use the ones defined in the config 112*d5a5e4ecSTodd Brandtoverride-timeline-functions: true 113*d5a5e4ecSTodd Brandt 114*d5a5e4ecSTodd Brandt# Override default dev timeline entries: 115*d5a5e4ecSTodd Brandt# Do not use the internal default functions for dev timeline entries (def: false) 116*d5a5e4ecSTodd Brandt# Set this to true if you intend to only use the ones defined in the config 117*d5a5e4ecSTodd Brandtoverride-dev-timeline-functions: true 118*d5a5e4ecSTodd Brandt 119a6fbdbb2STodd E Brandt# ---- Debug Options ---- 120a6fbdbb2STodd E Brandt 121a6fbdbb2STodd E Brandt# Callgraph 122a6fbdbb2STodd E Brandt# gather detailed ftrace callgraph data on all timeline events (default: false) 123a6fbdbb2STodd E Brandtcallgraph: false 124a6fbdbb2STodd E Brandt 125*d5a5e4ecSTodd Brandt# Max graph depth 126*d5a5e4ecSTodd Brandt# limit the callgraph trace to this depth (default: 0 = all) 127*d5a5e4ecSTodd Brandtmaxdepth: 2 128*d5a5e4ecSTodd Brandt 129a6fbdbb2STodd E Brandt# Callgraph phase filter 130a6fbdbb2STodd E Brandt# Only enable callgraphs for one phase, i.e. resume_noirq (default: all) 131a6fbdbb2STodd E Brandtcgphase: suspend 132a6fbdbb2STodd E Brandt 133a6fbdbb2STodd E Brandt# Callgraph x2 test filter 134a6fbdbb2STodd E Brandt# Only enable callgraphs test 0 or 1 when using -x2 (default: 1) 135a6fbdbb2STodd E Brandtcgtest: 0 136a6fbdbb2STodd E Brandt 137a6fbdbb2STodd E Brandt# Expand Callgraph 138a6fbdbb2STodd E Brandt# pre-expand the callgraph data in the html output (default: disabled) 139a6fbdbb2STodd E Brandtexpandcg: false 140a6fbdbb2STodd E Brandt 141a6fbdbb2STodd E Brandt# Minimum Callgraph Length 142a6fbdbb2STodd E Brandt# provide callgraph data for blocks longer than min (default: 0.001 ms) 143a6fbdbb2STodd E Brandtmincg: 1 144a6fbdbb2STodd E Brandt 145a6fbdbb2STodd E Brandt# Timestamp Precision 146a6fbdbb2STodd E Brandt# Number of significant digits in timestamps (0:S, [3:ms], 6:us) 147a6fbdbb2STodd E Brandttimeprec: 6 148a6fbdbb2STodd E Brandt 149a6fbdbb2STodd E Brandt# Device Filter 150a6fbdbb2STodd E Brandt# show only devices whose name/driver includes one of these strings 151a6fbdbb2STodd E Brandt# devicefilter: _cpu_up,_cpu_down,i915,usb 152a6fbdbb2STodd E Brandt 153a6fbdbb2STodd E Brandt# Add kprobe functions to the timeline 154a6fbdbb2STodd E Brandt# Add functions to the timeline from a text file (default: no-action) 155a6fbdbb2STodd E Brandt# fadd: file.txt 156*d5a5e4ecSTodd Brandt 157*d5a5e4ecSTodd Brandt# Ftrace buffer size 158*d5a5e4ecSTodd Brandt# Set trace buffer size to N kilo-bytes (default: all of free memory up to 3GB) 159*d5a5e4ecSTodd Brandt# bufsize: 1000 160