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/21173] odd translator behavior with overloaded functions


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.

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