]> git.baikalelectronics.ru Git - kernel.git/commit
ftrace: Keep address offset in ftrace_lookup_symbols
authorJiri Olsa <jolsa@kernel.org>
Wed, 15 Jun 2022 11:21:16 +0000 (13:21 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 17 Jun 2022 02:42:21 +0000 (19:42 -0700)
commit8168a6aa3f59a63020ea8a2f2925390f2cf70cc3
treeef36d0d59d4d21ef7766753a03a1688b343b78c0
parent61f0551e5e9e4ec79b6a9d46e48408ce1ee53715
ftrace: Keep address offset in ftrace_lookup_symbols

We want to store the resolved address on the same index as
the symbol string, because that's the user (bpf kprobe link)
code assumption.

Also making sure we don't store duplicates that might be
present in kallsyms.

Acked-by: Song Liu <songliubraving@fb.com>
Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Fixes: bad172f04f5f ("ftrace: Add ftrace_lookup_symbols function")
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20220615112118.497303-3-jolsa@kernel.org
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/trace/ftrace.c