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/6746] New: support aggregates as function args


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.


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