diff options
authorEric B Munson <ebmunson@us.ibm.com>2010-03-23 17:48:33 +0000
committerEric B Munson <ebmunson@us.ibm.com>2010-03-24 13:29:01 +0000
commit729090a8fb993dd9dd347b9154dfc81d1603fde2 (patch)
parentfddcb60357a890691009d7f87f3250dd0a35040f (diff)
Add read_eventcount method to base data collection class
Add the method for reading event counts from the data collection method. Signed-off-by: Eric B Munson <ebmunson@us.ibm.com>
1 files changed, 11 insertions, 2 deletions
diff --git a/TLBC/DataCollect.pm b/TLBC/DataCollect.pm
index cc434d1..631fe74 100644
--- a/TLBC/DataCollect.pm
+++ b/TLBC/DataCollect.pm
@@ -20,7 +20,7 @@ sub new()
# The setup method should take care of setting up the data collector for
-# collecting DTLB miss data. This method takes no args and returns $self
+# collecting event data. This method takes no args and returns $self
sub setup()
@@ -29,13 +29,22 @@ sub setup()
# This method should the return the total event count as of its
# invocation. This method takes no args and it returns the total number
-# of DTLB misses.
+# of events.
sub get_current_eventcount()
+# This method will read the counter information from the data source.
+# This was separated from get_current_eventcount to provide a logical
+# way of handling multiple events.
+sub read_eventcount()
# The shutdown method should stop the data collection and do any clean up
# necessary. This method takes no args and returns $self