On Wed, Feb 26, 2020 at 5:06 AM Jiri Olsa <jolsa@xxxxxxxxxx> wrote: > > Synthesize bpf images (trampolines/dispatchers) on start, > as ksymbol events from /proc/kallsyms. Having this perf > can recognize samples from those images and perf report > and top shows them correctly. > > The rest of the ksymbol handling is already in place from > for the bpf programs monitoring, so only the initial state > was needed. > > perf report output: > > # Overhead Command Shared Object Symbol > > 12.37% test_progs [kernel.vmlinux] [k] entry_SYSCALL_64 > 11.80% test_progs [kernel.vmlinux] [k] syscall_return_via_sysret > 9.63% test_progs bpf_prog_bcf7977d3b93787c_prog2 [k] bpf_prog_bcf7977d3b93787c_prog2 > 6.90% test_progs bpf_trampoline_24456 [k] bpf_trampoline_24456 > 6.36% test_progs [kernel.vmlinux] [k] memcpy_erms > > Signed-off-by: Jiri Olsa <jolsa@xxxxxxxxxx> Acked-by: Song Liu <songliubraving@xxxxxx>