perf arm-spe: Add raw decoding for SPEv1.2 previous branch address
authorRob Herring <robh@kernel.org>
Fri, 3 Feb 2023 16:24:01 +0000 (10:24 -0600)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 3 Feb 2023 20:12:25 +0000 (17:12 -0300)
commit7105311c2d3bce8f52653dbfe87de475a251892b
treed9e49b49e22b59079d40bb814eab88dd8a5a208e
parentb777b3d2555feeaa2bf39d6541ed9198e2d2d728
perf arm-spe: Add raw decoding for SPEv1.2 previous branch address

Arm SPEv1.2 adds a new optional address packet type: previous branch
target. The recorded address is the target virtual address of the most
recently taken branch in program order.

Add support for decoding the address packet in raw dumps.

Reviewed-by: Leo Yan <leo.yan@linaro.org>
Signed-off-by: Rob Herring <robh@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: https://lore.kernel.org/r/20230203162401.132931-1-robh@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.h