From patchwork Fri Sep 17 22:17:03 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Renninger X-Patchwork-Id: 189162 X-Patchwork-Delegate: tony@atomide.com Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id o8HMHm2L001063 for ; Fri, 17 Sep 2010 22:17:48 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754712Ab0IQWRU (ORCPT ); Fri, 17 Sep 2010 18:17:20 -0400 Received: from cantor.suse.de ([195.135.220.2]:46439 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754129Ab0IQWRS (ORCPT ); Fri, 17 Sep 2010 18:17:18 -0400 Received: from relay1.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 EE6DC8FEA2; Sat, 18 Sep 2010 00:17:16 +0200 (CEST) From: Thomas Renninger To: Jean Pihet Subject: Re: [PATCH] tracing, perf: add more power related events Date: Sat, 18 Sep 2010 00:17:03 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.34.4-0.1.99.9.f8e4270-desktop; KDE/4.4.4; x86_64; ; ) Cc: Ingo Molnar , Arjan van de Ven , Peter Zijlstra , Len Brown , arjan@infradead.org, Kevin Hilman , linux-kernel@vger.kernel.org, discuss@lesswatts.org, linux-pm@lists.linux-foundation.org, linux-omap@vger.kernel.org, linux-perf-users@vger.kernel.org, linux-trace-users@vger.kernel.org References: <201009171508.46471.trenn@suse.de> In-Reply-To: MIME-Version: 1.0 Message-Id: <201009180017.03821.trenn@suse.de> Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Fri, 17 Sep 2010 22:17:48 +0000 (UTC) Index: linux-2.6.35-master/kernel/trace/Kconfig =================================================================== --- linux-2.6.35-master.orig/kernel/trace/Kconfig +++ linux-2.6.35-master/kernel/trace/Kconfig @@ -64,6 +64,10 @@ config EVENT_TRACING select CONTEXT_SWITCH_TRACER bool +config DEPRECATED_POWER_EVENT_TRACING + bool + default n + config CONTEXT_SWITCH_TRACER bool Index: linux-2.6.35-master/include/trace/events/power.h =================================================================== --- linux-2.6.35-master.orig/include/trace/events/power.h +++ linux-2.6.35-master/include/trace/events/power.h @@ -50,6 +50,7 @@ DEFINE_EVENT(power, power_switch_state, TP_ARGS(type, state, cpu_id) ); +#ifdef CONFIG_DEPRECATED_POWER_EVENT_TRACING DEFINE_EVENT(power, power_start, TP_PROTO(unsigned int type, unsigned int state, unsigned int cpu_id), @@ -81,6 +82,16 @@ TRACE_EVENT(power_end, TP_printk("cpu_id=%lu", (unsigned long)__entry->cpu_id) ); +#else +inline void trace_power_end(unsigned int cpu_id) +{} +inline void trace_power_start(unsigned int type, unsigned int state, + unsigned int cpu_id) +{} +inline void trace_power_frequency(unsigned int type, unsigned int state, + unsigned int cpu_id) +{} +#endif /* * The clock events are used for clock enable/disable and for