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)
commita108f7dcfa010e3da825af90d77ac0a6a0240992
tree620c483c6d3e73da1b2d46ff3cd2d4fd3bfe26aa
parentdba122fb5e122e8e07e2f11cdebc10ba4f425cf7
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