* Trouble with installation of systemTap on linux-image-3.19.0-25-generic
@ 2016-09-09 2:05 FOPA Leon constantin
2016-09-09 16:48 ` David Smith
0 siblings, 1 reply; 2+ messages in thread
From: FOPA Leon constantin @ 2016-09-09 2:05 UTC (permalink / raw)
To: Systemtap
Hi,
After successfully install systemtap3.0 (./configure; make; make
install)
on a linux-image-3.19.0.25-generic (with its debug kernel image), I try
to test if everything gone fine. However running the following
helo-world command neither return and error nor the expected result
sudo stap -e 'probe kernel.function("sys_open") {log("hello world")
exit()}'
Instead, It return a warning
WARNING: probe
kernel.function("SyS_open@/build/linux-OdodyZ/linux-3.19.0/fs/open.c:1028")
(address 0xffffffff811f3e80) registration error (rc -84)
I Can not tell if everything is fine or not, since I was expected the
"Hello world" message, which never appear.
What is happening here and Is there a way out from this ?
Best regards,
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Trouble with installation of systemTap on linux-image-3.19.0-25-generic
2016-09-09 2:05 Trouble with installation of systemTap on linux-image-3.19.0-25-generic FOPA Leon constantin
@ 2016-09-09 16:48 ` David Smith
0 siblings, 0 replies; 2+ messages in thread
From: David Smith @ 2016-09-09 16:48 UTC (permalink / raw)
To: FOPA Leon constantin, Systemtap
On 09/08/2016 09:05 PM, FOPA Leon constantin wrote:
> Hi,
>
> After successfully install systemtap3.0 (./configure; make; make install)
> on a linux-image-3.19.0.25-generic (with its debug kernel image), I try
> to test if everything gone fine. However running the following
> helo-world command neither return and error nor the expected result
>
> sudo stap -e 'probe kernel.function("sys_open") {log("hello world")
> exit()}'
>
> Instead, It return a warning
>
> WARNING: probe
> kernel.function("SyS_open@/build/linux-OdodyZ/linux-3.19.0/fs/open.c:1028")
> (address 0xffffffff811f3e80) registration error (rc -84)
>
> I Can not tell if everything is fine or not, since I was expected the
> "Hello world" message, which never appear.
>
> What is happening here and Is there a way out from this ?
Error 84 is EILSEQ - 'Illegal byte sequence'. That's an error that the
kernel is giving systemtap when trying to put the probe at the address
systemtap calculated.
What architecture are you on? What kprobes flags do you have on in your
kernel? In my fedora kernel, I see the following:
CONFIG_KPROBES=y
CONFIG_KPROBES_ON_FTRACE=y
CONFIG_HAVE_KPROBES=y
CONFIG_HAVE_KPROBES_ON_FTRACE=y
CONFIG_KPROBE_EVENT=y
# CONFIG_KPROBES_SANITY_TEST is not set
Here's a couple more things to try. First, let's try the simplest
possible script:
# stap -e 'probe begin { log("hello world"); exit() }'
Let's try your script, but use dwarfless-kprobes:
# stap -e 'probe kprobe.function("sys_open") { log("hello world"); exit() }'
--
David Smith
dsmith@redhat.com
Red Hat
http://www.redhat.com
256.217.0141 (direct)
256.837.0057 (fax)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-09 16:48 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-09-09 2:05 Trouble with installation of systemTap on linux-image-3.19.0-25-generic FOPA Leon constantin
2016-09-09 16:48 ` David Smith
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 read-only IMAP folder(s) and NNTP newsgroup(s).