18c2ecf20Sopenharmony_ci#
28c2ecf20Sopenharmony_ci# Generic S3 (Suspend to Mem) test
38c2ecf20Sopenharmony_ci#
48c2ecf20Sopenharmony_ci# This is the configuration file for sleepgraph. It contains
58c2ecf20Sopenharmony_ci# all the tool arguments so that they don't have to be given on the
68c2ecf20Sopenharmony_ci# command line. It also includes advanced settings for functions
78c2ecf20Sopenharmony_ci# and kprobes. It is run like this
88c2ecf20Sopenharmony_ci#
98c2ecf20Sopenharmony_ci#    sudo ./sleepgraph.py -config config/example.cfg
108c2ecf20Sopenharmony_ci#
118c2ecf20Sopenharmony_ci
128c2ecf20Sopenharmony_ci[Settings]
138c2ecf20Sopenharmony_ci
148c2ecf20Sopenharmony_ci# ---- General Options ----
158c2ecf20Sopenharmony_ci
168c2ecf20Sopenharmony_ci# Verbosity
178c2ecf20Sopenharmony_ci# print verbose messages (default: false)
188c2ecf20Sopenharmony_civerbose: false
198c2ecf20Sopenharmony_ci
208c2ecf20Sopenharmony_ci# Suspend Mode
218c2ecf20Sopenharmony_ci# e.g. standby, mem, freeze, disk (default: mem)
228c2ecf20Sopenharmony_cimode: mem
238c2ecf20Sopenharmony_ci
248c2ecf20Sopenharmony_ci# Output Directory Format
258c2ecf20Sopenharmony_ci# output folder for html, ftrace, and dmesg. Use {date} and {time} for current values
268c2ecf20Sopenharmony_cioutput-dir: suspend-{hostname}-{date}-{time}
278c2ecf20Sopenharmony_ci
288c2ecf20Sopenharmony_ci# Automatic Wakeup
298c2ecf20Sopenharmony_ci# Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
308c2ecf20Sopenharmony_cirtcwake: 15
318c2ecf20Sopenharmony_ci
328c2ecf20Sopenharmony_ci# Add Logs
338c2ecf20Sopenharmony_ci# add the dmesg and ftrace log to the html output (default: false)
348c2ecf20Sopenharmony_ciaddlogs: true
358c2ecf20Sopenharmony_ci
368c2ecf20Sopenharmony_ci# Suspend/Resume Gap
378c2ecf20Sopenharmony_ci# insert a small visible gap between suspend and resume on the timeline (default: false)
388c2ecf20Sopenharmony_cisrgap: false
398c2ecf20Sopenharmony_ci
408c2ecf20Sopenharmony_ci# Skip HTML generation
418c2ecf20Sopenharmony_ci# Only capture the logs, don't generate the html timeline (default: false)
428c2ecf20Sopenharmony_ciskiphtml: false
438c2ecf20Sopenharmony_ci
448c2ecf20Sopenharmony_ci# Sync filesystem before suspend
458c2ecf20Sopenharmony_ci# run sync before the test, minimizes sys_sync call time (default: false)
468c2ecf20Sopenharmony_cisync: true
478c2ecf20Sopenharmony_ci
488c2ecf20Sopenharmony_ci# Runtime suspend enable/disable
498c2ecf20Sopenharmony_ci# Enable/disable runtime suspend for all devices, restore all after test (default: no-action)
508c2ecf20Sopenharmony_ci# rs: disable
518c2ecf20Sopenharmony_ci
528c2ecf20Sopenharmony_ci# Turn display on/off for test
538c2ecf20Sopenharmony_ci# Switch the display on/off for the test using xset (default: no-action)
548c2ecf20Sopenharmony_ci# display: on
558c2ecf20Sopenharmony_ci
568c2ecf20Sopenharmony_ci# Print results to text file
578c2ecf20Sopenharmony_ci# Print the status of the test run in the given file (default: no-action)
588c2ecf20Sopenharmony_ciresult: result.txt
598c2ecf20Sopenharmony_ci
608c2ecf20Sopenharmony_ci# Gzip the log files to save space
618c2ecf20Sopenharmony_ci# Gzip the generated log files, and read gzipped log files (default: false)
628c2ecf20Sopenharmony_cigzip: true
638c2ecf20Sopenharmony_ci
648c2ecf20Sopenharmony_ci# ---- Advanced Options ----
658c2ecf20Sopenharmony_ci
668c2ecf20Sopenharmony_ci# Command to execute in lieu of suspend (default: "")
678c2ecf20Sopenharmony_ci# command: echo mem > /sys/power/state
688c2ecf20Sopenharmony_ci
698c2ecf20Sopenharmony_ci# Display user processes
708c2ecf20Sopenharmony_ci# graph user processes and cpu usage in the timeline (default: false)
718c2ecf20Sopenharmony_ciproc: false
728c2ecf20Sopenharmony_ci
738c2ecf20Sopenharmony_ci# Display function calls
748c2ecf20Sopenharmony_ci# graph source functions in the timeline (default: false)
758c2ecf20Sopenharmony_cidev: false
768c2ecf20Sopenharmony_ci
778c2ecf20Sopenharmony_ci# Multiple test runs
788c2ecf20Sopenharmony_ci# Run N tests D seconds apart, generates separate outputs with a summary (default: false)
798c2ecf20Sopenharmony_ci# multi: 3 5
808c2ecf20Sopenharmony_ci
818c2ecf20Sopenharmony_ci# Back to Back Suspend/Resume
828c2ecf20Sopenharmony_ci# Run two suspend/resumes back to back and display in the same timeline (default: false)
838c2ecf20Sopenharmony_cix2: false
848c2ecf20Sopenharmony_ci
858c2ecf20Sopenharmony_ci# Back to Back Suspend Delay
868c2ecf20Sopenharmony_ci# Time delay between the two test runs in ms (default: 0 ms)
878c2ecf20Sopenharmony_cix2delay: 0
888c2ecf20Sopenharmony_ci
898c2ecf20Sopenharmony_ci# Pre Suspend Delay
908c2ecf20Sopenharmony_ci# Include an N ms delay before (1st) suspend (default: 0 ms)
918c2ecf20Sopenharmony_cipredelay: 0
928c2ecf20Sopenharmony_ci
938c2ecf20Sopenharmony_ci# Post Resume Delay
948c2ecf20Sopenharmony_ci# Include an N ms delay after (last) resume (default: 0 ms)
958c2ecf20Sopenharmony_cipostdelay: 0
968c2ecf20Sopenharmony_ci
978c2ecf20Sopenharmony_ci# Minimum Device Length
988c2ecf20Sopenharmony_ci# graph only devices longer than min in the timeline (default: 0.001 ms)
998c2ecf20Sopenharmony_cimindev: 0.001
1008c2ecf20Sopenharmony_ci
1018c2ecf20Sopenharmony_ci# Call Loop Max Gap (dev mode only)
1028c2ecf20Sopenharmony_ci# merge loops of the same call if each is less than maxgap apart (def: 100us)
1038c2ecf20Sopenharmony_cicallloop-maxgap: 0.0001
1048c2ecf20Sopenharmony_ci
1058c2ecf20Sopenharmony_ci# Call Loop Max Length (dev mode only)
1068c2ecf20Sopenharmony_ci# merge loops of the same call if each is less than maxlen in length (def: 5ms)
1078c2ecf20Sopenharmony_cicallloop-maxlen: 0.005
1088c2ecf20Sopenharmony_ci
1098c2ecf20Sopenharmony_ci# Override default timeline entries:
1108c2ecf20Sopenharmony_ci# Do not use the internal default functions for timeline entries (def: false)
1118c2ecf20Sopenharmony_ci# Set this to true if you intend to only use the ones defined in the config
1128c2ecf20Sopenharmony_cioverride-timeline-functions: true
1138c2ecf20Sopenharmony_ci
1148c2ecf20Sopenharmony_ci# Override default dev timeline entries:
1158c2ecf20Sopenharmony_ci# Do not use the internal default functions for dev timeline entries (def: false)
1168c2ecf20Sopenharmony_ci# Set this to true if you intend to only use the ones defined in the config
1178c2ecf20Sopenharmony_cioverride-dev-timeline-functions: true
1188c2ecf20Sopenharmony_ci
1198c2ecf20Sopenharmony_ci# ---- Debug Options ----
1208c2ecf20Sopenharmony_ci
1218c2ecf20Sopenharmony_ci# Callgraph
1228c2ecf20Sopenharmony_ci# gather detailed ftrace callgraph data on all timeline events (default: false)
1238c2ecf20Sopenharmony_cicallgraph: false
1248c2ecf20Sopenharmony_ci
1258c2ecf20Sopenharmony_ci# Max graph depth
1268c2ecf20Sopenharmony_ci# limit the callgraph trace to this depth (default: 0 = all)
1278c2ecf20Sopenharmony_cimaxdepth: 2
1288c2ecf20Sopenharmony_ci
1298c2ecf20Sopenharmony_ci# Callgraph phase filter
1308c2ecf20Sopenharmony_ci# Only enable callgraphs for one phase, i.e. resume_noirq (default: all)
1318c2ecf20Sopenharmony_cicgphase: suspend
1328c2ecf20Sopenharmony_ci
1338c2ecf20Sopenharmony_ci# Callgraph x2 test filter
1348c2ecf20Sopenharmony_ci# Only enable callgraphs test 0 or 1 when using -x2 (default: 1)
1358c2ecf20Sopenharmony_cicgtest: 0
1368c2ecf20Sopenharmony_ci
1378c2ecf20Sopenharmony_ci# Expand Callgraph
1388c2ecf20Sopenharmony_ci# pre-expand the callgraph data in the html output (default: disabled)
1398c2ecf20Sopenharmony_ciexpandcg: false
1408c2ecf20Sopenharmony_ci
1418c2ecf20Sopenharmony_ci# Minimum Callgraph Length
1428c2ecf20Sopenharmony_ci# provide callgraph data for blocks longer than min (default: 0.001 ms)
1438c2ecf20Sopenharmony_cimincg: 1
1448c2ecf20Sopenharmony_ci
1458c2ecf20Sopenharmony_ci# Timestamp Precision
1468c2ecf20Sopenharmony_ci# Number of significant digits in timestamps (0:S, [3:ms], 6:us)
1478c2ecf20Sopenharmony_citimeprec: 6
1488c2ecf20Sopenharmony_ci
1498c2ecf20Sopenharmony_ci# Device Filter
1508c2ecf20Sopenharmony_ci# show only devices whose name/driver includes one of these strings
1518c2ecf20Sopenharmony_ci# devicefilter: _cpu_up,_cpu_down,i915,usb
1528c2ecf20Sopenharmony_ci
1538c2ecf20Sopenharmony_ci# Add kprobe functions to the timeline
1548c2ecf20Sopenharmony_ci# Add functions to the timeline from a text file (default: no-action)
1558c2ecf20Sopenharmony_ci# fadd: file.txt
1568c2ecf20Sopenharmony_ci
1578c2ecf20Sopenharmony_ci# Ftrace buffer size
1588c2ecf20Sopenharmony_ci# Set trace buffer size to N kilo-bytes (default: all of free memory up to 3GB)
1598c2ecf20Sopenharmony_ci# bufsize: 1000
160