perf cs-etm: Add helper cs_etm__get_pid_fmt()
authorLeo Yan <leo.yan@linaro.org>
Wed, 24 Feb 2021 16:48:34 +0000 (09:48 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 2 Mar 2021 12:49:16 +0000 (09:49 -0300)
commit47f0d94c203751ddcfdb296fcf15df20fffcef0c
treec62cc81ea925258bcd98c82a6d6f5b8ec94fb31f
parent30cb76aabfb4deab4ffef54882f86df319b4d862
perf cs-etm: Add helper cs_etm__get_pid_fmt()

This patch adds helper function cs_etm__get_pid_fmt(), by passing
parameter "traceID", it returns the PID format.

Signed-off-by: Leo Yan <leo.yan@linaro.org>
Reviewed-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Reviewed-by: Suzuki K Poulose <suzuki.poulose@arm.com>
Cc: Mike Leach <mike.leach@linaro.org>
Link: https://lore.kernel.org/r/20210213113220.292229-5-leo.yan@linaro.org
Link: https://lore.kernel.org/r/20210224164835.3497311-6-mathieu.poirier@linaro.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/cs-etm.c
tools/perf/util/cs-etm.h