This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/10025] New: Problem with conditional preprocessing
- From: "eteo at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 2 Apr 2009 15:17:23 -0000
- Subject: [Bug translator/10025] New: Problem with conditional preprocessing
- Reply-to: sourceware-bugzilla at sourceware dot org
I tried to do this in my script:
13 %( $# != 2 %?
14
15 probe begin {
16 printf("usage:\n\tstap errsnoop.stp sec limit\n")
17 exit()
18 }
19
20 %:
21
22 global error, trace
23
24 probe syscall.* {
25 trace[tid()] = argstr
26 }
[...]
and it gave me the following error:
$ stap ~/errsnoop.stp 1 25
parse error: expected identifier or '*'
saw: operator '*' at /home/test/errsnoop.stp:24:15
source: probe syscall.* {
^
[...]
It looks like having wildcards in the false-token would trigger a parse error
even though it is expecting either a wildcard (or an identifier).
$ stap -V
SystemTap translator/driver (version 0.9.5/0.140 commit dcfd7fed + changes)
Copyright (C) 2005-2009 Red Hat, Inc. and others
This is free software; see the source for copying conditions.
--
Summary: Problem with conditional preprocessing
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: eteo at redhat dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=10025
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.