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]

error: 'VM_EXECUTABLE' undeclared (first use in this function)


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.


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