Files
linux/include/trace/events
Qitao Xu 70713dddf3 net_sched: introduce tracepoint trace_qdisc_enqueue()
Tracepoint trace_qdisc_enqueue() is introduced to trace skb at
the entrance of TC layer on TX side. This is similar to
trace_qdisc_dequeue():

1. For both we only trace successful cases. The failure cases
   can be traced via trace_kfree_skb().

2. They are called at entrance or exit of TC layer, not for each
   ->enqueue() or ->dequeue(). This is intentional, because
   we want to make trace_qdisc_enqueue() symmetric to
   trace_qdisc_dequeue(), which is easier to use.

The return value of qdisc_enqueue() is not interesting here,
we have Qdisc's drop packets in ->dequeue(), it is impossible to
trace them even if we have the return value, the only way to trace
them is tracing kfree_skb().

We only add information we need to trace ring buffer. If any other
information is needed, it is easy to extend it without breaking ABI,
see commit 3dd344ea84 ("net: tracepoint: exposing sk_family in all
tcp:tracepoints").

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>
2021-07-15 10:32:38 -07:00
..
2021-04-23 10:17:27 +01:00
2020-11-30 12:54:01 +00:00
2021-06-29 10:53:52 -07:00
2019-11-08 11:23:37 +01:00
2019-03-27 15:52:01 -03:00
2021-06-29 10:53:52 -07:00
2020-04-22 12:55:54 -07:00
2021-05-12 12:10:23 -07:00
2021-05-31 22:48:24 -04:00
2021-06-29 11:28:21 -07:00
2021-05-14 15:26:03 -07:00
2021-03-23 14:08:18 -04:00