summaryrefslogtreecommitdiff
path: root/include/trace/events/rpm.h
diff options
context:
space:
mode:
authorMichał Mirosław <mirq-linux@rere.qmqm.pl>2020-01-04 19:27:57 +0300
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2020-01-13 14:28:29 +0300
commitd229290689ae0f6eae068ef142de4fd61ab4ba50 (patch)
tree48acc5874c22883b98b22933b5c7a182df269943 /include/trace/events/rpm.h
parentb3a987b0264d3ddbb24293ebff10eddfc472f653 (diff)
downloadlinux-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.h6
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),