]> 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)
commitee739691dc53b8c416e330f027b3556d40e0d90d
treee96f7d1630c70f6471c39903cd69d75b2d16193e
parenta4a17caa28532387b18231f43f71664685149c77
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