Thread (37 messages) 37 messages, 8 authors, 2024-08-09

Re: [PATCH v2 3/3] tracing/kprobes: Use APIs that matches symbols without .XXX suffix

From: Song Liu <hidden>
Date: 2024-08-07 20:40:38
Also in: live-patching, lkml

On Aug 7, 2024, at 1:08 PM, Steven Rostedt [off-list ref] wrote:

On Wed, 7 Aug 2024 19:41:11 +0000
Song Liu [off-list ref] wrote:

quoted
It appears there are multiple APIs that may need change. For example, on gcc
built kernel, /sys/kernel/tracing/available_filter_functions does not show 
the suffix: 

 [root@(none)]# grep cmos_irq_enable /proc/kallsyms
 ffffffff81db5470 t __pfx_cmos_irq_enable.constprop.0
 ffffffff81db5480 t cmos_irq_enable.constprop.0
 ffffffff822dec6e t cmos_irq_enable.constprop.0.cold

 [root@(none)]# grep cmos_irq_enable /sys/kernel/tracing/available_filter_functions
 cmos_irq_enable
Strange, I don't see that:

 ~# grep cmos_irq_enable /proc/kallsyms 
 ffffffff8f4b2500 t __pfx_cmos_irq_enable.constprop.0
 ffffffff8f4b2510 t cmos_irq_enable.constprop.0

 ~# grep cmos_irq_enable /sys/kernel/tracing/available_filter_functions
 cmos_irq_enable.constprop.0
Ah, this is caused by my change. Let me fix that in the next version. 

Thanks,
Song

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help