Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755412AbZFZBYl (ORCPT ); Thu, 25 Jun 2009 21:24:41 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752265AbZFZBYb (ORCPT ); Thu, 25 Jun 2009 21:24:31 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:53668 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752126AbZFZBYa (ORCPT ); Thu, 25 Jun 2009 21:24:30 -0400 Message-ID: <4A44235A.4090503@cn.fujitsu.com> Date: Fri, 26 Jun 2009 09:24:42 +0800 From: Xiao Guangrong User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: David Miller CC: nhorman@tuxdriver.com, mingo@elte.hu, fweisbec@gmail.com, linux-kernel@vger.kernel.org, netdev@vger.kernel.org, rostedt@goodmis.org Subject: Re: [PATCH v2] ftrace: change the export format of trace_kfree_skb() References: <20090610072618.GA6016@nowhere> <4A39B3E4.6060004@cn.fujitsu.com> <20090618103538.GA8978@hmsreliant.think-freely.org> <20090623.235838.129947362.davem@davemloft.net> In-Reply-To: <20090623.235838.129947362.davem@davemloft.net> 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 Content-Length: 953 Lines: 34 David Miller wrote: > FWIW there are parts I don't like about this change. > > It's just the show_protocol_name() bit, it's designed to always be > out of date. > > Nobody is going to look at trace/events/skb.h when they add a new > ETH_P_* value. > > We could make some include/linux/eth_protos.def file, that has > lines like: > > ETHERNET_PROTOCOL(ETH_P_FOO, N) > > then headers that want to instantiate something like the usual > ETH_P_FOO defines or this symbolic printing table define > "ETHERNET_PROTOCOL" to a suitable macro and then include > linux/eth_protos.def to make the expansions. > Thanks for your review and your nice solution. I will fix it in next version. ;-) Thanks, Xiao > -- 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/