]> git.baikalelectronics.ru Git - kernel.git/commit
libbpf: Add probe for large INSN limit
authorMichal Rostecki <mrostecki@opensuse.org>
Wed, 8 Jan 2020 16:23:52 +0000 (17:23 +0100)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 8 Jan 2020 18:31:35 +0000 (19:31 +0100)
commit9eca88207c431927fb520851aa5bc4dc273dec8e
tree16c2c9c645d2acc8f0a4d52c6e54619db7a799d7
parent708b0e9cd4d54eb4b65d5253b384f072c83b04ef
libbpf: Add probe for large INSN limit

Introduce a new probe which checks whether kernel has large maximum
program size which was increased in the following commit:

1d4532d60599 ("bpf: increase complexity limit and maximum program size")

Based on the similar check in Cilium[0], authored by Daniel Borkmann.

  [0] https://github.com/cilium/cilium/commit/657d0f585afd26232cfa5d4e70b6f64d2ea91596

Co-authored-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Michal Rostecki <mrostecki@opensuse.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Link: https://lore.kernel.org/bpf/20200108162428.25014-2-mrostecki@opensuse.org
tools/lib/bpf/libbpf.h
tools/lib/bpf/libbpf.map
tools/lib/bpf/libbpf_probes.c