diff options
author | Menglong Dong <imagedong@tencent.com> | 2022-02-09 14:08:38 +0800 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-02-09 17:25:57 -0800 |
commit | 5cad527d5ffa9a1c4731bb9c97d2ee93f8960d50 (patch) | |
tree | 717ff6666dd2d40c0153ac9dbb97fcdfaa4cac89 /tools/testing/selftests/bpf/trace_helpers.c | |
parent | 1710b52d7c135e83ee00ed38afacc1079cbe71f5 (diff) | |
download | linux-5cad527d5ffa9a1c4731bb9c97d2ee93f8960d50.tar.bz2 |
net: drop_monitor: support drop reason
In the commit c504e5c2f964 ("net: skb: introduce kfree_skb_reason()")
drop reason is introduced to the tracepoint of kfree_skb. Therefore,
drop_monitor is able to report the drop reason to users by netlink.
The drop reasons are reported as string to users, which is exactly
the same as what we do when reporting it to ftrace.
Signed-off-by: Menglong Dong <imagedong@tencent.com>
Reviewed-by: Ido Schimmel <idosch@nvidia.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20220209060838.55513-1-imagedong@tencent.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/trace_helpers.c')
0 files changed, 0 insertions, 0 deletions