Back to home page

OSCL-LXR

 
 

    


0001 #
0002 # This is the configuration file for sleepgraph. It contains
0003 # all the tool arguments so that they don't have to be given on the
0004 # command line. It also includes advanced settings for functions
0005 # and kprobes. It is run like this
0006 #
0007 #    sudo ./sleepgraph.py -config thisfile.txt
0008 #
0009 
0010 [Settings]
0011 
0012 # Verbosity
0013 # print verbose messages (default: false)
0014 verbose: false
0015 
0016 # Suspend Mode
0017 # e.g. standby, mem, freeze, disk (default: mem)
0018 mode: mem
0019 
0020 # Automatic Wakeup
0021 # Use rtcwake to autoresume after X seconds, or off to disable (default: 15)
0022 rtcwake: 15
0023 
0024 # Add Logs
0025 # add the dmesg and ftrace log to the html output (default: false)
0026 addlogs: false
0027 
0028 # Display function calls
0029 # graph source functions in the timeline (default: false)
0030 dev: true
0031 
0032 # Callgraph
0033 # gather detailed ftrace callgraph data on all timeline events (default: false)
0034 callgraph: false
0035 
0036 # Back to Back Suspend/Resume
0037 # Run two suspend/resumes back to back (default: false)
0038 x2: false
0039 
0040 # Back to Back Suspend Delay
0041 # Time delay between the two test runs in ms (default: 0 ms)
0042 x2delay: 0
0043 
0044 # Minimum Device Length
0045 # graph only devices longer than min in the timeline (default: 0.001 ms)
0046 mindev: 1
0047 
0048 # Minimum Callgraph Length
0049 # provide callgraph data for blocks longer than min (default: 0.001 ms)
0050 mincg: 1
0051 
0052 # Suspend/Resume Gap
0053 # insert a small visible gap between suspend and resume on the timeline (default: false)
0054 srgap: false
0055 
0056 # Output Directory Format
0057 # output folder for html, ftrace, and dmesg. Use {date} and {time} for current values
0058 output-dir: suspend-{hostname}-{date}-{time}-custom
0059 
0060 # Override default timeline entries
0061 # Do not use the internal default functions for timeline entries (default: false)
0062 # Set this to true if you intend to only use the ones defined in this config
0063 override-timeline-functions: true
0064 
0065 # Override default dev timeline entries
0066 # Do not use the internal default functions for dev timeline entries (default: false)
0067 # Set this to true if you intend to only use the ones defined in this config
0068 override-dev-timeline-functions: true
0069 
0070 [timeline_functions_x86_64]
0071 #
0072 # Function calls to display in the timeline alongside device callbacks.
0073 # The tool has an internal set of these functions which should cover the
0074 # whole of kernel execution, but you can append or override here.
0075 #
0076 # This is a list of kprobes which use both symbol data and function arg data.
0077 # The function calls are displayed on the timeline alongside the device blocks.
0078 # The args are pulled directly from the stack using this architecture's registers
0079 # and stack formatting. Three pieces of info are required. The function name,
0080 # a format string, and an argument list
0081 #
0082 # Entry format:
0083 #
0084 #   function: format{fn_arg1}_{fn_arg2} fn_arg1 fn_arg2 ... [color=purple]
0085 #
0086 # Required Arguments:
0087 #
0088 #   function: The symbol name for the function you want probed, this is the
0089 #             minimum required for an entry, it will show up as the function
0090 #             name with no arguments.
0091 #
0092 #       example: _cpu_up:
0093 #
0094 # Optional Arguments:
0095 #
0096 #   format: The format to display the data on the timeline in. Use braces to
0097 #           enclose the arg names.
0098 #
0099 #       example: CPU_ON[{cpu}]
0100 #
0101 #   color: The color of the entry block in the timeline. The default color is
0102 #          transparent, so the entry shares the phase color. The color is an
0103 #          html color string, either a word, or an RGB.
0104 #
0105 #       example: [color=#CC00CC]
0106 #
0107 #   arglist: A list of arguments from registers/stack addresses. See URL:
0108 #            https://www.kernel.org/doc/Documentation/trace/kprobetrace.txt
0109 #
0110 #       example: cpu=%di:s32
0111 #
0112 # Example: Display cpu resume in the timeline
0113 #
0114 #       _cpu_up: CPU_ON[{cpu}] cpu=%di:s32 [color=orange]
0115 #
0116 _cpu_down: CPU_OFF[{cpu}] cpu=%di:s32
0117 _cpu_up: CPU_ON[{cpu}] cpu=%di:s32
0118 sys_sync:
0119 pm_prepare_console:
0120 pm_notifier_call_chain:
0121 freeze_processes:
0122 freeze_kernel_threads:
0123 pm_restrict_gfp_mask:
0124 acpi_suspend_begin:
0125 suspend_console:
0126 acpi_pm_prepare:
0127 syscore_suspend:
0128 arch_enable_nonboot_cpus_end:
0129 syscore_resume:
0130 acpi_pm_finish:
0131 resume_console:
0132 acpi_pm_end:
0133 pm_restore_gfp_mask:
0134 thaw_processes:
0135 pm_restore_console:
0136 
0137 [dev_timeline_functions_x86_64]
0138 #
0139 # Dev mode function calls to display inside timeline entries
0140 #
0141 # This is a list of kprobes which use both symbol data and function arg data.
0142 # The function calls are displayed on the timeline alongside the device blocks.
0143 # The args are pulled directly from the stack using this architecture's registers
0144 # and stack formatting. Three pieces of info are required. The function name,
0145 # a format string, and an argument list
0146 #
0147 # Entry format:
0148 #
0149 #   function: format{fn_arg1}_{fn_arg2} fn_arg1 fn_arg2 ... [color=purple]
0150 #
0151 # Required Arguments:
0152 #
0153 #   function: The symbol name for the function you want probed, this is the
0154 #             minimum required for an entry, it will show up as the function
0155 #             name with no arguments.
0156 #
0157 #       example: ata_eh_recover:
0158 #
0159 # Optional Arguments:
0160 #
0161 #   format: The format to display the data on the timeline in. Use braces to
0162 #           enclose the arg names.
0163 #
0164 #       example: ata{port}_port_reset
0165 # 
0166 #   color: The color of the entry block in the timeline. The default color is
0167 #          transparent, so the entry shares the phase color. The color is an
0168 #          html color string, either a word, or an RGB.
0169 #
0170 #       example: [color=#CC00CC]
0171 #
0172 #   arglist: A list of arguments from registers/stack addresses. See URL:
0173 #            https://www.kernel.org/doc/Documentation/trace/kprobetrace.txt
0174 #
0175 #       example: port=+36(%di):s32
0176 #
0177 # Example: Display ATA port reset as ataN_port_reset in the timeline
0178 #
0179 #       ata_eh_recover: ata{port}_port_reset port=+36(%di):s32
0180 #
0181 msleep: msleep time=%di:s32
0182 schedule_timeout_uninterruptible: schedule_timeout_uninterruptible timeout=%di:s32
0183 schedule_timeout: schedule_timeout timeout=%di:s32
0184 usleep_range: usleep_range min=%di:s32 max=%si:s32
0185 __const_udelay: udelay loops=%di:s32
0186 __mutex_lock_slowpath: mutex_lock_slowpath
0187 ata_eh_recover: ata_eh_recover port=+36(%di):s32
0188 acpi_os_stall:
0189 acpi_resume_power_resources:
0190 acpi_ps_parse_aml:
0191 ext4_sync_fs:
0192 i915_gem_resume:
0193 i915_restore_state:
0194 intel_opregion_setup:
0195 g4x_pre_enable_dp:
0196 vlv_pre_enable_dp:
0197 chv_pre_enable_dp:
0198 g4x_enable_dp:
0199 vlv_enable_dp:
0200 intel_hpd_init:
0201 intel_opregion_register:
0202 intel_dp_detect:
0203 intel_hdmi_detect:
0204 intel_opregion_init:
0205 intel_fbdev_set_suspend: