Re: kprobe on local function

From: Steven Rostedt
Date: Wed Jan 22 2025 - 21:48:20 EST


On Thu, 23 Jan 2025 03:42:24 +0100
Nam Cao <namcao@xxxxxxxxxxxxx> wrote:

> So a similar solution for in-kernel code is kallsyms_on_each_match_symbol().
> But I expect register_kretprobe() to do that by itself; or at least report
> a failure if caller specifies the symbol name, but multiple symbols of the
> same name are found. Because at least to me, my code "looks correct and
> should work" but it doesn't.

I guess that could be an enhancement to the code.

Masami?

-- Steve