]> 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)
commite4ccac2ac5b28ec6e94fce499b6c888e88d245fd
tree93b15ceadb74925c45742b98e876fe573f5bd74a
parent309450737f37847b982e84d40521226aba87468c
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