Linux Trace Kernel
 help / color / mirror / Atom feed
* kprobe on local function
@ 2025-01-22  7:59 Nam Cao
  2025-01-22 22:29 ` Steven Rostedt
  0 siblings, 1 reply; 7+ messages in thread
From: Nam Cao @ 2025-01-22  7:59 UTC (permalink / raw)
  To: naveen, anil.s.keshavamurthy, davem, mhiramat, linux-kernel,
	linux-trace-kernel
  Cc: john.ogness

Hi,

I installed a kretprobe on the function "rt_mutex_slowunlock". Although the
function is called, the probe is never hit.

The reason is because there are 3 copies of rt_mutex_slowunlock() in
vmlinux (at least for x86 defconfig + CONFIG_PREEMPT_RT). But probe point
is only installed in 1 copy.

Is this considered a bug? Or is kprobe not intended to be used for local
function? Should we modify kprobe to support such cases?

Best regards,
Nam

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-01-29  6:41 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-22  7:59 kprobe on local function Nam Cao
2025-01-22 22:29 ` Steven Rostedt
2025-01-23  1:48   ` Masami Hiramatsu
2025-01-23  2:42     ` Nam Cao
2025-01-23  2:48       ` Steven Rostedt
2025-01-24 16:16       ` Masami Hiramatsu
2025-01-29  6:41         ` Nam Cao

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox