]> git.baikalelectronics.ru Git - kernel.git/commit
perf intel-pt: Fix PEBS sample for XMM registers
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 30 Jun 2020 13:39:35 +0000 (16:39 +0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 6 Jul 2020 12:03:39 +0000 (09:03 -0300)
commited88940f3a6989f4208b153b293da65f2660da55
tree932c555ac72ac29a3526f0795591ddf2db361c0c
parent69a491c4458a42f2a680a7ca0eb6aaf0e811a0a1
perf intel-pt: Fix PEBS sample for XMM registers

The condition to add XMM registers was missing, the regs array needed to
be in the outer scope, and the size of the regs array was too small.

Fixes: 09f8fd4e1bea2 ("perf intel-pt: Add XMM registers to synthesized PEBS sample")
Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Luwei Kang <luwei.kang@intel.com>
Link: http://lore.kernel.org/lkml/20200630133935.11150-4-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intel-pt.c