* register_jprobe always fails with -22
@ 2019-07-04 9:03 Naruto Nguyen
2019-07-04 12:55 ` Steven Rostedt
2020-01-07 3:41 ` Steven Rostedt
0 siblings, 2 replies; 4+ messages in thread
From: Naruto Nguyen @ 2019-07-04 9:03 UTC (permalink / raw)
To: linux-trace-devel, linux-trace-users
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?
Thanks,
Brs,
Naruto
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: register_jprobe always fails with -22
2019-07-04 9:03 register_jprobe always fails with -22 Naruto Nguyen
@ 2019-07-04 12:55 ` Steven Rostedt
2020-01-07 3:41 ` Steven Rostedt
1 sibling, 0 replies; 4+ messages in thread
From: Steven Rostedt @ 2019-07-04 12:55 UTC (permalink / raw)
To: Naruto Nguyen; +Cc: linux-trace-devel, linux-trace-users
On Thu, 4 Jul 2019 16:03:42 +0700
Naruto Nguyen <narutonguyen2018@gmail.com> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: register_jprobe always fails with -22
2019-07-04 9:03 register_jprobe always fails with -22 Naruto Nguyen
2019-07-04 12:55 ` Steven Rostedt
@ 2020-01-07 3:41 ` Steven Rostedt
2020-01-07 3:50 ` Steven Rostedt
1 sibling, 1 reply; 4+ messages in thread
From: Steven Rostedt @ 2020-01-07 3:41 UTC (permalink / raw)
To: Naruto Nguyen; +Cc: linux-trace-devel, linux-trace-users
On Thu, 4 Jul 2019 16:03:42 +0700
Naruto Nguyen <narutonguyen2018@gmail.com> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2020-01-07 3:50 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-07-04 9:03 register_jprobe always fails with -22 Naruto Nguyen
2019-07-04 12:55 ` Steven Rostedt
2020-01-07 3:41 ` Steven Rostedt
2020-01-07 3:50 ` Steven Rostedt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).