aboutsummaryrefslogtreecommitdiff
path: root/kernel/trace/rpm-traces.c
diff options
context:
space:
mode:
authorMing Lei <ming.lei@canonical.com>2011-09-27 22:53:27 +0200
committerRafael J. Wysocki <rjw@sisk.pl>2011-09-27 22:53:27 +0200
commit53b615ccca567ada1931eb04ad0614ac150c14a3 (patch)
treef09512d0dabaeff71b9ee66c26ca02cae2947873 /kernel/trace/rpm-traces.c
parentad3c36a534bc7b945d7bffdda1c62e13bf93489a (diff)
PM / Runtime: Introduce trace points for tracing rpm_* functions
This patch introduces 3 trace points to prepare for tracing rpm_idle/rpm_suspend/rpm_resume functions, so we can use these trace points to replace the current dev_dbg(). Signed-off-by: Ming Lei <ming.lei@canonical.com> Acked-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'kernel/trace/rpm-traces.c')
-rw-r--r--kernel/trace/rpm-traces.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/kernel/trace/rpm-traces.c b/kernel/trace/rpm-traces.c
new file mode 100644
index 000000000000..4b3b5eaf94d1
--- /dev/null
+++ b/kernel/trace/rpm-traces.c
@@ -0,0 +1,20 @@
+/*
+ * Power trace points
+ *
+ * Copyright (C) 2009 Ming Lei <ming.lei@canonical.com>
+ */
+
+#include <linux/string.h>
+#include <linux/types.h>
+#include <linux/workqueue.h>
+#include <linux/sched.h>
+#include <linux/module.h>
+#include <linux/usb.h>
+
+#define CREATE_TRACE_POINTS
+#include <trace/events/rpm.h>
+
+EXPORT_TRACEPOINT_SYMBOL_GPL(rpm_return_int);
+EXPORT_TRACEPOINT_SYMBOL_GPL(rpm_idle);
+EXPORT_TRACEPOINT_SYMBOL_GPL(rpm_suspend);
+EXPORT_TRACEPOINT_SYMBOL_GPL(rpm_resume);