]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Add trampolines to kallsyms
authorJiri Olsa <jolsa@kernel.org>
Thu, 12 Mar 2020 19:56:05 +0000 (20:56 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 13 Mar 2020 19:49:52 +0000 (12:49 -0700)
commitac7179e1c8a7ad815395697ca3e6942ca5c45c39
tree620c483c6d3e73da1b2d46ff3cd2d4fd3bfe26aa
parent48a9f854f35276e19a6de55cd6cf2ea555b4d886
bpf: Add trampolines to kallsyms

Adding trampolines to kallsyms. It's displayed as
  bpf_trampoline_<ID> [bpf]

where ID is the BTF id of the trampoline function.

Adding bpf_image_ksym_add/del functions that setup
the start/end values and call KSYMBOL perf events
handlers.

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