[Bug translator/13009] Allow @defined($foo) in probe predicates

fche at redhat dot com sourceware-bugzilla@sourceware.org
Wed Jul 20 22:31:00 GMT 2011


http://sourceware.org/bugzilla/show_bug.cgi?id=13009

Frank Ch. Eigler <fche at redhat dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |fche at redhat dot com

--- Comment #1 from Frank Ch. Eigler <fche at redhat dot com> 2011-07-20 22:30:40 UTC ---
"But this gives "semantic error: unexpected @defined". "

That's odd - the code should accept pretty general expressions.

"Once @defined is allowed in the predicate, we can further optimize that
predicate == 0 throws the whole body away"

Sure, or delete the probe directly.

"and probes with empty bodies are discarded entirely."

That's bug #11353.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the Systemtap mailing list