]> git.lttng.org Git - lttng-modules.git/commit
fix: net: skb: introduce kfree_skb_reason() (v5.17)
authorMichael Jeanson <mjeanson@efficios.com>
Wed, 26 Jan 2022 19:49:11 +0000 (14:49 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 28 Jan 2022 16:33:22 +0000 (11:33 -0500)
commit2125da0d32f09c3c5b87dd8688c81fed641ac145
tree64242868bc1eb7459c98deb583ec6f3525da4fcd
parentdb812f0000b95d112155e3f77a6cc458b7994c18
fix: net: skb: introduce kfree_skb_reason() (v5.17)

See upstream commit :

  commit c504e5c2f9648a1e5c2be01e8c3f59d394192bd3
  Author: Menglong Dong <imagedong@tencent.com>
  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 <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/skb.h
This page took 0.032448 seconds and 4 git commands to generate.