OSDN Git Service

perf arm-spe: Refactor payload size calculation
authorLeo Yan <leo.yan@linaro.org>
Wed, 11 Nov 2020 07:11:30 +0000 (15:11 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 11 Nov 2020 17:45:05 +0000 (14:45 -0300)
commitb2ded2e2e2764e502fc025f615210434f1eaa2a9
treeecc352e07992a693689d0cf4352f256fc045e99d
parent903b659436b706928934ff5ef59d591267e5ce1a
perf arm-spe: Refactor payload size calculation

This patch defines macro to extract "sz" field from header, and renames
the function payloadlen() to arm_spe_payload_len().

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Link: https://lore.kernel.org/r/20201111071149.815-4-leo.yan@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/arm-spe-decoder/arm-spe-pkt-decoder.c