From patchwork Tue Mar 23 00:32:15 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kara X-Patchwork-Id: 87539 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2N0XQNn013788 for ; Tue, 23 Mar 2010 00:33:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756163Ab0CWAch (ORCPT ); Mon, 22 Mar 2010 20:32:37 -0400 Received: from cantor.suse.de ([195.135.220.2]:45258 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755979Ab0CWAcP (ORCPT ); Mon, 22 Mar 2010 20:32:15 -0400 Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 7E16190975; Tue, 23 Mar 2010 01:32:14 +0100 (CET) Received: by quack.suse.cz (Postfix, from userid 10005) id AB04D2B1783; Tue, 23 Mar 2010 01:32:28 +0100 (CET) From: Jan Kara To: LKML Cc: Jan Kara , linux-acpi@vger.kernel.org Subject: [PATCH 13/18] acpi: Provide config option to enable power tracepoints Date: Tue, 23 Mar 2010 01:32:15 +0100 Message-Id: <1269304340-25372-14-git-send-email-jack@suse.cz> X-Mailer: git-send-email 1.6.4.2 In-Reply-To: <1269304340-25372-1-git-send-email-jack@suse.cz> References: <1269304340-25372-1-git-send-email-jack@suse.cz> Sender: linux-acpi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-acpi@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 23 Mar 2010 00:33:26 +0000 (UTC) diff --git a/include/trace/events/power.h b/include/trace/events/power.h index c4efe9b..6d84fc1 100644 --- a/include/trace/events/power.h +++ b/include/trace/events/power.h @@ -1,5 +1,7 @@ #undef TRACE_SYSTEM +#undef TRACE_CONFIG #define TRACE_SYSTEM power +#define TRACE_CONFIG CONFIG_POWER_TRACER #if !defined(_TRACE_POWER_H) || defined(TRACE_HEADER_MULTI_READ) #define _TRACE_POWER_H diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 787f52e..a48ff49 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig @@ -430,6 +430,15 @@ config TIMER_TRACER If unsure, say N +config POWER_TRACER + bool "Trace power events" + select GENERIC_TRACER + help + Provide trace points for events like changing CPU frequency, + turning CPUs on / off. + + If unsure, say N + config WORKQUEUE_TRACER bool "Trace workqueues" select GENERIC_TRACER