Skip to content

RFC netdev: Add tracepoint to network/driver interface

Koki Sanagi netdev 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 RFC Latest2 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2netdev: Add tracepoint to dev_hard_start_xmitinclude/trace/events/skb.h net/core/dev.c+31 -00 replies
2/2netdev: Add tracepoint to netif_receive_skbinclude/trace/events/skb.h net/core/dev.c+29 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [RFC PATCH 0/2] netdev: Add tracepoint to network/driver interface

These patches add tracepoints to network/driver interface.

These tracepoints are helpful to investigate whether a packet passes or not. For example, when Heart Beat is disconnected, that information is helpful to investigate the cause is whether driver/device side or not.

An output is below.

  sshd-2443  [001] 68238.415621: netdev_start_xmit: dev=eth3 skbaddr=f3db5138 len=114
<idle>-0     [001] 68238.417058: netdev_receive_skb: dev=eth3 skbaddr=f3c81540 len=52
<idle>-0     [001] 68238.704363: netdev_receive_skb: dev=eth3 skbaddr=f3c81540 len=100
  sshd-2443  [001] 68238.705459: netdev_start_xmit: dev=eth3 skbaddr=f3db5138 len=114
<idle>-0     [001] 68238.706891: netdev_receive_skb: dev=eth3 skbaddr=f3c81540 len=52
<idle>-0     [001] 68238.878736: netdev_receive_skb: dev=eth3 skbaddr=f3c81540 len=100
  sshd-2443  [001] 68238.880361: netdev_start_xmit: dev=eth3 skbaddr=f3db5138 len=114

As other use case I have, we can get throughput per interface with some sort of perf scripts. I plan to create it.

Thanks
Koki Sanagi