[Bug translator/2157] New: Cannot clear pmaps

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug translator/2157] New: Cannot clear pmaps

glaubitz at physik dot fu-berlin.de
Maps containing stats (pmaps) cannot be cleared by either doing
foo[1] = 0
or
delete foo

Testcase is checked in as tests/testsuite/systemtap.maps/ix_clear.stp

--
           Summary: Cannot clear pmaps
           Product: systemtap
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P2
         Component: translator
        AssignedTo: systemtap at sources dot redhat dot com
        ReportedBy: hunt at redhat dot com


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Reply | Threaded
Open this post in threaded view
|

[Bug translator/2157] Cannot clear pmaps

glaubitz at physik dot fu-berlin.de

------- Additional Comments From joshua dot i dot stone at intel dot com  2006-01-16 18:40 -------
This is covered by bug 2140.  I've submitted an initial patch for that bug, but
it's not quite complete yet.

This bug should probably be marked as a duplicate, unless we want 'stat=0' to
also clear stats.  That will require more changes to the way types are inferred
- e.g. do we special-case 0, or do we also allow 'stat=1'?  And what would that
mean?  I think the delete operator makes more sense.

--


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

------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
Reply | Threaded
Open this post in threaded view
|

[Bug translator/2157] Cannot clear pmaps

glaubitz at physik dot fu-berlin.de
In reply to this post by glaubitz at physik dot fu-berlin.de

------- Additional Comments From fche at redhat dot com  2006-01-16 18:59 -------
"delete ARRAY" and "delete ARRAY[index]" should clearly work for both plain and
aggregate arrays.  I can go along with a "delete SCALAR" too.

Using assignment to reset is less appealing.


*** This bug has been marked as a duplicate of 2140 ***

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


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

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