public inbox for systemtap@sourceware.org
 help / color / mirror / Atom feed
* [Bug translator/2610] New: @ops on empty scalar statistics aggregates
@ 2006-04-26 22:10 fche at redhat dot com
  2006-05-01 13:50 ` [Bug translator/2610] " fche at redhat dot com
  0 siblings, 1 reply; 2+ messages in thread
From: fche at redhat dot com @ 2006-04-26 22:10 UTC (permalink / raw)
  To: systemtap

For arrays of aggregates, accessing a nonexistent value results in an error:

   a[2] <<< 2; @avg(a[3])

This is intentional, since @avg is considered undefined for a zero-element
list.  However, for scalars, we don't enforce this same thing:

   @avg(b) ; @max(b)

may spit out a generic division-by-zero error or a sentinel "0" value.
It should be made consistent with the vector-of-aggregates case, so that
only @count() is valid on an empty aggregate scalar.

-- 
           Summary: @ops on empty scalar statistics aggregates
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: fche at redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=2610

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [Bug translator/2610] @ops on empty scalar statistics aggregates
  2006-04-26 22:10 [Bug translator/2610] New: @ops on empty scalar statistics aggregates fche at redhat dot com
@ 2006-05-01 13:50 ` fche at redhat dot com
  0 siblings, 0 replies; 2+ messages in thread
From: fche at redhat dot com @ 2006-05-01 13:50 UTC (permalink / raw)
  To: systemtap


------- Additional Comments From fche at redhat dot com  2006-05-01 13:50 -------
patched

-- 
           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED


http://sourceware.org/bugzilla/show_bug.cgi?id=2610

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-05-01 13:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-04-26 22:10 [Bug translator/2610] New: @ops on empty scalar statistics aggregates fche at redhat dot com
2006-05-01 13:50 ` [Bug translator/2610] " fche at redhat dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).