error: 'VM_EXECUTABLE' undeclared (first use in this function)
Steve Dickson
SteveD@redhat.com
Tue Jan 29 15:12:00 GMT 2013
Is this a know problem with systemtap-runtime-2.0-4.fc18.x86_64?
$ sudo stap top-nfscalls.stp
In file included from /usr/share/systemtap/runtime/linux/task_finder.c:17:0,
from /usr/share/systemtap/runtime/linux/runtime.h:169,
from /usr/share/systemtap/runtime/runtime.h:17,
from /tmp/stapa6i3on/stap_ee85c471304cab345a196761554cf7b2_132723_src.c:21:
/usr/share/systemtap/runtime/linux/task_finder2.c: In function '__stp_get_mm_path':
/usr/share/systemtap/runtime/linux/task_finder2.c:441:24: error: 'VM_EXECUTABLE' undeclared (first use in this function)
/usr/share/systemtap/runtime/linux/task_finder2.c:441:24: note: each undeclared identifier is reported only once for each function it appears in
make[1]: *** [/tmp/stapa6i3on/stap_ee85c471304cab345a196761554cf7b2_132723_src.o] Error 1
make: *** [_module_/tmp/stapa6i3on] Error 2
WARNING: kbuild exited with status: 2
Pass 4: compilation failed. Try again with another '--vp 0001' option.
Here is the script I'm running
$ cat top-nfscalls.stp
#!/usr/bin/env stap
global nfscalls
probe begin {
printf("Collecting top NFS procs...\n")
}
probe kernel.function("*@fs/nfs/*.c") ?,
module("nfs").function("*@fs/nfs/*.c") ?
{
nfscalls[probefunc()]++
}
probe end {
printf("Collating data...\n");
foreach (name in nfscalls- limit 20)
printf("%10d %s\n", nfscalls[name], name)
}
The kernel I'm running is a modified kernel-3.8.0-0.rc4.git0.1
tia,
steved.
More information about the Systemtap
mailing list