From 7c51fd43aeba1b68ad443c4c5d07ecde80282df5 Mon Sep 17 00:00:00 2001 From: Ian Kaszubski Date: Fri, 18 May 2018 10:23:34 -0700 Subject: 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 Reviewed-on: https://git-master.nvidia.com/r/1724044 Reviewed-by: svc-mobile-coverity GVS: Gerrit_Virtual_Submit Reviewed-by: Chinniah Poosapadi Reviewed-by: Ruicheng Dai Reviewed-by: Frank Chen Reviewed-by: mobile promotions Tested-by: mobile promotions --- include/uapi/linux/rtcpu_trace_eventlib_events.h | 102 ----------------------- 1 file changed, 102 deletions(-) delete mode 100644 include/uapi/linux/rtcpu_trace_eventlib_events.h (limited to 'include/uapi/linux') 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 @@ -/* - * Copyright (c) 2017, NVIDIA Corporation. All rights reserved. - * - * This program is free software; you can redistribute it and/or modify it - * under the terms and conditions of the GNU General Public License, - * version 2, as published by the Free Software Foundation. - * - * This program is distributed in the hope it will be useful, but WITHOUT - * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or - * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for - * more details. - */ - -#ifndef RTCPU_TRACE_EVENTS_H -#define RTCPU_TRACE_EVENTS_H - -enum { - RTCPU_TRACE_SCHEMA_VERSION = 1 -}; - -#define RTCPU_TRACE_EVENT_PROVIDER_NAME "rtcpu_trace_" - -// Marks that the task is moving to execution -struct rtcpu_trace_task_begin { - - // Engine class ID - uint32_t class_id; - - // Syncpoint ID - uint32_t syncpt_id; - - // Threshold for task completion - uint32_t syncpt_thresh; -} __packed; - -// Marks that the task is completed -struct rtcpu_trace_task_end { - - // Engine class ID - uint32_t class_id; - - // Syncpoint ID - uint32_t syncpt_id; - - // Threshold for task completion - uint32_t syncpt_thresh; -} __packed; - -// VI Notify events -struct rtcpu_trace_vinotify_event { - - // Engine class ID - uint32_t class_id; - - // Syncpoint ID - uint32_t syncpt_id; - - // Threshold for task completion - uint32_t syncpt_thresh; -} __packed; - -// VI Notify errors -struct rtcpu_trace_vinotify_error { - - // Engine class ID - uint32_t class_id; - - // Syncpoint ID - uint32_t syncpt_id; - - // Threshold for task completion - uint32_t syncpt_thresh; -} __packed; - -enum { - // struct rtcpu_trace_task_begin - RTCPU_TRACE_TASK_BEGIN = 0, - - // struct rtcpu_trace_task_end - RTCPU_TRACE_TASK_END = 1, - - // struct rtcpu_trace_vinotify_event - RTCPU_TRACE_VINOTIFY_EVENT = 2, - - // struct rtcpu_trace_vinotify_error - RTCPU_TRACE_VINOTIFY_ERROR = 3, - - RTCPU_TRACE_NUM_EVENT_TYPES = 4 -}; - -union rtcpu_trace_event_union { - struct rtcpu_trace_task_begin task_begin; - struct rtcpu_trace_task_end task_end; - struct rtcpu_trace_vinotify_event vinotify_event; - struct rtcpu_trace_vinotify_error vinotify_error; -}; - -enum { - RTCPU_TRACE_NUM_CUSTOM_FILTER_FLAGS = 0 -}; - -#endif // RTCPU_TRACE_EVENTS_H -- cgit v1.2.2