|
@@ -8,6 +8,7 @@
|
|
|
# PerfEvent is the base class for all perf event sample, PebsEvent
|
|
|
# is a HW base Intel x86 PEBS event, and user could add more SW/HW
|
|
|
# event classes based on requirements.
|
|
|
+from __future__ import print_function
|
|
|
|
|
|
import struct
|
|
|
|
|
@@ -44,7 +45,8 @@ class PerfEvent(object):
|
|
|
PerfEvent.event_num += 1
|
|
|
|
|
|
def show(self):
|
|
|
- print "PMU event: name=%12s, symbol=%24s, comm=%8s, dso=%12s" % (self.name, self.symbol, self.comm, self.dso)
|
|
|
+ print("PMU event: name=%12s, symbol=%24s, comm=%8s, dso=%12s" %
|
|
|
+ (self.name, self.symbol, self.comm, self.dso))
|
|
|
|
|
|
#
|
|
|
# Basic Intel PEBS (Precise Event-based Sampling) event, whose raw buffer
|