aboutsummaryrefslogtreecommitdiffstats
path: root/tools/include/uapi/linux
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2022-05-10 14:26:15 +0200
committerAlexei Starovoitov <ast@kernel.org>2022-05-10 14:42:06 -0700
commit0236fec57a15dc2a068dfe4488e0c2ab4559b1ec (patch)
treee8e79d70b7934168f24cff2eb0adfe43ec8aeee2 /tools/include/uapi/linux
parentfprobe: Resolve symbols with ftrace_lookup_symbols (diff)
downloadlinux-dev-0236fec57a15dc2a068dfe4488e0c2ab4559b1ec.tar.xz
linux-dev-0236fec57a15dc2a068dfe4488e0c2ab4559b1ec.zip
bpf: Resolve symbols with ftrace_lookup_symbols for kprobe multi link
Using kallsyms_lookup_names function to speed up symbols lookup in kprobe multi link attachment and replacing with it the current kprobe_multi_resolve_syms function. This speeds up bpftrace kprobe attachment: # perf stat -r 5 -e cycles ./src/bpftrace -e 'kprobe:x* { } i:ms:1 { exit(); }' ... 6.5681 +- 0.0225 seconds time elapsed ( +- 0.34% ) After: # perf stat -r 5 -e cycles ./src/bpftrace -e 'kprobe:x* { } i:ms:1 { exit(); }' ... 0.5661 +- 0.0275 seconds time elapsed ( +- 4.85% ) Acked-by: Andrii Nakryiko <andrii@kernel.org> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Link: https://lore.kernel.org/r/20220510122616.2652285-5-jolsa@kernel.org Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/include/uapi/linux')
0 files changed, 0 insertions, 0 deletions