This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/17966] New: @defined always returns true in return probes
- From: "aram.h at mgk dot ro" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Thu, 12 Feb 2015 21:32:46 +0000
- Subject: [Bug translator/17966] New: @defined always returns true in return probes
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=17966
Bug ID: 17966
Summary: @defined always returns true in return probes
Product: systemtap
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: translator
Assignee: systemtap at sourceware dot org
Reporter: aram.h at mgk dot ro
CC: jistone at redhat dot com
@defined can't be used in return probes because it always returns 1.
stap -e 'probe process("bash").function("*").return {r0 = @defined($_r0) ? $_r0
: 0; printf ("r0: %d\n", r0); exit ()}'
WARNING: function _start return probe is blacklisted: keyword at <input>:1:1
source: probe process("bash").function("*").return {r0 = @defined($_r0) ? $_r0
: 0; printf ("r0: %d\n", r0); exit ()}
^
semantic error: unresolved target-symbol expression: identifier '$_r0' at :1:67
source: probe process("bash").function("*").return {r0 = @defined($_r0)
? $_r0 : 0; printf ("r0: %d\n", r0); exit ()}
^
Pass 2: analysis failed. [man error::pass2]
: xgene:tmp;
--
You are receiving this mail because:
You are the assignee for the bug.