diff options
author | Jens Elofsson <jens.elofsson@arm.com> | 2021-05-26 19:50:20 +0200 |
---|---|---|
committer | Jens Elofsson <jens.elofsson@arm.com> | 2021-05-27 13:38:25 +0200 |
commit | fdbf0ec317b29b0abb5a24d4e3c9140d933ea533 (patch) | |
tree | a794fbfb060b5f4ebe7e9393dce8ba9fcab622e6 /lib/ethosu_monitor/include | |
parent | a9817a1b10f130c284e9283f5e6893d1f271e2a3 (diff) | |
download | ethos-u-core-software-fdbf0ec317b29b0abb5a24d4e3c9140d933ea533.tar.gz |
Add one eventRecordId for each ethosuEventId.
Change-Id: I624bf5c4376fd89ffc0b840878fb726c4cb87e4b
Diffstat (limited to 'lib/ethosu_monitor/include')
-rw-r--r-- | lib/ethosu_monitor/include/ethosu_monitor.hpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/ethosu_monitor/include/ethosu_monitor.hpp b/lib/ethosu_monitor/include/ethosu_monitor.hpp index c1308a5..fa5a63f 100644 --- a/lib/ethosu_monitor/include/ethosu_monitor.hpp +++ b/lib/ethosu_monitor/include/ethosu_monitor.hpp @@ -25,13 +25,14 @@ #include <ethosu_driver.h> #include <pmu_ethosu.h> #include <stdint.h> +#include <vector> class EthosUMonitor { public: enum Backend { PRINTF, EVENT_RECORDER }; - EthosUMonitor(int32_t __id = EventID(EventLevelError, EvtStatistics_No, EventRecordNone), Backend backend = PRINTF); + EthosUMonitor(std::vector<int32_t> eventRecordIds, Backend backend = PRINTF); template <typename T> void configure(ethosu_driver *drv, const T &eventIds) { @@ -59,8 +60,8 @@ public: private: ethosu_pmu_event_type ethosuEventIds[ETHOSU_PMU_NCOUNTERS]; size_t numEvents; - int32_t eventRecordId; Backend backend; + std::vector<int32_t> eventRecordIds; }; #endif |