Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754480AbZFHJSp (ORCPT ); Mon, 8 Jun 2009 05:18:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752455AbZFHJSf (ORCPT ); Mon, 8 Jun 2009 05:18:35 -0400 Received: from cn.fujitsu.com ([222.73.24.84]:52121 "EHLO song.cn.fujitsu.com" rhost-flags-OK-FAIL-OK-OK) by vger.kernel.org with ESMTP id S1752025AbZFHJSe (ORCPT ); Mon, 8 Jun 2009 05:18:34 -0400 Message-ID: <4A2CD77F.7080609@cn.fujitsu.com> Date: Mon, 08 Jun 2009 17:18:55 +0800 From: Xiao Guangrong User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: davem@davemloft.net CC: LKML , netdev@vger.kernel.org, mingo@elte.hu, Neil Horman Subject: [PATCH] ftrace: change the export format of trace_kfree_skb() 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: 1898 Lines: 46 Use %pf instead of %p to output the function's address, use 0x%04X instead of %u to output the skb's protocol Before patch: -0 [000] 60144.542521: kfree_skb: skbaddr=de7b8240 protocol=2048 location=c1365429 -0 [000] 60164.488153: kfree_skb: skbaddr=da66f900 protocol=2048 location=c1365429 -0 [000] 60193.493933: kfree_skb: skbaddr=deaeb480 protocol=4 location=c134ec25 -0 [000] 60253.118421: kfree_skb: skbaddr=de7c4900 protocol=4 location=c134ec25 After patch: bash-2587 [001] 97685.781173: kfree_skb: skbaddr=deb9cc00 protocol=0x0000 location=netlink_unicast bash-2587 [000] 97686.501121: kfree_skb: skbaddr=df9bb840 protocol=0x0000 location=netlink_unicast -0 [000] 97696.200184: kfree_skb: skbaddr=df741240 protocol=0x0800 location=ip_rcv -0 [000] 97696.200198: kfree_skb: skbaddr=dfb3de40 protocol=0x0800 location=ip_rcv Signed-off-by: Xiao Guangrong --- include/trace/events/skb.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) mode change 100644 => 100755 include/trace/events/skb.h diff --git a/include/trace/events/skb.h b/include/trace/events/skb.h old mode 100644 new mode 100755 index 1e8fabb..a58bef8 --- a/include/trace/events/skb.h +++ b/include/trace/events/skb.h @@ -30,7 +30,7 @@ TRACE_EVENT(kfree_skb, __entry->location = location; ), - TP_printk("skbaddr=%p protocol=%u location=%p", + TP_printk("skbaddr=%p protocol=0x%04X location=%pf", __entry->skbaddr, __entry->protocol, __entry->location) ); -- 1.6.1.2 -- 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/