Commit 938cfed18bec2c7361f37efc954712a7cc42c353
Committed by
Ingo Molnar
1 parent
eccdfe2d24
Exists in
master
and in
4 other branches
perf: Add calls to suspend trace point
Uses the machine_suspend trace point, called from the generic kernel suspend_devices_and_enter function. Signed-off-by: Jean Pihet <j-pihet@ti.com> Acked-by: Rafael J. Wysocki <rjw@sisk.pl> Cc: Arjan van de Ven <arjan@linux.intel.com> CC: Thomas Renninger <trenn@suse.de> Cc: Len Brown <len.brown@intel.com> Cc: Pavel Machek <pavel@ucw.cz> Cc: Steven Rostedt <rostedt@goodmis.org> Cc: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: linux-pm@lists.linux-foundation.org LKML-Reference: <1294253342-29056-2-git-send-email-j-pihet@ti.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Showing 1 changed file with 3 additions and 0 deletions Side-by-side Diff
kernel/power/suspend.c
... | ... | @@ -22,6 +22,7 @@ |
22 | 22 | #include <linux/mm.h> |
23 | 23 | #include <linux/slab.h> |
24 | 24 | #include <linux/suspend.h> |
25 | +#include <trace/events/power.h> | |
25 | 26 | |
26 | 27 | #include "power.h" |
27 | 28 | |
... | ... | @@ -201,6 +202,7 @@ |
201 | 202 | if (!suspend_ops) |
202 | 203 | return -ENOSYS; |
203 | 204 | |
205 | + trace_machine_suspend(state); | |
204 | 206 | if (suspend_ops->begin) { |
205 | 207 | error = suspend_ops->begin(state); |
206 | 208 | if (error) |
... | ... | @@ -229,6 +231,7 @@ |
229 | 231 | Close: |
230 | 232 | if (suspend_ops->end) |
231 | 233 | suspend_ops->end(); |
234 | + trace_machine_suspend(PWR_EVENT_EXIT); | |
232 | 235 | return error; |
233 | 236 | |
234 | 237 | Recover_platform: |