Re: register_jprobe always fails with -22

Steven Rostedt <[email protected]>
Newsgroups org.kernel.vger.linux-trace-users,org.kernel.vger.linux-trace-devel
Message-ID <[email protected]>
On Thu, 4 Jul 2019 16:03:42 +0700
Naruto Nguyen <[email protected]> wrote:

> Hi everyone,
> 
> I tried to write a sample jprobe as the link
> https://bugzilla.redhat.com/show_bug.cgi?id=1275809 (the sample is
> attached in the link). However the function register_jprobes always
> return -22 or -2. Could you please let me know what these errors means
> and how to fix it?
> 

Note, jprobes have been removed from the kernel. They have been
obsoleted by registering with the function tracer.

See Documentation/trace/ftrace-uses.rst in the kernel source code.

-- Steve
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.