From afadfc1ccb22fee7463c0f7b4daf467dabe98534 Mon Sep 17 00:00:00 2001 From: Jens Elofsson Date: Wed, 26 May 2021 19:49:05 +0200 Subject: Add one eventRecordId per configured PMU event. Change-Id: I551ec9136d3ce9d89a066f6f63bb5fd9b5d39f80 --- applications/baremetal/main.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/applications/baremetal/main.cpp b/applications/baremetal/main.cpp index 0c89058..8b1bc2b 100644 --- a/applications/baremetal/main.cpp +++ b/applications/baremetal/main.cpp @@ -55,11 +55,15 @@ InferenceProcess::InferenceProcess inferenceProcess(TFLuTensorArena, TENSOR_AREN uint8_t outputData[sizeof(expectedOutputData)] __attribute__((aligned(16), section("output_data_sec"))); #ifdef ETHOSU +constexpr int32_t EventComponentNo = 0x00; namespace { std::vector pmuEventConfig{ETHOSU_PMU_CYCLE, ETHOSU_PMU_NPU_ACTIVE}; +std::vector eventRecMessageIds{EventID(EventLevelDetail, EventComponentNo, ETHOSU_PMU_CYCLE), + EventID(EventLevelDetail, EventComponentNo, ETHOSU_PMU_NPU_ACTIVE)}; + const uint32_t delayMs = SystemCoreClock / 60ul; struct ethosu_driver *ethosuDrv; -EthosUMonitor ethosuMonitor(0, EthosUMonitor::Backend::EVENT_RECORDER); +EthosUMonitor ethosuMonitor(eventRecMessageIds, EthosUMonitor::Backend::EVENT_RECORDER); } // namespace extern "C" { -- cgit v1.2.1