OSDN Git Service

bpf: Support BPF_MAP_TYPE_SK_STORAGE in bpf map probing
authorMartin KaFai Lau <kafai@fb.com>
Fri, 26 Apr 2019 23:39:44 +0000 (16:39 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 27 Apr 2019 16:07:05 +0000 (09:07 -0700)
commita19f89f3667c950ad13c1560e4abd8aa8526b6b1
treee4c776cef6196ebc9599dc4939529453ff028bba
parent948d930e3d531e81dc6a2c864bda25618dfe7ff0
bpf: Support BPF_MAP_TYPE_SK_STORAGE in bpf map probing

This patch supports probing for the new BPF_MAP_TYPE_SK_STORAGE.
BPF_MAP_TYPE_SK_STORAGE enforces BTF usage, so the new probe
requires to create and load a BTF also.

Signed-off-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/bpf/bpftool/map.c
tools/lib/bpf/libbpf_probes.c