perf intel-pt/bts: Tidy instruction buffer size usage
authorAdrian Hunter <adrian.hunter@intel.com>
Fri, 7 Oct 2016 13:42:25 +0000 (16:42 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 24 Oct 2016 13:31:32 +0000 (10:31 -0300)
commit32f98aab75dd385e326c975717f8b730c6c57508
tree08f9357a1e5ee223e2c2e760ec2a397b1324b92e
parente9c848928abf4cb60601e9ae7d336f0333c98bca
perf intel-pt/bts: Tidy instruction buffer size usage

Tidy instruction buffer size usage in preparation for copying the
instruction bytes onto samples.

The instruction buffer is presently used for debugging, so rename its
size macro from INTEL_PT_INSN_DBG_BUF_SZ to INTEL_PT_INSN_BUF_SZ, and
use it everywhere.

Note that the maximum instruction size is 15 which is a less efficient size
to copy than 16, which is why a separate buffer size is used.

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Link: http://lkml.kernel.org/r/1475847747-30994-2-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-bts.c
tools/perf/util/intel-pt-decoder/intel-pt-insn-decoder.c
tools/perf/util/intel-pt-decoder/intel-pt-insn-decoder.h
tools/perf/util/intel-pt-decoder/intel-pt-log.c
tools/perf/util/intel-pt.c