Open WALL-E opened 7 years ago
dropwatch -l kas
dropwatch
Call trace_consume_skb() instead of trace_kfree_skb() as skbs are removed from the completion_queue during transmit. This avoids false positives from dropwatch/drop_monitor making them more useful.
if (likely(get_kfree_skb_cb(skb)->reason == SKB_REASON_CONSUMED))
trace_consume_skb(skb);
else
trace_kfree_skb(skb, net_tx_action);
也许 perf 也能完成相同的事情,这应该是大概率时间。
安装