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