This is the mail archive of the systemtap@sourceware.org mailing list for the systemtap project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug translator/17966] New: @defined always returns true in return probes


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]