2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-26 14:14:01 +08:00
linux-next/samples/bpf
Daniel Borkmann f1a66f85b7 ebpf: export BPF_PSEUDO_MAP_FD to uapi
We need to export BPF_PSEUDO_MAP_FD to user space, as it's used in the
ELF BPF loader where instructions are being loaded that need map fixups.

An initial stage loads all maps into the kernel, and later on replaces
related instructions in the eBPF blob with BPF_PSEUDO_MAP_FD as source
register and the actual fd as immediate value.

The kernel verifier recognizes this keyword and replaces the map fd with
a real pointer internally.

Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Alexei Starovoitov <ast@plumgrid.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-03-01 14:05:19 -05:00
..
bpf_helpers.h samples: bpf: elf_bpf file loader 2014-12-05 21:47:33 -08:00
bpf_load.c samples: bpf: elf_bpf file loader 2014-12-05 21:47:33 -08:00
bpf_load.h samples: bpf: elf_bpf file loader 2014-12-05 21:47:33 -08:00
libbpf.c samples: bpf: example of stateful socket filtering 2014-12-05 21:47:32 -08:00
libbpf.h ebpf: export BPF_PSEUDO_MAP_FD to uapi 2015-03-01 14:05:19 -05:00
Makefile samples: bpf: large eBPF program in C 2014-12-05 21:47:34 -08:00
sock_example.c samples: bpf: example of stateful socket filtering 2014-12-05 21:47:32 -08:00
sockex1_kern.c samples: bpf: trivial eBPF program in C 2014-12-05 21:47:33 -08:00
sockex1_user.c samples: bpf: trivial eBPF program in C 2014-12-05 21:47:33 -08:00
sockex2_kern.c samples: bpf: large eBPF program in C 2014-12-05 21:47:34 -08:00
sockex2_user.c samples: bpf: large eBPF program in C 2014-12-05 21:47:34 -08:00
test_maps.c samples: bpf: relax test_maps check 2015-01-26 17:20:40 -08:00
test_verifier.c ebpf: remove kernel test stubs 2015-03-01 14:05:18 -05:00