Skip to content
Commit eb1b2985 authored by Jiri Olsa's avatar Jiri Olsa Committed by Alexei Starovoitov
Browse files

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: default avatarSong Liu <songliubraving@fb.com>
Acked-by: default avatarSteven Rostedt (Google) <rostedt@goodmis.org>
Fixes: bed0d9a5

 ("ftrace: Add ftrace_lookup_symbols function")
Signed-off-by: default avatarJiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/r/20220615112118.497303-3-jolsa@kernel.org
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent ad884853
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment