cs-etm: associating output packet with CPU they executed on
[firefly-linux-kernel-4.4.55.git] / tools / perf / scripts / python / cs-trace-disasm.py
index 175ae4bfa73295a2414975edcdab6133fc48772d..429d0d2d7a23e7f99dd74ac1e59468847b48de2b 100644 (file)
@@ -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) :