From 6bf0a4b49ef81a0affbb642bfaf67e33b37c2f12 Mon Sep 17 00:00:00 2001 From: Saleh Dindar Date: Tue, 15 May 2018 09:35:02 -0700 Subject: nvhost:pva: Add VPU performance tracking VPU performance tracking is added by using post-actions and delivering results to the trace JIRA PVA-1087 Change-Id: Ia0030348665c8c0857cf107f4f76d9cc6052f1f2 Signed-off-by: Saleh Dindar Reviewed-on: https://git-master.nvidia.com/r/1719719 Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/uapi/linux/nvhost_events.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'include/uapi/linux') diff --git a/include/uapi/linux/nvhost_events.h b/include/uapi/linux/nvhost_events.h index 0f1da7064..1282ee38a 100644 --- a/include/uapi/linux/nvhost_events.h +++ b/include/uapi/linux/nvhost_events.h @@ -67,6 +67,16 @@ struct nvhost_task_end { u32 syncpt_thresh; } __packed; +struct nvhost_vpu_perf_counter { + u32 operation; + u32 tag; + u32 count; + u32 average; + u64 variance; + u32 minimum; + u32 maximum; +} __packed; + enum { /* struct nvhost_task_submit */ NVHOST_TASK_SUBMIT = 0, @@ -77,7 +87,10 @@ enum { /* struct nvhost_task_end */ NVHOST_TASK_END = 2, - NVHOST_NUM_EVENT_TYPES = 3 + /* struct nvhost_vpu_perf_counter */ + NVHOST_VPU_PERF_COUNTER = 3, + + NVHOST_NUM_EVENT_TYPES = 4 }; enum { -- cgit v1.2.2