From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xiao Guangrong Subject: Re: [PATCH 1/2] trace_events: fix napi's tracepoint Date: Wed, 26 Aug 2009 13:40:29 +0800 Message-ID: <4A94CACD.6020309@cn.fujitsu.com> References: <4A937EF5.4040505@cn.fujitsu.com> <4A93895F.4010708@cn.fujitsu.com> <4A94C612.60200@cn.fujitsu.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Cc: Steven Rostedt , Frederic Weisbecker , Neil Horman , Wei Yongjun , David Miller , Netdev , LKML To: Ingo Molnar Return-path: Received: from cn.fujitsu.com ([222.73.24.84]:55212 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1756659AbZHZFlB (ORCPT ); Wed, 26 Aug 2009 01:41:01 -0400 In-Reply-To: <4A94C612.60200@cn.fujitsu.com> Sender: netdev-owner@vger.kernel.org List-ID: Xiao Guangrong wrote: > > Xiao Guangrong wrote: >> Currently, the napi's tracepoint works will is depend on >> "DECLARE_TRACE" definiens in include/trace/define_trace.h, >> like below: >> >> #include // include define_trace.h >> #include >> >> there have error, if we remove "#include " >> or include napi.h in the front of include skb.h, It should >> depend on the definiens in include/linux/tracepoint.h and we >> can remove the "DECLARE_TRACE" definiens in >> include/trace/define_trace.h, because "TRACE_EVENT" not use it >> >> Signed-off-by: Xiao Guangrong > > Hi Steven, > > I'm sorry, please pull this patch too, because > "[PATCH 7/8] tracing/events: fix the include file dependencies" > is based on this patch, else will occur building error. > Sorry again, I say the wrong words, it not has building error, just not complete fix the bug which I mention it in the changelog of "[PATCH 7/8] tracing/events: fix the include file dependencies", that is we can't include more TRACE_EVENT head file in .c file all the same, like below: Both define TRACE_EVENT in trace_a.h and trace_b.h, if we include those in .c file, like this: #define CREATE_TRACE_POINTS include // re-define DECLARE_TRACE include // use the DECLARE_TRACE definition // that re-define by trace_a.h Thanks, Xiao