162306a36Sopenharmony_ci#
262306a36Sopenharmony_ci# Generic S3 (Suspend to Mem) test
362306a36Sopenharmony_ci#
462306a36Sopenharmony_ci# This is the configuration file for sleepgraph. It contains
562306a36Sopenharmony_ci# all the tool arguments so that they don't have to be given on the
662306a36Sopenharmony_ci# command line. It also includes advanced settings for functions
762306a36Sopenharmony_ci# and kprobes. It is run like this
862306a36Sopenharmony_ci#
962306a36Sopenharmony_ci#    sudo ./sleepgraph.py -config config/example.cfg
1062306a36Sopenharmony_ci#
1162306a36Sopenharmony_ci
1262306a36Sopenharmony_ci[Settings]
1362306a36Sopenharmony_ci
1462306a36Sopenharmony_ci# ---- General Options ----
1562306a36Sopenharmony_ci
1662306a36Sopenharmony_ci# Verbosity
1762306a36Sopenharmony_ci# print verbose messages (default: false)
1862306a36Sopenharmony_civerbose: false
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci# Suspend Mode
2162306a36Sopenharmony_ci# e.g. standby, mem, freeze, disk (default: mem)
2262306a36Sopenharmony_cimode: mem
2362306a36Sopenharmony_ci
2462306a36Sopenharmony_ci# Output Directory Format
2562306a36Sopenharmony_ci# output folder for html, ftrace, and dmesg. Use {date} and {time} for current values
2662306a36Sopenharmony_cioutput-dir: suspend-{hostname}-{date}-{time}
2762306a36Sopenharmony_ci
2862306a36Sopenharmony_ci# Automatic Wakeup
2962306a36Sopenharmony_ci# Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
3062306a36Sopenharmony_cirtcwake: 15
3162306a36Sopenharmony_ci
3262306a36Sopenharmony_ci# Add Logs
3362306a36Sopenharmony_ci# add the dmesg and ftrace log to the html output (default: false)
3462306a36Sopenharmony_ciaddlogs: true
3562306a36Sopenharmony_ci
3662306a36Sopenharmony_ci# Suspend/Resume Gap
3762306a36Sopenharmony_ci# insert a small visible gap between suspend and resume on the timeline (default: false)
3862306a36Sopenharmony_cisrgap: false
3962306a36Sopenharmony_ci
4062306a36Sopenharmony_ci# Skip HTML generation
4162306a36Sopenharmony_ci# Only capture the logs, don't generate the html timeline (default: false)
4262306a36Sopenharmony_ciskiphtml: false
4362306a36Sopenharmony_ci
4462306a36Sopenharmony_ci# Sync filesystem before suspend
4562306a36Sopenharmony_ci# run sync before the test, minimizes sys_sync call time (default: false)
4662306a36Sopenharmony_cisync: true
4762306a36Sopenharmony_ci
4862306a36Sopenharmony_ci# Runtime suspend enable/disable
4962306a36Sopenharmony_ci# Enable/disable runtime suspend for all devices, restore all after test (default: no-action)
5062306a36Sopenharmony_ci# rs: disable
5162306a36Sopenharmony_ci
5262306a36Sopenharmony_ci# Turn display on/off for test
5362306a36Sopenharmony_ci# Switch the display on/off for the test using xset (default: no-action)
5462306a36Sopenharmony_ci# display: on
5562306a36Sopenharmony_ci
5662306a36Sopenharmony_ci# Print results to text file
5762306a36Sopenharmony_ci# Print the status of the test run in the given file (default: no-action)
5862306a36Sopenharmony_ciresult: result.txt
5962306a36Sopenharmony_ci
6062306a36Sopenharmony_ci# Gzip the log files to save space
6162306a36Sopenharmony_ci# Gzip the generated log files, and read gzipped log files (default: false)
6262306a36Sopenharmony_cigzip: true
6362306a36Sopenharmony_ci
6462306a36Sopenharmony_ci# ---- Advanced Options ----
6562306a36Sopenharmony_ci
6662306a36Sopenharmony_ci# Command to execute in lieu of suspend (default: "")
6762306a36Sopenharmony_ci# command: echo mem > /sys/power/state
6862306a36Sopenharmony_ci
6962306a36Sopenharmony_ci# Display user processes
7062306a36Sopenharmony_ci# graph user processes and cpu usage in the timeline (default: false)
7162306a36Sopenharmony_ciproc: false
7262306a36Sopenharmony_ci
7362306a36Sopenharmony_ci# Display function calls
7462306a36Sopenharmony_ci# graph source functions in the timeline (default: false)
7562306a36Sopenharmony_cidev: false
7662306a36Sopenharmony_ci
7762306a36Sopenharmony_ci# Multiple test runs
7862306a36Sopenharmony_ci# Run N tests D seconds apart, generates separate outputs with a summary (default: false)
7962306a36Sopenharmony_ci# multi: 3 5
8062306a36Sopenharmony_ci
8162306a36Sopenharmony_ci# Back to Back Suspend/Resume
8262306a36Sopenharmony_ci# Run two suspend/resumes back to back and display in the same timeline (default: false)
8362306a36Sopenharmony_cix2: false
8462306a36Sopenharmony_ci
8562306a36Sopenharmony_ci# Back to Back Suspend Delay
8662306a36Sopenharmony_ci# Time delay between the two test runs in ms (default: 0 ms)
8762306a36Sopenharmony_cix2delay: 0
8862306a36Sopenharmony_ci
8962306a36Sopenharmony_ci# Pre Suspend Delay
9062306a36Sopenharmony_ci# Include an N ms delay before (1st) suspend (default: 0 ms)
9162306a36Sopenharmony_cipredelay: 0
9262306a36Sopenharmony_ci
9362306a36Sopenharmony_ci# Post Resume Delay
9462306a36Sopenharmony_ci# Include an N ms delay after (last) resume (default: 0 ms)
9562306a36Sopenharmony_cipostdelay: 0
9662306a36Sopenharmony_ci
9762306a36Sopenharmony_ci# Minimum Device Length
9862306a36Sopenharmony_ci# graph only devices longer than min in the timeline (default: 0.001 ms)
9962306a36Sopenharmony_cimindev: 0.001
10062306a36Sopenharmony_ci
10162306a36Sopenharmony_ci# Call Loop Max Gap (dev mode only)
10262306a36Sopenharmony_ci# merge loops of the same call if each is less than maxgap apart (def: 100us)
10362306a36Sopenharmony_cicallloop-maxgap: 0.0001
10462306a36Sopenharmony_ci
10562306a36Sopenharmony_ci# Call Loop Max Length (dev mode only)
10662306a36Sopenharmony_ci# merge loops of the same call if each is less than maxlen in length (def: 5ms)
10762306a36Sopenharmony_cicallloop-maxlen: 0.005
10862306a36Sopenharmony_ci
10962306a36Sopenharmony_ci# Override default timeline entries:
11062306a36Sopenharmony_ci# Do not use the internal default functions for timeline entries (def: false)
11162306a36Sopenharmony_ci# Set this to true if you intend to only use the ones defined in the config
11262306a36Sopenharmony_cioverride-timeline-functions: true
11362306a36Sopenharmony_ci
11462306a36Sopenharmony_ci# Override default dev timeline entries:
11562306a36Sopenharmony_ci# Do not use the internal default functions for dev timeline entries (def: false)
11662306a36Sopenharmony_ci# Set this to true if you intend to only use the ones defined in the config
11762306a36Sopenharmony_cioverride-dev-timeline-functions: true
11862306a36Sopenharmony_ci
11962306a36Sopenharmony_ci# ---- Debug Options ----
12062306a36Sopenharmony_ci
12162306a36Sopenharmony_ci# Callgraph
12262306a36Sopenharmony_ci# gather detailed ftrace callgraph data on all timeline events (default: false)
12362306a36Sopenharmony_cicallgraph: false
12462306a36Sopenharmony_ci
12562306a36Sopenharmony_ci# Max graph depth
12662306a36Sopenharmony_ci# limit the callgraph trace to this depth (default: 0 = all)
12762306a36Sopenharmony_cimaxdepth: 2
12862306a36Sopenharmony_ci
12962306a36Sopenharmony_ci# Callgraph phase filter
13062306a36Sopenharmony_ci# Only enable callgraphs for one phase, i.e. resume_noirq (default: all)
13162306a36Sopenharmony_cicgphase: suspend
13262306a36Sopenharmony_ci
13362306a36Sopenharmony_ci# Callgraph x2 test filter
13462306a36Sopenharmony_ci# Only enable callgraphs test 0 or 1 when using -x2 (default: 1)
13562306a36Sopenharmony_cicgtest: 0
13662306a36Sopenharmony_ci
13762306a36Sopenharmony_ci# Expand Callgraph
13862306a36Sopenharmony_ci# pre-expand the callgraph data in the html output (default: disabled)
13962306a36Sopenharmony_ciexpandcg: false
14062306a36Sopenharmony_ci
14162306a36Sopenharmony_ci# Minimum Callgraph Length
14262306a36Sopenharmony_ci# provide callgraph data for blocks longer than min (default: 0.001 ms)
14362306a36Sopenharmony_cimincg: 1
14462306a36Sopenharmony_ci
14562306a36Sopenharmony_ci# Timestamp Precision
14662306a36Sopenharmony_ci# Number of significant digits in timestamps (0:S, [3:ms], 6:us)
14762306a36Sopenharmony_citimeprec: 6
14862306a36Sopenharmony_ci
14962306a36Sopenharmony_ci# Device Filter
15062306a36Sopenharmony_ci# show only devices whose name/driver includes one of these strings
15162306a36Sopenharmony_ci# devicefilter: _cpu_up,_cpu_down,i915,usb
15262306a36Sopenharmony_ci
15362306a36Sopenharmony_ci# Add kprobe functions to the timeline
15462306a36Sopenharmony_ci# Add functions to the timeline from a text file (default: no-action)
15562306a36Sopenharmony_ci# fadd: file.txt
15662306a36Sopenharmony_ci
15762306a36Sopenharmony_ci# Ftrace buffer size
15862306a36Sopenharmony_ci# Set trace buffer size to N kilo-bytes (default: all of free memory up to 3GB)
15962306a36Sopenharmony_ci# bufsize: 1000
160