linux-uconsole/tools/include/uapi/linux
Alexei Starovoitov 48cca7e44f libbpf: add support for bpf_call
- recognize relocation emitted by llvm
- since all regular function will be kept in .text section and llvm
  takes care of pc-relative offsets in bpf_call instruction
  simply copy all of .text to relevant program section while adjusting
  bpf_call instructions in program section to point to newly copied
  body of instructions from .text
- do so for all programs in the elf file
- set all programs types to the one passed to bpf_prog_load()

Note for elf files with multiple programs that use different
functions in .text section we need to do 'linker' style logic.
This work is still TBD

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
2017-12-17 20:34:35 +01:00
..
bpf.h libbpf: add support for bpf_call 2017-12-17 20:34:35 +01:00
bpf_common.h tools/headers: Synchronize kernel ABI headers 2017-11-04 09:27:46 +01:00
bpf_perf_event.h selftests/bpf: fix broken build 2017-03-12 23:48:41 -07:00
fcntl.h tools/headers: Synchronize kernel ABI headers 2017-11-04 09:27:46 +01:00
hw_breakpoint.h tools/headers: Synchronize kernel ABI headers 2017-11-04 09:27:46 +01:00
kcmp.h tools include uapi: Grab a copy of linux/kcmp.h 2017-10-31 16:17:03 -03:00
kvm.h tools/headers: Synchronize kernel ABI headers 2017-11-04 09:27:46 +01:00
mman.h tools/headers: Synchronize kernel ABI headers 2017-11-04 09:27:46 +01:00
perf_event.h bpf/tracing: add a bpf test for new ioctl query interface 2017-12-12 08:46:40 -08:00
prctl.h tools include uapi: Grab a copy of linux/prctl.h 2017-10-27 09:10:10 -03:00
sched.h tools/headers: Synchronize kernel ABI headers 2017-11-04 09:27:46 +01:00
stat.h tools/headers: Synchronize kernel ABI headers 2017-11-04 09:27:46 +01:00
vhost.h tools/headers: Synchronize kernel ABI headers 2017-11-04 09:27:46 +01:00