aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/api/debug-internal.h
diff options
context:
space:
mode:
authorMauricio Vásquez <[email protected]>2022-02-07 14:50:51 +0000
committerAndrii Nakryiko <[email protected]>2022-02-07 20:12:22 +0000
commitda7af0aa20f8ad89f09d50d262e44cd5eafab816 (patch)
treed5b193dcb48ee5a22d32d70842963e0b2e5bd8ef /tools/lib/api/debug-internal.h
parentlibbpf: Remove mode check in libbpf_set_strict_mode() (diff)
downloadkernel-da7af0aa20f8ad89f09d50d262e44cd5eafab816.tar.gz
kernel-da7af0aa20f8ad89f09d50d262e44cd5eafab816.zip
bpftool: Fix strict mode calculation
"(__LIBBPF_STRICT_LAST - 1) & ~LIBBPF_STRICT_MAP_DEFINITIONS" is wrong as it is equal to 0 (LIBBPF_STRICT_NONE). Let's use "LIBBPF_STRICT_ALL & ~LIBBPF_STRICT_MAP_DEFINITIONS" now that the previous commit makes it possible in libbpf. Fixes: 93b8952d223a ("libbpf: deprecate legacy BPF map definitions") Signed-off-by: Mauricio Vásquez <[email protected]> Signed-off-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/api/debug-internal.h')
0 files changed, 0 insertions, 0 deletions