Linux-Trace-Users Archive on lore.kernel.org
 help / color / Atom feed
* register_jprobe always fails with -22
@ 2019-07-04  9:03 Naruto Nguyen
  2019-07-04 12:55 ` Steven Rostedt
  0 siblings, 1 reply; 2+ 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] 2+ 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
  0 siblings, 0 replies; 2+ 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] 2+ messages in thread

end of thread, back to index

Thread overview: 2+ 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

Linux-Trace-Users Archive on lore.kernel.org

Archives are clonable:
	git clone --mirror https://lore.kernel.org/linux-trace-users/0 linux-trace-users/git/0.git

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V2 linux-trace-users linux-trace-users/ https://lore.kernel.org/linux-trace-users \
		linux-trace-users@vger.kernel.org
	public-inbox-index linux-trace-users

Example config snippet for mirrors

Newsgroup available over NNTP:
	nntp://nntp.lore.kernel.org/org.kernel.vger.linux-trace-users


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git