summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/cs-trace-disasm.py
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/scripts/python/cs-trace-disasm.py')
-rw-r--r--tools/perf/scripts/python/cs-trace-disasm.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/scripts/python/cs-trace-disasm.py b/tools/perf/scripts/python/cs-trace-disasm.py
index 175ae4bfa732..429d0d2d7a23 100644
--- a/tools/perf/scripts/python/cs-trace-disasm.py
+++ b/tools/perf/scripts/python/cs-trace-disasm.py
@@ -82,6 +82,7 @@ def process_event(t):
if (len(disasm_cache) > cache_size):
disasm_cache.clear();
+ cpu = format(sample['cpu'], "d");
addr_range = format(sample['ip'],"x") + ":" + format(sample['addr'],"x");
try:
@@ -103,6 +104,7 @@ def process_event(t):
disasm_output = check_output(disasm).split('\n')
disasm_cache[addr_range] = disasm_output;
+ print "FILE: %s\tCPU: %s" % (dso, cpu);
for line in disasm_output:
m = disasm_re.search(line)
if (m != None) :