aboutsummaryrefslogtreecommitdiff
path: root/kernel/ethosu_inference.h
diff options
context:
space:
mode:
authorMikael Olsson <mikael.olsson@arm.com>2023-12-15 17:17:06 +0100
committerMikael Olsson <mikael.olsson@arm.com>2023-12-20 12:05:37 +0100
commite87446c9ce7f6cbefcd7bbaff324eebdca10687e (patch)
tree2c3911d181afc7ece79398a1b6afaf15483192ba /kernel/ethosu_inference.h
parent5087ba6f9821cae6e5a2843b33368771adfa687d (diff)
downloadethos-u-linux-driver-stack-e87446c9ce7f6cbefcd7bbaff324eebdca10687e.tar.gz
Change PMU event counter values to use 64-bit
The PMU event counter value is an accumulation of 32-bit values during the inference and to ensure the total value fits in the rpmsg message and UAPI, the variable holding the value has been changed to 64-bit. The driver library, Python wrapper and inference runner have been changed accordingly to support the 64-bit values. Change-Id: I09a8e45eb75800c8a787f83abff5a3693148cc15 Signed-off-by: Mikael Olsson <mikael.olsson@arm.com>
Diffstat (limited to 'kernel/ethosu_inference.h')
-rw-r--r--kernel/ethosu_inference.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/ethosu_inference.h b/kernel/ethosu_inference.h
index 9fa0a4a..5040ef1 100644
--- a/kernel/ethosu_inference.h
+++ b/kernel/ethosu_inference.h
@@ -72,7 +72,7 @@ struct ethosu_inference {
struct ethosu_network *net;
enum ethosu_uapi_status status;
uint8_t pmu_event_config[ETHOSU_PMU_EVENT_MAX];
- uint32_t pmu_event_count[ETHOSU_PMU_EVENT_MAX];
+ uint64_t pmu_event_count[ETHOSU_PMU_EVENT_MAX];
uint32_t pmu_cycle_counter_enable;
uint64_t pmu_cycle_counter_count;
struct ethosu_mailbox_msg msg;