]> git.baikalelectronics.ru Git - kernel.git/commit
net: use %px to print skb address in trace_netif_receive_skb
authorQitao Xu <qitao.xu@bytedance.com>
Thu, 15 Jul 2021 05:59:23 +0000 (22:59 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 15 Jul 2021 17:28:48 +0000 (10:28 -0700)
commit9aed80c14870caf348c8495420091ed25e749684
treee96f7d1630c70f6471c39903cd69d75b2d16193e
parentea9f5d313b95428dc4ca56b28cc632636095a2d8
net: use %px to print skb address in trace_netif_receive_skb

The print format of skb adress in tracepoint class net_dev_template
is changed to %px from %p, because we want to use skb address
as a quick way to identify a packet.

Note, trace ring buffer is only accessible to privileged users,
it is safe to use a real kernel address here.

Reviewed-by: Cong Wang <cong.wang@bytedance.com>
Signed-off-by: Qitao Xu <qitao.xu@bytedance.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/trace/events/net.h