Re: [PATCH 3/3] tracing/kprobes: Use APIs that matches symbols with .llvm. suffix

2024-07-30 Thread Song Liu
Hi Masami, > On Jul 30, 2024, at 6:04 AM, Masami Hiramatsu wrote: > > On Mon, 29 Jul 2024 17:54:33 -0700 > Song Liu wrote: > >> Use the new kallsyms APIs that matches symbols name with .llvm. >> suffix. This allows userspace tools to get kprobes on the expected >> function name, while the actu

Re: [PATCH 3/3] tracing/kprobes: Use APIs that matches symbols with .llvm. suffix

2024-07-30 Thread Google
On Mon, 29 Jul 2024 17:54:33 -0700 Song Liu wrote: > Use the new kallsyms APIs that matches symbols name with .llvm. > suffix. This allows userspace tools to get kprobes on the expected > function name, while the actual symbol has a .llvm. suffix. > _kprobe_addr@kernel/kprobes.c may also fail w

[PATCH 3/3] tracing/kprobes: Use APIs that matches symbols with .llvm. suffix

2024-07-29 Thread Song Liu
Use the new kallsyms APIs that matches symbols name with .llvm. suffix. This allows userspace tools to get kprobes on the expected function name, while the actual symbol has a .llvm. suffix. This only effects kernel compared with CONFIG_LTO_CLANG. Signed-off-by: Song Liu --- kernel/trace/trace_