aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/scripts/python')
-rwxr-xr-xtools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py b/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
index 81a56cd2b3c1..21a7a1298094 100755
--- a/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
+++ b/tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py
@@ -8,6 +8,7 @@
8# PerfEvent is the base class for all perf event sample, PebsEvent 8# PerfEvent is the base class for all perf event sample, PebsEvent
9# is a HW base Intel x86 PEBS event, and user could add more SW/HW 9# is a HW base Intel x86 PEBS event, and user could add more SW/HW
10# event classes based on requirements. 10# event classes based on requirements.
11from __future__ import print_function
11 12
12import struct 13import struct
13 14
@@ -44,7 +45,8 @@ class PerfEvent(object):
44 PerfEvent.event_num += 1 45 PerfEvent.event_num += 1
45 46
46 def show(self): 47 def show(self):
47 print "PMU event: name=%12s, symbol=%24s, comm=%8s, dso=%12s" % (self.name, self.symbol, self.comm, self.dso) 48 print("PMU event: name=%12s, symbol=%24s, comm=%8s, dso=%12s" %
49 (self.name, self.symbol, self.comm, self.dso))
48 50
49# 51#
50# Basic Intel PEBS (Precise Event-based Sampling) event, whose raw buffer 52# Basic Intel PEBS (Precise Event-based Sampling) event, whose raw buffer