[lkml]   [2014]   [Oct]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] kprobes: add kprobe_is_function_probed()
On Wed, 22 Oct 2014, Masami Hiramatsu wrote:

> > Add a function that allows external users (such as live patching
> > mechanisms) to check whether a given function (identified by symbol name)
> > has a kprobe installed in it.
> Actually, we've already exported the list of kprobes with probe points
> (symbols) via debugfs. Please check /sys/kernel/debug/kprobes/list :)

Yes, I know, and kprobe_is_function_probed() is performing very similar
thing that show_kprobe_addr() is doing.
But we'd like to be able to check this from within a kernel module (the
patch module) and issue WARN().

Otherwise we'll need to have a machinery in userspace before insmod which
will look up the functions in the module and compare them to the
debufs-provided interface.

Also, I don't think we want to be dependent on debugfs being mounted and
discoverable, etc ...

Thanks Masami,

Jiri Kosina

 \ /
  Last update: 2014-10-22 08:41    [W:0.069 / U:1.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site