diff options
author | Michał Mirosław <mirq-linux@rere.qmqm.pl> | 2020-01-04 19:27:57 +0300 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2020-01-13 14:28:29 +0300 |
commit | d229290689ae0f6eae068ef142de4fd61ab4ba50 (patch) | |
tree | 48acc5874c22883b98b22933b5c7a182df269943 /include/trace/events/rpm.h | |
parent | b3a987b0264d3ddbb24293ebff10eddfc472f653 (diff) | |
download | linux-d229290689ae0f6eae068ef142de4fd61ab4ba50.tar.xz |
PM-runtime: add tracepoints for usage_count changes
Add tracepoints to remaining places where device's power.usage_count
is changed.
This helps debugging where and why autosuspend is prevented.
Signed-off-by: Michał Mirosław <mirq-linux@rere.qmqm.pl>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/trace/events/rpm.h')
-rw-r--r-- | include/trace/events/rpm.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/trace/events/rpm.h b/include/trace/events/rpm.h index 26927a560eab..3c716214dab1 100644 --- a/include/trace/events/rpm.h +++ b/include/trace/events/rpm.h @@ -74,6 +74,12 @@ DEFINE_EVENT(rpm_internal, rpm_idle, TP_ARGS(dev, flags) ); +DEFINE_EVENT(rpm_internal, rpm_usage, + + TP_PROTO(struct device *dev, int flags), + + TP_ARGS(dev, flags) +); TRACE_EVENT(rpm_return_int, TP_PROTO(struct device *dev, unsigned long ip, int ret), |