This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: vfs tapset compilation error.
- From: William Cohen <wcohen at redhat dot com>
- To: quantera at gmail dot com
- Cc: systemtap at sources dot redhat dot com
- Date: Mon, 24 Jan 2011 17:05:17 -0500
- Subject: Re: vfs tapset compilation error.
- References: <1a0qj65m8o7gqu04vknajr52do6bc68og6@4ax.com>
On 01/23/2011 11:39 PM, Daniel Fishman wrote:
>
> Hello,
>
> When trying to execute the following:
>
> stap -v -e 'probe vfs.read {printf("read performed\n"); exit()}'
>
> compilation fails:
>
> Pass 1: parsed user script and 144 library script(s) using 91224virt/39148res/2120shr kb, in 290usr/20sys/316real ms.
> WARNING: cross-file global variable reference to identifier '__devnames' at /usr/share//systemtap/tapset/vfs.stp:20:8 from: identifier '__devnames' at /usr/share/systemtap/tapset/vfs.stp:23:13
> source: if (dev in __devnames)
> ^
> semantic error: unresolved type : identifier '__devnames' at /usr/share//systemtap/tapset/vfs.stp:20:8
> source: global __devnames
> ^
> Pass 2: analyzed script: 2 probe(s), 23 function(s), 3 embed(s), 1 global(s) using 323644virt/145452res/6872shr kb, in 1750usr/220sys/1971real ms.
> Pass 2: analysis failed. Try again with another '--vp 01' option.
>
>
> Why __devnames's type cannot be resolved?
>
> Thanks,
> Daniel.
>
Hi Daniel,
This has worked on a number of machines I have tried it on; I am not sure what the problem is. Could you give a bit more information about the environment you are running systemtap in? The following wiki page list the pieces of information that would be useful in describing the context:
http://sourceware.org/systemtap/wiki/HowToReportBugs
-Will