[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <tip-938cfed18bec2c7361f37efc954712a7cc42c353@git.kernel.org>
Date: Wed, 5 Jan 2011 21:24:45 GMT
From: tip-bot for Jean Pihet <j-pihet@...com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, acme@...hat.com, hpa@...or.com,
mingo@...hat.com, a.p.zijlstra@...llo.nl, arjan@...ux.intel.com,
j-pihet@...com, pavel@....cz, rostedt@...dmis.org,
tglx@...utronix.de, trenn@...e.de, rjw@...k.pl, mingo@...e.hu,
len.brown@...el.com
Subject: [tip:perf/core] perf: Add calls to suspend trace point
Commit-ID: 938cfed18bec2c7361f37efc954712a7cc42c353
Gitweb: http://git.kernel.org/tip/938cfed18bec2c7361f37efc954712a7cc42c353
Author: Jean Pihet <j-pihet@...com>
AuthorDate: Wed, 5 Jan 2011 19:49:01 +0100
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Wed, 5 Jan 2011 21:25:28 +0100
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@...com>
Acked-by: Rafael J. Wysocki <rjw@...k.pl>
Cc: Arjan van de Ven <arjan@...ux.intel.com>
CC: Thomas Renninger <trenn@...e.de>
Cc: Len Brown <len.brown@...el.com>
Cc: Pavel Machek <pavel@....cz>
Cc: Steven Rostedt <rostedt@...dmis.org>
Cc: Arnaldo Carvalho de Melo <acme@...hat.com>
Cc: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Cc: linux-pm@...ts.linux-foundation.org
LKML-Reference: <1294253342-29056-2-git-send-email-j-pihet@...com>
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
kernel/power/suspend.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/kernel/power/suspend.c b/kernel/power/suspend.c
index ecf7705..031d5e3 100644
--- a/kernel/power/suspend.c
+++ b/kernel/power/suspend.c
@@ -22,6 +22,7 @@
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/suspend.h>
+#include <trace/events/power.h>
#include "power.h"
@@ -201,6 +202,7 @@ int suspend_devices_and_enter(suspend_state_t state)
if (!suspend_ops)
return -ENOSYS;
+ trace_machine_suspend(state);
if (suspend_ops->begin) {
error = suspend_ops->begin(state);
if (error)
@@ -229,6 +231,7 @@ int suspend_devices_and_enter(suspend_state_t state)
Close:
if (suspend_ops->end)
suspend_ops->end();
+ trace_machine_suspend(PWR_EVENT_EXIT);
return error;
Recover_platform:
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists