trace doc: document the device_pm_callback events
Subsystems (2)
PATCH 1/1 trace doc: document the device_pm_callback events
Add documentation for the device_pm_callback_{start, end} events under the "Subsystem Trace Points: power" section.
--- Documentation/trace/events-power.rst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)
Documentation/trace/events-power.rst +27 -0
@@ -102,3 +102,30 @@ And, there are events used for CPU latency QoS add/update/remove request. pm_qos_remove_request "value=%d" The parameter is the value to be added/updated/removed. + +5. Device PM callback events +============================ +The device PM callback events are placed right before and after an invocation of +a device PM callback during a system-wide suspend/resume attempt. +:: + + device_pm_callback_start "%s %s, parent: %s, %s[%s]" + device_pm_callback_end "%s %s, err=%d" + +The first two parameters in both events are the same. They are: + + - The name of the driver. + - The device whose PM callbacks get called. + +For device_pm_callback_start, the rest of the parameters are: + + - The parent device of the device (if any). + - Level in the power management hierarchy the callback belongs to (e.g. power + domain, type, class, bus, driver). Some stages (e.g. early, late, noirq) + will also be explicitly mentioned in this string. + - The ongoing PM event. You may find definitions of those events in the + PM_EVENT_* macros in include/linux/pm.h + +For device_pm_callback_end, the only remaining parameter is: + + - The return value of the PM callback.
Signature · 1 line
2.43.0
Steven Rostedt
maintainerThis needs an ack from one of the power management maintainers.
-- Steve
Quoted 43 lines · On Sun, 22 Sep 2024 21:26:28 +0800 "Yo-Jung (Leo) Lin" <[email protected]> wrote:
Add documentation for the device_pm_callback_{start, end} events under the "Subsystem Trace Points: power" section.
Signed-off-by Yo-Jung (Leo) Lin <[email protected]>--- Documentation/trace/events-power.rst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)Documentation/trace/events-power.rst +27
-0@@ -102,3 +102,30 @@ And, there are events used for CPU latency QoS add/update/remove request. pm_qos_remove_request "value=%d" The parameter is the value to be added/updated/removed. + +5. Device PM callback events +============================ +The device PM callback events are placed right before and after an invocation of +a device PM callback during a system-wide suspend/resume attempt. +:: + + device_pm_callback_start "%s %s, parent: %s, %s[%s]" + device_pm_callback_end "%s %s, err=%d" + +The first two parameters in both events are the same. They are: + + - The name of the driver. + - The device whose PM callbacks get called. + +For device_pm_callback_start, the rest of the parameters are: + + - The parent device of the device (if any). + - Level in the power management hierarchy the callback belongs to (e.g. power + domain, type, class, bus, driver). Some stages (e.g. early, late, noirq) + will also be explicitly mentioned in this string. + - The ongoing PM event. You may find definitions of those events in the + PM_EVENT_* macros in include/linux/pm.h + +For device_pm_callback_end, the only remaining parameter is: + + - The return value of the PM callback.
Hi Rafael and the PM maintainers,
Quoted 45 lines · Steven Rostedt
This needs an ack from one of the power management maintainers.
-- Steve
Quoted 35 lines · On Sun, 22 Sep 2024 21:26:28 +0800 "Yo-Jung (Leo) Lin" <[email protected]> wrote:
Add documentation for the device_pm_callback_{start, end} events under the "Subsystem Trace Points: power" section.
Signed-off-by Yo-Jung (Leo) Lin <[email protected]>--- Documentation/trace/events-power.rst | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+)Documentation/trace/events-power.rst +19
-0@@ -102,3 +102,30 @@ And, there are events used for CPU latency QoS add/update/remove request. pm_qos_remove_request "value=%d" The parameter is the value to be added/updated/removed. + +5. Device PM callback events +============================ +The device PM callback events are placed right before and after an invocation of +a device PM callback during a system-wide suspend/resume attempt. +:: + + device_pm_callback_start "%s %s, parent: %s, %s[%s]" + device_pm_callback_end "%s %s, err=%d" + +The first two parameters in both events are the same. They are: + + - The name of the driver. + - The device whose PM callbacks get called. + +For device_pm_callback_start, the rest of the parameters are: + + - The parent device of the device (if any). + - Level in the power management hierarchy the callback belongs to (e.g. power
Quoted 9 lines
Documentation/trace/events-power.rst And, there are events used for CPU latency QoS add/update/remove request. · line 131
Quoted 8 lines
Documentation/trace/events-power.rst +8
-0+ domain, type, class, bus, driver). Some stages (e.g. early, late, noirq) + will also be explicitly mentioned in this string. + - The ongoing PM event. You may find definitions of those events in the + PM_EVENT_* macros in include/linux/pm.h + +For device_pm_callback_end, the only remaining parameter is: + + - The return value of the PM callback.
I think it'll be helpful to have your feedback on this documentation proposal. Would you kindly help take a look? I believe that any feedback would be really helpful. Thank you!
Best,
Leo