public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/11858] New: Confusing error message with get_kretprobe_long
@ 2010-07-30 13:07 mjw at redhat dot com
  2010-07-30 13:18 ` [Bug translator/11858] " fche at redhat dot com
  2010-07-30 16:27 ` jistone at redhat dot com
  0 siblings, 2 replies; 3+ messages in thread
From: mjw at redhat dot com @ 2010-07-30 13:07 UTC (permalink / raw)
  To: systemtap

The following is a bit of a weird way to tell me $filename is a pointer to a string:

$ stap -e 'probe syscall.open.return { log("opened: " . $filename); }'
semantic error: type mismatch (long vs. string): identifier
'_get_kretprobe_long' at
/usr/local/install/systemtap/share/systemtap/tapset/kretprobe.stp:30:10
        source: function _get_kretprobe_long:long(i:long) %{ /* pure */
                         ^
Pass 2: analysis failed.  Try again with another '--vp 01' option.

Obviously I should have used user_string($filename) here. It is harder to spot
what the real error is in a larger return probe handler which has multiple
string contexts.

-- 
           Summary: Confusing error message with get_kretprobe_long
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: mjw at redhat dot com


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-05-28 19:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <bug-11858-6586@http.sourceware.org/bugzilla/>
2019-05-28 19:03 ` [Bug translator/11858] Confusing error message with get_kretprobe_long fche at redhat dot com
2010-07-30 13:07 [Bug translator/11858] New: " mjw at redhat dot com
2010-07-30 13:18 ` [Bug translator/11858] " fche at redhat dot com
2010-07-30 16:27 ` jistone at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).