bpf: Allow to resolve bpf trampoline and dispatcher in unwind
authorJiri Olsa <jolsa@kernel.org>
Thu, 23 Jan 2020 16:15:07 +0000 (17:15 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Sat, 25 Jan 2020 15:12:40 +0000 (07:12 -0800)
commite9b4e606c2289d6610113253922bb8c9ac7f68b0
tree93b15ceadb74925c45742b98e876fe573f5bd74a
parent84ad7a7ab69f112c0c4b878c9be91b950a1fb1f8
bpf: Allow to resolve bpf trampoline and dispatcher in unwind

When unwinding the stack we need to identify each address
to successfully continue. Adding latch tree to keep trampolines
for quick lookup during the unwind.

The patch uses first 48 bytes for latch tree node, leaving 4048
bytes from the rest of the page for trampoline or dispatcher
generated code.

It's still enough not to affect trampoline and dispatcher progs
maximum counts.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200123161508.915203-3-jolsa@kernel.org
include/linux/bpf.h
kernel/bpf/dispatcher.c
kernel/bpf/trampoline.c
kernel/extable.c