]> 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)
commit30aeb0ba8667fedec50e405dcfa011cb85f18aae
tree620c483c6d3e73da1b2d46ff3cd2d4fd3bfe26aa
parentcf175c471a52bf4ac594f084f98c7e83d271f0bc
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