diff options
| author | Saleh Dindar <sdindar@nvidia.com> | 2018-05-15 12:35:02 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-06-05 17:54:03 -0400 |
| commit | 6bf0a4b49ef81a0affbb642bfaf67e33b37c2f12 (patch) | |
| tree | e2b246346f3723d774a942a4a4f85cd06bfc9c32 /include/uapi/linux | |
| parent | 000406ecbe1d7bf0f3d2ff3df54b4c5ac7a9133e (diff) | |
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 <sdindar@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1719719
Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
Tested-by: mobile promotions <svcmobile_promotions@nvidia.com>
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/nvhost_events.h | 15 |
1 files changed, 14 insertions, 1 deletions
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 { | |||
| 67 | u32 syncpt_thresh; | 67 | u32 syncpt_thresh; |
| 68 | } __packed; | 68 | } __packed; |
| 69 | 69 | ||
| 70 | struct nvhost_vpu_perf_counter { | ||
| 71 | u32 operation; | ||
| 72 | u32 tag; | ||
| 73 | u32 count; | ||
| 74 | u32 average; | ||
| 75 | u64 variance; | ||
| 76 | u32 minimum; | ||
| 77 | u32 maximum; | ||
| 78 | } __packed; | ||
| 79 | |||
| 70 | enum { | 80 | enum { |
| 71 | /* struct nvhost_task_submit */ | 81 | /* struct nvhost_task_submit */ |
| 72 | NVHOST_TASK_SUBMIT = 0, | 82 | NVHOST_TASK_SUBMIT = 0, |
| @@ -77,7 +87,10 @@ enum { | |||
| 77 | /* struct nvhost_task_end */ | 87 | /* struct nvhost_task_end */ |
| 78 | NVHOST_TASK_END = 2, | 88 | NVHOST_TASK_END = 2, |
| 79 | 89 | ||
| 80 | NVHOST_NUM_EVENT_TYPES = 3 | 90 | /* struct nvhost_vpu_perf_counter */ |
| 91 | NVHOST_VPU_PERF_COUNTER = 3, | ||
| 92 | |||
| 93 | NVHOST_NUM_EVENT_TYPES = 4 | ||
| 81 | }; | 94 | }; |
| 82 | 95 | ||
| 83 | enum { | 96 | enum { |
