simpleperf: Support choosing between ETR and TRBE
When both ETR and TRBE are available, simpleperf chooses TRBE by
default. This patch is to provide a way to choose ETR when TRBE
is available. After this patch:
1. simpleperf list adds an event type using ETR.
$ simpleperf list cs-etm
List of coresight etm events:
cs-etm # Coresight ETM instruction tracing
cs-etm/@tmc_etr0/ # Coresight ETM instruction tracing (via ETR)
2. To choose ETR:
$ simpleperf record -e cs-etm/@tmc_etr0/ sleep 1
3. To choose TRBE if available, otherwise use ETR.
$ simpleperf record -e cs-etm sleep 1
Bug: 409392482
Test: run simpleperf_unit_test
Change-Id: Ica34b46ddb57c3364a08826d9052441ec109eca2
10 files changed