diff options
author | 2021-02-24 09:48:34 -0700 | |
---|---|---|
committer | 2021-03-02 09:49:16 -0300 | |
commit | 47f0d94c203751ddcfdb296fcf15df20fffcef0c (patch) | |
tree | c62cc81ea925258bcd98c82a6d6f5b8ec94fb31f /tools/perf/util/cs-etm.h | |
parent | perf cs-etm: Support PID tracing in config (diff) | |
download | linux-47f0d94c203751ddcfdb296fcf15df20fffcef0c.tar.gz linux-47f0d94c203751ddcfdb296fcf15df20fffcef0c.tar.bz2 linux-47f0d94c203751ddcfdb296fcf15df20fffcef0c.zip |
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>
Diffstat (limited to 'tools/perf/util/cs-etm.h')
-rw-r--r-- | tools/perf/util/cs-etm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/cs-etm.h b/tools/perf/util/cs-etm.h index e153d02df0de..85ed11e9d2a7 100644 --- a/tools/perf/util/cs-etm.h +++ b/tools/perf/util/cs-etm.h @@ -193,6 +193,7 @@ struct cs_etm_packet_queue { int cs_etm__process_auxtrace_info(union perf_event *event, struct perf_session *session); int cs_etm__get_cpu(u8 trace_chan_id, int *cpu); +int cs_etm__get_pid_fmt(u8 trace_chan_id, u64 *pid_fmt); int cs_etm__etmq_set_tid(struct cs_etm_queue *etmq, pid_t tid, u8 trace_chan_id); bool cs_etm__etmq_is_timeless(struct cs_etm_queue *etmq); |