aboutsummaryrefslogtreecommitdiffstats
path: root/common/recipes-kernel/linux/linux-yocto-4.19.8/0885-drm-amd-display-Add-customizable-tracing-event.patch
diff options
context:
space:
mode:
Diffstat (limited to 'common/recipes-kernel/linux/linux-yocto-4.19.8/0885-drm-amd-display-Add-customizable-tracing-event.patch')
-rw-r--r--common/recipes-kernel/linux/linux-yocto-4.19.8/0885-drm-amd-display-Add-customizable-tracing-event.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/common/recipes-kernel/linux/linux-yocto-4.19.8/0885-drm-amd-display-Add-customizable-tracing-event.patch b/common/recipes-kernel/linux/linux-yocto-4.19.8/0885-drm-amd-display-Add-customizable-tracing-event.patch
new file mode 100644
index 00000000..d5e8e5e2
--- /dev/null
+++ b/common/recipes-kernel/linux/linux-yocto-4.19.8/0885-drm-amd-display-Add-customizable-tracing-event.patch
@@ -0,0 +1,35 @@
+From a1ded8eaee9244acb97baf9697cd74cd76d7d6d4 Mon Sep 17 00:00:00 2001
+From: Chiawen Huang <chiawen.huang@amd.com>
+Date: Fri, 9 Nov 2018 11:44:38 +0800
+Subject: [PATCH 0885/2940] drm/amd/display: Add customizable tracing event
+
+[why]
+add customizable log with a message input, which is for adding
+test log in debugging as printf function in ETW.
+
+[Usage]
+EVENT_LOG_CUST_MSG1("TestLog","Hello World %d=0x%x", 123, pDC);
+
+Signed-off-by: Chiawen Huang <chiawen.huang@amd.com>
+Reviewed-by: Tony Cheng <Tony.Cheng@amd.com>
+Acked-by: Leo Li <sunpeng.li@amd.com>
+Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
+---
+ drivers/gpu/drm/amd/display/dc/dm_event_log.h | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/drivers/gpu/drm/amd/display/dc/dm_event_log.h b/drivers/gpu/drm/amd/display/dc/dm_event_log.h
+index 34a701ca879e..65663f4d93e1 100644
+--- a/drivers/gpu/drm/amd/display/dc/dm_event_log.h
++++ b/drivers/gpu/drm/amd/display/dc/dm_event_log.h
+@@ -33,6 +33,7 @@
+
+ #define EVENT_LOG_AUX_REQ(ddc, type, action, address, len, data)
+ #define EVENT_LOG_AUX_REP(ddc, type, replyStatus, len, data)
++#define EVENT_LOG_CUST_MSG(tag, a, ...)
+
+ #endif
+
+--
+2.17.1
+