aboutsummaryrefslogtreecommitdiff
path: root/applications/inference_process/include/inference_process.hpp
diff options
context:
space:
mode:
authorJonny Svärd <jonny.svaerd@arm.com>2021-12-17 17:04:08 +0100
committerJonny Svärd <jonny.svaerd@arm.com>2021-12-22 13:09:40 +0100
commit4c11a488d7f20c219ea6265480bc02f4b2cea1e3 (patch)
tree5c08668e3294112ed5fc494229c333fdc1a49fa9 /applications/inference_process/include/inference_process.hpp
parent05244b78be9eba0c83f6267fdbb3aa34e60eec98 (diff)
downloadethos-u-core-software-4c11a488d7f20c219ea6265480bc02f4b2cea1e3.tar.gz
Use lbl-profiler to setup PMU and PMU events
Adapt layer-by-layer profiler to handle PMU event configuration, PMU setup and retrieving PMU counter values. Adapt the inference process application to support the lbl-profiler PMU setup and retrieve/save PMU counter values in the InferenceJob struct. Change-Id: I1667a5b11c43c54e7d28232b594dd118bf3f79a8
Diffstat (limited to 'applications/inference_process/include/inference_process.hpp')
-rw-r--r--applications/inference_process/include/inference_process.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/applications/inference_process/include/inference_process.hpp b/applications/inference_process/include/inference_process.hpp
index db57811..1679e19 100644
--- a/applications/inference_process/include/inference_process.hpp
+++ b/applications/inference_process/include/inference_process.hpp
@@ -43,7 +43,7 @@ struct InferenceJob {
std::vector<DataPtr> expectedOutput;
size_t numBytesToPrint;
std::vector<uint8_t> pmuEventConfig;
- uint32_t pmuCycleCounterEnable;
+ bool pmuCycleCounterEnable;
std::vector<uint32_t> pmuEventCount;
uint64_t pmuCycleCounterCount;
@@ -55,7 +55,7 @@ struct InferenceJob {
const std::vector<DataPtr> &expectedOutput,
size_t numBytesToPrint,
const std::vector<uint8_t> &pmuEventConfig,
- const uint32_t pmuCycleCounterEnable);
+ const bool pmuCycleCounterEnable);
void invalidate();
void clean();