From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753565AbZENIHB (ORCPT ); Thu, 14 May 2009 04:07:01 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751088AbZENIGo (ORCPT ); Thu, 14 May 2009 04:06:44 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:52999 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1750920AbZENIGn (ORCPT ); Thu, 14 May 2009 04:06:43 -0400 Message-ID: <4A0BD0C1.9060809@cn.fujitsu.com> Date: Thu, 14 May 2009 16:05:21 +0800 From: Xiao Guangrong User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: Lai Jiangshan CC: Mathieu Desnoyers , linux-kernel@vger.kernel.org, mingo@elte.hu, fweisbec@gmail.com, rostedt@goodmis.org, zhaolei@cn.fujitsu.com, Li Zefan Subject: Re: [PATCH v3] ftrace: add a tracepoint for __raise_softirq_irqoff() References: <49FFDF9C.7040505@cn.fujitsu.com> <20090505161604.GA15524@Krystal> <4A07D3B3.10605@cn.fujitsu.com> <20090511134019.GB10932@Krystal> <4A0B859B.8070801@cn.fujitsu.com> <20090514035037.GA8159@Krystal> <4A0BB4EA.60203@cn.fujitsu.com> In-Reply-To: <4A0BB4EA.60203@cn.fujitsu.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Lai Jiangshan wrote: > Mathieu Desnoyers wrote: >> * Lai Jiangshan (laijs@cn.fujitsu.com) wrote: >>> Mathieu Desnoyers wrote: >> #endif >> > > It's not needed for trace/events/irq.h > > Yes, it's a solution. > > But I don't think we have to do this, CREATE_TRACE_POINTS is > needed only _once_ for every > > The .c file which defines CREATE_TRACE_POINTS can provide > (had provided likely) things like "#include " > > See kernel/softirq.c: > #include > ...... > ...... > #define CREATE_TRACE_POINTS > #include > > I don't think it's a problem, CREATE_TRACE_POINTS is defined only > once for a . > Yes, I think Lai's argument is reasonable, the .c file which use ftrace already include the relevant head file. I will make a patch as your suggestions. Thanks! ;-) > Lai. > > >