Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756943Ab0LJTx3 (ORCPT ); Fri, 10 Dec 2010 14:53:29 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:43049 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756066Ab0LJTx2 (ORCPT ); Fri, 10 Dec 2010 14:53:28 -0500 From: jean.pihet@newoldbits.com To: Ingo Molnar Cc: Thomas Renninger , linux-pm@lists.linux-foundation.org, Arjan van de Ven , linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, Jean Pihet Subject: [PATCH 1/3] perf: add calls to suspend trace point Date: Fri, 10 Dec 2010 20:51:59 +0100 Message-Id: <1292010721-17426-2-git-send-email-j-pihet@ti.com> X-Mailer: git-send-email 1.7.2.3 In-Reply-To: <1292010721-17426-1-git-send-email-j-pihet@ti.com> References: <1292010721-17426-1-git-send-email-j-pihet@ti.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1219 Lines: 41 From: Jean Pihet Uses the machine_suspend trace point, called from the generic kernel suspend_enter function. Signed-off-by: Jean Pihet CC: Thomas Renninger --- 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..0650596 100644 --- a/kernel/power/suspend.c +++ b/kernel/power/suspend.c @@ -22,6 +22,7 @@ #include #include #include +#include #include "power.h" @@ -164,7 +165,9 @@ static int suspend_enter(suspend_state_t state) error = sysdev_suspend(PMSG_SUSPEND); if (!error) { if (!suspend_test(TEST_CORE) && pm_check_wakeup_events()) { + trace_machine_suspend(state); error = suspend_ops->enter(state); + trace_machine_suspend(PWR_EVENT_EXIT); events_check_enabled = false; } sysdev_resume(); -- 1.7.2.3 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/