samples, bpf: Refactor kprobe, tail call kern progs map definition
authorDaniel T. Lee <danieltimlee@gmail.com>
Sat, 16 May 2020 04:06:08 +0000 (13:06 +0900)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 19 May 2020 15:13:03 +0000 (17:13 +0200)
commit59929cd1fec508a48ea2a04d8f2e4fdef907a2cd
tree2daef9645a717e2ad5ac0dbdfc89e92cd0738adf
parent14846dda634e28cc0430f1fbbfa6c758a2e5f873
samples, bpf: Refactor kprobe, tail call kern progs map definition

Because the previous two commit replaced the bpf_load implementation of
the user program with libbpf, the corresponding kernel program's MAP
definition can be replaced with new BTF-defined map syntax.

This commit only updates the samples which uses libbpf API for loading
bpf program not with bpf_load.

Signed-off-by: Daniel T. Lee <danieltimlee@gmail.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/bpf/20200516040608.1377876-6-danieltimlee@gmail.com
samples/bpf/sampleip_kern.c
samples/bpf/sockex3_kern.c
samples/bpf/trace_event_kern.c
samples/bpf/tracex2_kern.c
samples/bpf/tracex3_kern.c
samples/bpf/tracex4_kern.c
samples/bpf/tracex5_kern.c
samples/bpf/tracex6_kern.c