160 lines · plain
1#2# Generic S3 (Suspend to Mem) test3#4# This is the configuration file for sleepgraph. It contains5# all the tool arguments so that they don't have to be given on the6# command line. It also includes advanced settings for functions7# and kprobes. It is run like this8#9# sudo ./sleepgraph.py -config config/example.cfg10#11 12[Settings]13 14# ---- General Options ----15 16# Verbosity17# print verbose messages (default: false)18verbose: false19 20# Suspend Mode21# e.g. standby, mem, freeze, disk (default: mem)22mode: mem23 24# Output Directory Format25# output folder for html, ftrace, and dmesg. Use {date} and {time} for current values26output-dir: suspend-{hostname}-{date}-{time}27 28# Automatic Wakeup29# Use rtcwake to autoresume after X seconds, or off to disable (default: 15)30rtcwake: 1531 32# Add Logs33# add the dmesg and ftrace log to the html output (default: false)34addlogs: true35 36# Suspend/Resume Gap37# insert a small visible gap between suspend and resume on the timeline (default: false)38srgap: false39 40# Skip HTML generation41# Only capture the logs, don't generate the html timeline (default: false)42skiphtml: false43 44# Sync filesystem before suspend45# run sync before the test, minimizes sys_sync call time (default: false)46sync: true47 48# Runtime suspend enable/disable49# Enable/disable runtime suspend for all devices, restore all after test (default: no-action)50# rs: disable51 52# Turn display on/off for test53# Switch the display on/off for the test using xset (default: no-action)54# display: on55 56# Print results to text file57# Print the status of the test run in the given file (default: no-action)58result: result.txt59 60# Gzip the log files to save space61# Gzip the generated log files, and read gzipped log files (default: false)62gzip: true63 64# ---- Advanced Options ----65 66# Command to execute in lieu of suspend (default: "")67# command: echo mem > /sys/power/state68 69# Display user processes70# graph user processes and cpu usage in the timeline (default: false)71proc: false72 73# Display function calls74# graph source functions in the timeline (default: false)75dev: false76 77# Multiple test runs78# Run N tests D seconds apart, generates separate outputs with a summary (default: false)79# multi: 3 580 81# Back to Back Suspend/Resume82# Run two suspend/resumes back to back and display in the same timeline (default: false)83x2: false84 85# Back to Back Suspend Delay86# Time delay between the two test runs in ms (default: 0 ms)87x2delay: 088 89# Pre Suspend Delay90# Include an N ms delay before (1st) suspend (default: 0 ms)91predelay: 092 93# Post Resume Delay94# Include an N ms delay after (last) resume (default: 0 ms)95postdelay: 096 97# Minimum Device Length98# graph only devices longer than min in the timeline (default: 0.001 ms)99mindev: 0.001100 101# Call Loop Max Gap (dev mode only)102# merge loops of the same call if each is less than maxgap apart (def: 100us)103callloop-maxgap: 0.0001104 105# Call Loop Max Length (dev mode only)106# merge loops of the same call if each is less than maxlen in length (def: 5ms)107callloop-maxlen: 0.005108 109# Override default timeline entries:110# Do not use the internal default functions for timeline entries (def: false)111# Set this to true if you intend to only use the ones defined in the config112override-timeline-functions: true113 114# Override default dev timeline entries:115# Do not use the internal default functions for dev timeline entries (def: false)116# Set this to true if you intend to only use the ones defined in the config117override-dev-timeline-functions: true118 119# ---- Debug Options ----120 121# Callgraph122# gather detailed ftrace callgraph data on all timeline events (default: false)123callgraph: false124 125# Max graph depth126# limit the callgraph trace to this depth (default: 0 = all)127maxdepth: 2128 129# Callgraph phase filter130# Only enable callgraphs for one phase, i.e. resume_noirq (default: all)131cgphase: suspend132 133# Callgraph x2 test filter134# Only enable callgraphs test 0 or 1 when using -x2 (default: 1)135cgtest: 0136 137# Expand Callgraph138# pre-expand the callgraph data in the html output (default: disabled)139expandcg: false140 141# Minimum Callgraph Length142# provide callgraph data for blocks longer than min (default: 0.001 ms)143mincg: 1144 145# Timestamp Precision146# Number of significant digits in timestamps (0:S, [3:ms], 6:us)147timeprec: 6148 149# Device Filter150# show only devices whose name/driver includes one of these strings151# devicefilter: _cpu_up,_cpu_down,i915,usb152 153# Add kprobe functions to the timeline154# Add functions to the timeline from a text file (default: no-action)155# fadd: file.txt156 157# Ftrace buffer size158# Set trace buffer size to N kilo-bytes (default: all of free memory up to 3GB)159# bufsize: 1000160