[Bug translator/6746] New: support aggregates as function args
jkenisto at us dot ibm dot com
sourceware-bugzilla@sourceware.org
Mon Jul 14 23:50:00 GMT 2008
It would be handy if an aggregate (statistics) could be passed as a function
argument.
$ cat agerr.stp
global a
function printag(ag) {
if (@count(ag) > 0)
printf("%d\n", @sum(ag))
}
probe begin {
a <<< 13
a <<< 42
printag(a)
exit()
}
$ stap agerr.stp
semantic error: probe_1712 with invalid type stats: identifier 'printag' at
agerr.stp:9:2
semantic error: probe_1712 with invalid type stats: identifier 'ag' at :2:18
Pass 2: analysis failed. Try again with more '-v' (verbose) options.
$
--
Summary: support aggregates as function args
Product: systemtap
Version: unspecified
Status: NEW
Severity: enhancement
Priority: P3
Component: translator
AssignedTo: systemtap at sources dot redhat dot com
ReportedBy: jkenisto at us dot ibm dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=6746
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
More information about the Systemtap
mailing list