Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758083AbZIODog (ORCPT ); Mon, 14 Sep 2009 23:44:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758054AbZIODob (ORCPT ); Mon, 14 Sep 2009 23:44:31 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:56426 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1757314AbZIODob (ORCPT ); Mon, 14 Sep 2009 23:44:31 -0400 Message-ID: <4AAF0D54.2040506@cn.fujitsu.com> Date: Tue, 15 Sep 2009 11:43:16 +0800 From: Li Zefan User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1b3pre) Gecko/20090513 Fedora/3.0-2.3.beta2.fc11 Thunderbird/3.0b2 MIME-Version: 1.0 To: Arjan van de Ven CC: linux-kernel@vger.kernel.org, mingo@elte.hu, fweisbec@gmail.com, peterz@infradead.org Subject: Re: [PATCH 5/8] trace: Convert the power tracer into an event tracer References: <20090912130306.5d0086ea@infradead.org> <20090912130542.6d314860@infradead.org> In-Reply-To: <20090912130542.6d314860@infradead.org> Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1693 Lines: 57 Arjan van de Ven wrote: >>From f591a0f126263733d606838a5d113b9807b12c84 Mon Sep 17 00:00:00 2001 > From: Arjan van de Ven > Date: Sat, 12 Sep 2009 07:53:03 +0200 > Subject: [PATCH] trace: Convert the power tracer into an event tracer > > This patch converts the existing power tracer into an event tracer, > so that power events (C states and frequency changes) can be tracked > via "perf". > > This also removes the perl script that was used to demo the tracer; > its functionality is being replaced entirely with timechart. > And Documentation/power.txt needs update, or just remove it? > Signed-off-by: Arjan van de Ven ... > diff --git a/kernel/trace/power-traces.c b/kernel/trace/power-traces.c > new file mode 100644 > index 0000000..cb4fc51 > --- /dev/null > +++ b/kernel/trace/power-traces.c This file is not necessarily needed. You can just add definition of CREATE_TRACE_POINTS in process.c. > @@ -0,0 +1,18 @@ > +/* > + * Power trace points > + * > + * Copyright (C) 2009 Arjan van de Ven > + */ > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +#define CREATE_TRACE_POINTS > +#include > + > +EXPORT_TRACEPOINT_SYMBOL_GPL(power_start); > + I think it's power_frequency that needs to be exported? -- 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/