diff options
| author | Ian Kaszubski <ikaszubski@nvidia.com> | 2018-05-18 13:23:34 -0400 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-05-22 18:08:12 -0400 |
| commit | 7c51fd43aeba1b68ad443c4c5d07ecde80282df5 (patch) | |
| tree | f0a17d8ca522c2e428daaca042e1ef6f65f2db41 /include/uapi/linux | |
| parent | a03c40636e5009752a5c9e8bc889ce2ddde3e82e (diff) | |
media: tegra: Update VI/ISP eventlib traces
* The VI/ISP eventlib traces currently write into existing
eventlib HW nodes in sysfs. In order for upstream applications
such as TSP to process these events correctly they need to
conform to the schema already defined for these nodes.
Consequently, this change updates the VI/ISP task_begin/end
traces with the correct nvhost schema.
* Adds the missing required task_submit event.
* Adds missing class_id fields for t194 VI & ISP required by TSP
for trace categorization.
Bug 1963015
Change-Id: Ice550b1e3d6a8159eef944663ff1e43484182f27
Signed-off-by: Ian Kaszubski <ikaszubski@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1724044
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Chinniah Poosapadi <cpoosapadi@nvidia.com>
Reviewed-by: Ruicheng Dai <rdai@nvidia.com>
Reviewed-by: Frank Chen <frankc@nvidia.com>
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/rtcpu_trace_eventlib_events.h | 102 |
1 files changed, 0 insertions, 102 deletions
diff --git a/include/uapi/linux/rtcpu_trace_eventlib_events.h b/include/uapi/linux/rtcpu_trace_eventlib_events.h deleted file mode 100644 index 42464a88c..000000000 --- a/include/uapi/linux/rtcpu_trace_eventlib_events.h +++ /dev/null | |||
| @@ -1,102 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (c) 2017, NVIDIA Corporation. All rights reserved. | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify it | ||
| 5 | * under the terms and conditions of the GNU General Public License, | ||
| 6 | * version 2, as published by the Free Software Foundation. | ||
| 7 | * | ||
| 8 | * This program is distributed in the hope it will be useful, but WITHOUT | ||
| 9 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
| 10 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
| 11 | * more details. | ||
| 12 | */ | ||
| 13 | |||
| 14 | #ifndef RTCPU_TRACE_EVENTS_H | ||
| 15 | #define RTCPU_TRACE_EVENTS_H | ||
| 16 | |||
| 17 | enum { | ||
| 18 | RTCPU_TRACE_SCHEMA_VERSION = 1 | ||
| 19 | }; | ||
| 20 | |||
| 21 | #define RTCPU_TRACE_EVENT_PROVIDER_NAME "rtcpu_trace_" | ||
| 22 | |||
| 23 | // Marks that the task is moving to execution | ||
| 24 | struct rtcpu_trace_task_begin { | ||
| 25 | |||
| 26 | // Engine class ID | ||
| 27 | uint32_t class_id; | ||
| 28 | |||
| 29 | // Syncpoint ID | ||
| 30 | uint32_t syncpt_id; | ||
| 31 | |||
| 32 | // Threshold for task completion | ||
| 33 | uint32_t syncpt_thresh; | ||
| 34 | } __packed; | ||
| 35 | |||
| 36 | // Marks that the task is completed | ||
| 37 | struct rtcpu_trace_task_end { | ||
| 38 | |||
| 39 | // Engine class ID | ||
| 40 | uint32_t class_id; | ||
| 41 | |||
| 42 | // Syncpoint ID | ||
| 43 | uint32_t syncpt_id; | ||
| 44 | |||
| 45 | // Threshold for task completion | ||
| 46 | uint32_t syncpt_thresh; | ||
| 47 | } __packed; | ||
| 48 | |||
| 49 | // VI Notify events | ||
| 50 | struct rtcpu_trace_vinotify_event { | ||
| 51 | |||
| 52 | // Engine class ID | ||
| 53 | uint32_t class_id; | ||
| 54 | |||
| 55 | // Syncpoint ID | ||
| 56 | uint32_t syncpt_id; | ||
| 57 | |||
| 58 | // Threshold for task completion | ||
| 59 | uint32_t syncpt_thresh; | ||
| 60 | } __packed; | ||
| 61 | |||
| 62 | // VI Notify errors | ||
| 63 | struct rtcpu_trace_vinotify_error { | ||
| 64 | |||
| 65 | // Engine class ID | ||
| 66 | uint32_t class_id; | ||
| 67 | |||
| 68 | // Syncpoint ID | ||
| 69 | uint32_t syncpt_id; | ||
| 70 | |||
| 71 | // Threshold for task completion | ||
| 72 | uint32_t syncpt_thresh; | ||
| 73 | } __packed; | ||
| 74 | |||
| 75 | enum { | ||
| 76 | // struct rtcpu_trace_task_begin | ||
| 77 | RTCPU_TRACE_TASK_BEGIN = 0, | ||
| 78 | |||
| 79 | // struct rtcpu_trace_task_end | ||
| 80 | RTCPU_TRACE_TASK_END = 1, | ||
| 81 | |||
| 82 | // struct rtcpu_trace_vinotify_event | ||
| 83 | RTCPU_TRACE_VINOTIFY_EVENT = 2, | ||
| 84 | |||
| 85 | // struct rtcpu_trace_vinotify_error | ||
| 86 | RTCPU_TRACE_VINOTIFY_ERROR = 3, | ||
| 87 | |||
| 88 | RTCPU_TRACE_NUM_EVENT_TYPES = 4 | ||
| 89 | }; | ||
| 90 | |||
| 91 | union rtcpu_trace_event_union { | ||
| 92 | struct rtcpu_trace_task_begin task_begin; | ||
| 93 | struct rtcpu_trace_task_end task_end; | ||
| 94 | struct rtcpu_trace_vinotify_event vinotify_event; | ||
| 95 | struct rtcpu_trace_vinotify_error vinotify_error; | ||
| 96 | }; | ||
| 97 | |||
| 98 | enum { | ||
| 99 | RTCPU_TRACE_NUM_CUSTOM_FILTER_FLAGS = 0 | ||
| 100 | }; | ||
| 101 | |||
| 102 | #endif // RTCPU_TRACE_EVENTS_H | ||
