example.cfg 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. #
  2. # Generic S3 (Suspend to Mem) test
  3. #
  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
  8. #
  9. # sudo ./sleepgraph.py -config config/example.cfg
  10. #
  11. [Settings]
  12. # ---- General Options ----
  13. # Verbosity
  14. # print verbose messages (default: false)
  15. verbose: false
  16. # Suspend Mode
  17. # e.g. standby, mem, freeze, disk (default: mem)
  18. mode: mem
  19. # Output Directory Format
  20. # output folder for html, ftrace, and dmesg. Use {date} and {time} for current values
  21. output-dir: suspend-{hostname}-{date}-{time}
  22. # Automatic Wakeup
  23. # Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
  24. rtcwake: 15
  25. # Add Logs
  26. # add the dmesg and ftrace log to the html output (default: false)
  27. addlogs: true
  28. # Suspend/Resume Gap
  29. # insert a small visible gap between suspend and resume on the timeline (default: false)
  30. srgap: false
  31. # Skip HTML generation
  32. # Only capture the logs, don't generate the html timeline (default: false)
  33. skiphtml: false
  34. # Sync filesystem before suspend
  35. # run sync before the test, minimizes sys_sync call time (default: false)
  36. sync: true
  37. # Runtime suspend enable/disable
  38. # Enable/disable runtime suspend for all devices, restore all after test (default: no-action)
  39. # rs: disable
  40. # Turn display on/off for test
  41. # Switch the display on/off for the test using xset (default: no-action)
  42. # display: on
  43. # Print results to text file
  44. # Print the status of the test run in the given file (default: no-action)
  45. result: result.txt
  46. # Gzip the log files to save space
  47. # Gzip the generated log files, and read gzipped log files (default: false)
  48. gzip: true
  49. # ---- Advanced Options ----
  50. # Command to execute in lieu of suspend (default: "")
  51. # command: echo mem > /sys/power/state
  52. # Display user processes
  53. # graph user processes and cpu usage in the timeline (default: false)
  54. proc: false
  55. # Display function calls
  56. # graph source functions in the timeline (default: false)
  57. dev: false
  58. # Multiple test runs
  59. # Run N tests D seconds apart, generates separate outputs with a summary (default: false)
  60. # multi: 3 5
  61. # Back to Back Suspend/Resume
  62. # Run two suspend/resumes back to back and display in the same timeline (default: false)
  63. x2: false
  64. # Back to Back Suspend Delay
  65. # Time delay between the two test runs in ms (default: 0 ms)
  66. x2delay: 0
  67. # Pre Suspend Delay
  68. # Include an N ms delay before (1st) suspend (default: 0 ms)
  69. predelay: 0
  70. # Post Resume Delay
  71. # Include an N ms delay after (last) resume (default: 0 ms)
  72. postdelay: 0
  73. # Minimum Device Length
  74. # graph only devices longer than min in the timeline (default: 0.001 ms)
  75. mindev: 0.001
  76. # ---- Debug Options ----
  77. # Callgraph
  78. # gather detailed ftrace callgraph data on all timeline events (default: false)
  79. callgraph: false
  80. # Callgraph phase filter
  81. # Only enable callgraphs for one phase, i.e. resume_noirq (default: all)
  82. cgphase: suspend
  83. # Callgraph x2 test filter
  84. # Only enable callgraphs test 0 or 1 when using -x2 (default: 1)
  85. cgtest: 0
  86. # Expand Callgraph
  87. # pre-expand the callgraph data in the html output (default: disabled)
  88. expandcg: false
  89. # Minimum Callgraph Length
  90. # provide callgraph data for blocks longer than min (default: 0.001 ms)
  91. mincg: 1
  92. # Timestamp Precision
  93. # Number of significant digits in timestamps (0:S, [3:ms], 6:us)
  94. timeprec: 6
  95. # Device Filter
  96. # show only devices whose name/driver includes one of these strings
  97. # devicefilter: _cpu_up,_cpu_down,i915,usb
  98. # Add kprobe functions to the timeline
  99. # Add functions to the timeline from a text file (default: no-action)
  100. # fadd: file.txt