This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: syscall.open


Marcin Krol wrote:

Hello everyone,

Anybody knows why this tutorial example can't run?

probe syscall.open
{
 printf ("%s(%d) open (%s)\n", execname(), pid(), argstr)
}
probe timer.ms(4000) # after 4 seconds
{
 exit ()
}


I took care to include following flags in kernel .config:


CONFIG_KPROBES=y
CONFIG_DEBUG_INFO=y
CONFIG_RELAY=y
CONFIG_DEBUG_FS=y

CONFIG_DEBUG_KERNEL=y

I get this error:

% stap strace-open.stp
semantic error: libdwfl failure (missing kernel debuginfo): No such file or directory while resolving probe


Regarding self-built kernel, vmlinux need to be placed on the locations systemtap can find. From src/README

- Systemtap looks for the debug info in these locations:
 /boot/vmlinux-`uname -r`
 /usr/lib/debug/lib/modules/`uname -r`/vmlinux
 /lib/modules/`uname -r`/vmlinux

Regards,
Wenji



Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]