diff options
author | Koki Sanagi <[email protected]> | 2010-08-23 18:46:12 +0900 |
---|---|---|
committer | Frederic Weisbecker <[email protected]> | 2010-09-07 17:51:53 +0200 |
commit | 07dc22e7295f25526f110d704655ff0ea7687420 (patch) | |
tree | 026b83a634d949d80cff48a91ecc38419bba8821 /kernel/trace/ring_buffer.c | |
parent | cf66ba58b5cb8b1526e9dd2fb96ff8db048d4d44 (diff) |
skb: Add tracepoints to freeing skb
This patch adds tracepoint to consume_skb and add trace_kfree_skb
before __kfree_skb in skb_free_datagram_locked and net_tx_action.
Combinating with tracepoint on dev_hard_start_xmit, we can check
how long it takes to free transmitted packets. And using it, we can
calculate how many packets driver had at that time. It is useful when
a drop of transmitted packet is a problem.
sshd-6828 [000] 112689.258154: consume_skb: skbaddr=f2d99bb8
Signed-off-by: Koki Sanagi <[email protected]>
Acked-by: David S. Miller <[email protected]>
Acked-by: Neil Horman <[email protected]>
Cc: Mathieu Desnoyers <[email protected]>
Cc: Kaneshige Kenji <[email protected]>
Cc: Izumo Taku <[email protected]>
Cc: Kosaki Motohiro <[email protected]>
Cc: Lai Jiangshan <[email protected]>
Cc: Scott Mcmillan <[email protected]>
Cc: Steven Rostedt <[email protected]>
Cc: Eric Dumazet <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Frederic Weisbecker <[email protected]>
Diffstat (limited to 'kernel/trace/ring_buffer.c')
0 files changed, 0 insertions, 0 deletions