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?


Sorry for the really late reply (6 months!), but this email got lost in
my inbox, and I just noticed it. In case that you are still wondering
about jprobes, they have become obsolete. Registering with the function
tracer is now the way to accomplish this.

 See https://www.kernel.org/doc/Documentation/trace/ftrace-uses.rst

-- 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.