Re: [RFC PATCH v1 1/1] tracing/kprobe: Add multi-probe support for 'perf_kprobe' PMU

From
Francis Laniel <hidden>
Date
2023-08-18 18:14:31
Also in
lkml
Reply to
Steven Rostedt, 2023-08-18
Hi.

Le vendredi 18 août 2023, 17:41:41 CEST Steven Rostedt a écrit :
On Fri, 18 Aug 2023 21:37:05 +0900

Masami Hiramatsu (Google) [off-list ref] wrote:
quoted
That's why perf probe uses the offset from '_text'. Normal KASLR will just
moves all symbols. (Finer one will move all symbols randomely)
This should not need to access /proc/kallsyms but vmlinux or SystemMap.
We could just pass in: "_text+offset" too.
So, the idea would be to change the existing create_local_trace_kprobe() and 
above functions to indicate the user's offset is to be used against _text and 
not address?
-- Steve
Best regards.

Thread (35 messages) 35 messages, 6 authors, last reply 2023-08-23
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help