This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/21173] odd translator behavior with overloaded functions
- From: "dsmith at redhat dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sourceware dot org
- Date: Mon, 20 Feb 2017 21:16:41 +0000
- Subject: [Bug translator/21173] odd translator behavior with overloaded functions
- Auto-submitted: auto-generated
- References: <bug-21173-6586@http.sourceware.org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=21173
--- Comment #3 from David Smith <dsmith at redhat dot com> ---
It looks like an overloaded function doesn't have to be involved, just a
function call with the right number of arguments but the wrong types:
====
# cat ../src/test.stp
#function foo:long(a:long, b:long)
#{
# return (a + b)
#}
function foo:string(a:long, b:string, c:long)
{
return sprintf("%s %d", b, a + c)
}
probe begin
{
println(__inode_vfsmount(1))
println(foo(1, 2, 3))
}
# stap -p2 ../src/test.stp
semantic error: unknown type in dereference: operator '&' at
/usr/local/share/systemtap/tapset/linux/dentry.stp:93:24
source: head = &sb->s_mounts
^
Pass 2: analysis failed. [man error::pass2]
====
--
You are receiving this mail because:
You are the assignee for the bug.