[PATCH V3 2/3] perf intel-pt/bts: Report instruction bytes and length in sample

2016-10-07 Thread Adrian Hunter
From: Andi Kleen Change Intel PT and BTS to pass up the length and the instruction bytes of the decoded or sampled instruction in the perf sample. The decoder already knows this information, we just need to pass it up. Since it is only a couple of movs it is not very

[PATCH V3 2/3] perf intel-pt/bts: Report instruction bytes and length in sample

2016-10-07 Thread Adrian Hunter
From: Andi Kleen Change Intel PT and BTS to pass up the length and the instruction bytes of the decoded or sampled instruction in the perf sample. The decoder already knows this information, we just need to pass it up. Since it is only a couple of movs it is not very expensive. Handle