diff options
author | 2020-01-04 17:27:57 +0100 | |
---|---|---|
committer | 2020-01-13 12:28:29 +0100 | |
commit | d229290689ae0f6eae068ef142de4fd61ab4ba50 (patch) | |
tree | 48acc5874c22883b98b22933b5c7a182df269943 /include/trace | |
parent | Linux 5.5-rc6 (diff) | |
download | linux-d229290689ae0f6eae068ef142de4fd61ab4ba50.tar.gz linux-d229290689ae0f6eae068ef142de4fd61ab4ba50.tar.bz2 linux-d229290689ae0f6eae068ef142de4fd61ab4ba50.zip |
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')
-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), |