]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit6379d9d83ad19094454390c7d574f31d750252d2
tree08f9357a1e5ee223e2c2e760ec2a397b1324b92e
parent5c451859229eff5826079a7af7ea94df99ccbe58
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