From: Michael Jeanson Date: Wed, 26 Jan 2022 19:49:11 +0000 (-0500) Subject: fix: net: skb: introduce kfree_skb_reason() (v5.17) X-Git-Tag: v2.12.8~3 X-Git-Url: http://git.liburcu.org/?a=commitdiff_plain;h=2125da0d32f09c3c5b87dd8688c81fed641ac145;hp=2125da0d32f09c3c5b87dd8688c81fed641ac145;p=lttng-modules.git fix: net: skb: introduce kfree_skb_reason() (v5.17) See upstream commit : commit c504e5c2f9648a1e5c2be01e8c3f59d394192bd3 Author: Menglong Dong Date: Sun Jan 9 14:36:26 2022 +0800 net: skb: introduce kfree_skb_reason() Introduce the interface kfree_skb_reason(), which is able to pass the reason why the skb is dropped to 'kfree_skb' tracepoint. Add the 'reason' field to 'trace_kfree_skb', therefor user can get more detail information about abnormal skb with 'drop_monitor' or eBPF. All drop reasons are defined in the enum 'skb_drop_reason', and they will be print as string in 'kfree_skb' tracepoint in format of 'reason: XXX'. ( Maybe the reasons should be defined in a uapi header file, so that user space can use them? ) Change-Id: I6766678a288da959498a4736fc3f95bf239c3e94 Signed-off-by: Michael Jeanson Signed-off-by: Mathieu Desnoyers ---