[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.DEB.2.00.0906182033101.6890@gandalf.stny.rr.com>
Date: Thu, 18 Jun 2009 20:33:31 -0400 (EDT)
From: Steven Rostedt <rostedt@...dmis.org>
To: Xiao Guangrong <xiaoguangrong@...fujitsu.com>
cc: Ingo Molnar <mingo@...e.hu>,
Frederic Weisbecker <fweisbec@...il.com>,
LKML <linux-kernel@...r.kernel.org>, netdev@...r.kernel.org,
David Miller <davem@...emloft.net>,
Neil Horman <nhorman@...driver.com>
Subject: Re: [PATCH v2] ftrace: change the export format of
trace_kfree_skb()
On Thu, 18 Jun 2009, Xiao Guangrong wrote:
> Use %pf instead of %p to output the function's address and print the
> protocol's name.
>
> Before patch:
>
> <idle>-0 [000] 60144.542521: kfree_skb: skbaddr=de7b8240 protocol=2048 location=c1365429
> <idle>-0 [000] 60164.488153: kfree_skb: skbaddr=da66f900 protocol=2048 location=c1365429
> <idle>-0 [000] 60193.493933: kfree_skb: skbaddr=deaeb480 protocol=4 location=c134ec25
> <idle>-0 [000] 60253.118421: kfree_skb: skbaddr=de7c4900 protocol=4 location=c134ec25
>
> After patch:
>
> <idle>-0 [000] 169.979205: kfree_skb: skbaddr=ceddc240 protocol=ETH_P_802_2 location=netif_receive_skb
> <idle>-0 [000] 172.587000: kfree_skb: skbaddr=ceddc300 protocol=ETH_P_802_2 location=netif_receive_skb
> ping-3391 [000] 192.109803: kfree_skb: skbaddr=ceddc900 protocol=ETH_P_IP location=icmp_rcv
> ping-3391 [000] 192.109902: kfree_skb: skbaddr=ceddc780 protocol=ETH_P_IP location=icmp_rcv
>
> Changelog v1->v2:
> Convert protocol from raw numeric to its name as Frederic's suggestion
>
> Signed-off-by: Xiao Guangrong <xiaoguangrong@...fujitsu.com>
> Acked-by: Frederic Weisbecker <fweisbec@...il.com>
I get this:
CC net/core/net-traces.o
In file included from include/trace/ftrace.h:262,
from include/trace/define_trace.h:57,
from include/trace/events/skb.h:107,
from net/core/net-traces.c:28:
include/trace/events/skb.h: In function 'ftrace_raw_output_kfree_skb':
include/trace/events/skb.h:78: error: 'ETH_P_IEEE802154' undeclared (first
use in this function)
include/trace/events/skb.h:78: error: (Each undeclared identifier is
reported only once
include/trace/events/skb.h:78: error: for each function it appears in.)
-- Steve
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists