]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit558f14c06698b4d891b8e9d60f0eedd867318d13
tree93b15ceadb74925c45742b98e876fe573f5bd74a
parentbe55cc9b16f96284a6f5e6737ff292eaf9c0e258
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