OSDN Git Service

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)
commit65875073eddd24d7b3968c1501ef29277398dc7b
treee96f7d1630c70f6471c39903cd69d75b2d16193e
parente7efc2ce3d0789cd7c21b70ff00cd7838d382639
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