This is the mail archive of the
systemtap@sourceware.org
mailing list for the systemtap project.
[Bug translator/6746] New: support aggregates as function args
- From: "jkenisto at us dot ibm dot com" <sourceware-bugzilla at sourceware dot org>
- To: systemtap at sources dot redhat dot com
- Date: 14 Jul 2008 23:50:02 -0000
- Subject: [Bug translator/6746] New: support aggregates as function args
- Reply-to: sourceware-bugzilla at sourceware dot org
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.