This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
Re: stap parse error
- From: fche at redhat dot com (Frank Ch. Eigler)
- To: "l ss" <suansuan412 at hotmail dot com>
- Cc: systemtap at sources dot redhat dot com
- Date: 29 Aug 2005 09:28:55 -0400
- Subject: Re: stap parse error
- References: <BAY12-F11FAD3530EF2738A7A1704F8AF0@phx.gbl>
"l ss" <suansuan412@hotmail.com> writes:
> [...]
> It builds, and I get some errors during make check.
There are a number of expected failures. Most of them have
intentional errors and thus are marked XFAIL. The buildko/one.stp
test is one of these.
> [root@lss src]# ./stap testsuite/buildko/one.stp
> parse error: expected 'probe', 'global', 'function', or '%{'
> saw: operator '.' at testsuite/buildko/one.stp:3:1
> [...]
If you look at the buildko/one.stp file, you'll see that in fact it is
a /bin/sh shell script, since it needs to pass "-g -p4" to stap. In
general, the .stp files are executable scripts, so you can just run
# .../testsuite/buildko/one.stp
directly.
- FChE