perf intel-pt/bts: Report instruction bytes and length in sample
[linux-2.6-microblaze.git] / tools / perf / util / intel-pt-decoder / intel-pt-decoder.c
index 16c06d3..e4e7dc7 100644 (file)
@@ -980,6 +980,8 @@ out:
 out_no_progress:
        decoder->state.insn_op = intel_pt_insn->op;
        decoder->state.insn_len = intel_pt_insn->length;
+       memcpy(decoder->state.insn, intel_pt_insn->buf,
+              INTEL_PT_INSN_BUF_SZ);
 
        if (decoder->tx_flags & INTEL_PT_IN_TX)
                decoder->state.flags |= INTEL_PT_IN_TX;