diff options
| author | Songlin Yang <songliny@nvidia.com> | 2017-11-08 20:11:19 -0500 |
|---|---|---|
| committer | mobile promotions <svcmobile_promotions@nvidia.com> | 2018-01-19 15:48:54 -0500 |
| commit | 3657cf8132400177888bcabda49f77eef8e1b692 (patch) | |
| tree | 99968d920f5bd5a2907663f4c18192ae779acb26 /include/uapi/linux | |
| parent | 755ab026c1c75cb04ce01857fb72cf48c132ca6e (diff) | |
drivers:camera:rtcpu: vi/isp tsp trace support
Pull vi and isp trace events from rtcpu-trace driver and log
the events to eventlib for TSP tracing support.
Bug 1963015
Change-Id: I398c1b8c9ce01dfd7c5857285ae4e48058826695
Signed-off-by: Songlin Yang <songliny@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/1641384
Reviewed-by: Shiva Dubey <sdubey@nvidia.com>
Reviewed-by: svc-mobile-coverity <svc-mobile-coverity@nvidia.com>
GVS: Gerrit_Virtual_Submit
Reviewed-by: Joshua Widen <jwiden@nvidia.com>
Reviewed-by: Ruicheng Dai <rdai@nvidia.com>
Tested-by: Ruicheng Dai <rdai@nvidia.com>
Reviewed-by: Bhanu Murthy V <bmurthyv@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, 102 insertions, 0 deletions
diff --git a/include/uapi/linux/rtcpu_trace_eventlib_events.h b/include/uapi/linux/rtcpu_trace_eventlib_events.h new file mode 100644 index 000000000..42464a88c --- /dev/null +++ b/include/uapi/linux/rtcpu_trace_eventlib_events.h | |||
| @@ -0,0 +1,102 @@ | |||
| 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 | ||
