TencentOS-kernel/kernel/bpf
Andrey Ignatov 52eea30342 bpf: Set map_btf_{name, id} for all map types
[upstream commit 2872e9ac33a4440173418147351ed4f93177e763]

Set map_btf_name and map_btf_id for all map types so that map fields can
be accessed by bpf programs.

Signed-off-by: Andrey Ignatov <rdna@fb.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Link: https://lore.kernel.org/bpf/a825f808f22af52b018dbe82f1c7d29dab5fc978.1592600985.git.rdna@fb.com
2022-08-30 11:33:27 +08:00
..
Makefile bpf: Add task and task/file iterator targets 2022-08-30 11:33:25 +08:00
arraymap.c bpf: Set map_btf_{name, id} for all map types 2022-08-30 11:33:27 +08:00
bpf_iter.c bpf: Enable bpf_iter targets registering ctx argument types 2022-08-30 11:33:25 +08:00
bpf_lru_list.c bpf_lru_list: Read double-checked variable once without lock 2021-04-12 12:52:15 +08:00
bpf_lru_list.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
bpf_lsm.c bpf: lsm: Implement attach, detach and execution 2022-08-30 11:33:21 +08:00
bpf_struct_ops.c bpf: Set map_btf_{name, id} for all map types 2022-08-30 11:33:27 +08:00
bpf_struct_ops_types.h bpf: tcp: Support tcp_congestion_ops in bpf 2022-08-30 11:33:19 +08:00
btf.c bpf: Support access to bpf map fields 2022-08-30 11:33:27 +08:00
cgroup.c bpf, cgroup: Return ENOLINK for auto-detached links on update 2022-08-30 11:33:23 +08:00
core.c bpf: Implement CAP_BPF 2022-08-30 11:33:26 +08:00
cpumap.c bpf: Set map_btf_{name, id} for all map types 2022-08-30 11:33:27 +08:00
devmap.c bpf: Set map_btf_{name, id} for all map types 2022-08-30 11:33:27 +08:00
disasm.c bpf: Introduce BPF nospec instruction for mitigating Spectre v4 2022-08-30 11:33:16 +08:00
disasm.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
dispatcher.c bpf: Introduce BPF dispatcher 2022-08-30 11:33:19 +08:00
hashtab.c bpf: Set map_btf_{name, id} for all map types 2022-08-30 11:33:27 +08:00
helpers.c bpf: Fix helper bpf_map_peek_elem_proto pointing to wrong callback 2021-03-16 16:44:00 +08:00
inode.c bpf: Create file bpf iterator 2022-08-30 11:33:25 +08:00
local_storage.c bpf: Set map_btf_{name, id} for all map types 2022-08-30 11:33:27 +08:00
lpm_trie.c bpf: Set map_btf_{name, id} for all map types 2022-08-30 11:33:27 +08:00
map_in_map.c bpf: Implement CAP_BPF 2022-08-30 11:33:26 +08:00
map_in_map.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
map_iter.c bpf: Enable bpf_iter targets registering ctx argument types 2022-08-30 11:33:25 +08:00
net_namespace.c inet: Run SK_LOOKUP BPF program on socket lookup 2022-08-30 11:33:24 +08:00
offload.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
percpu_freelist.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
percpu_freelist.h Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
queue_stack_maps.c bpf: Set map_btf_{name, id} for all map types 2022-08-30 11:33:27 +08:00
reuseport_array.c bpf: Set map_btf_{name, id} for all map types 2022-08-30 11:33:27 +08:00
stackmap.c bpf: Set map_btf_{name, id} for all map types 2022-08-30 11:33:27 +08:00
syscall.c bpf: Implement CAP_BPF 2022-08-30 11:33:26 +08:00
sysfs_btf.c bpf: Fix sysfs export of empty BTF section 2021-03-16 16:37:55 +08:00
task_iter.c bpf: Enable bpf_iter targets registering ctx argument types 2022-08-30 11:33:25 +08:00
tnum.c Init Repo base on linux 5.4.32 long term, and add base tlinux kernel interfaces. 2021-03-16 11:01:34 +08:00
trampoline.c bpf: lsm: Implement attach, detach and execution 2022-08-30 11:33:21 +08:00
verifier.c bpf: Support access to bpf map fields 2022-08-30 11:33:27 +08:00
xskmap.c bpf: Set map_btf_{name, id} for all map types 2022-08-30 11:33:27 +08:00