summaryrefslogtreecommitdiff
path: root/samsung/exynos_drm_dsim.c
diff options
context:
space:
mode:
authorMidas Chien <midaschieh@google.com>2020-11-12 22:52:12 +0800
committerMidas Chien <midaschieh@google.com>2020-11-17 03:52:09 +0000
commit3e4e053ffa3bad960bb08d6f90dab732decf3d6e (patch)
tree67ed2dabd65d7b42e16bc1547a9d9bd7d5ad5795 /samsung/exynos_drm_dsim.c
parent2659960d916be217ebf1dba3ac97e4fb3f770ca4 (diff)
downloaddisplay-3e4e053ffa3bad960bb08d6f90dab732decf3d6e.tar.gz
drm: samsung: add dpu underrun trace
Put dpu underrun info to ftrace for collecting metrics. Bug: 171381940 Test: use trace_processor_shell to check metrics Change-Id: Ia0023b57805d963a48419a7adf7c77884543e07c Signed-off-by: Midas Chien <midaschieh@google.com>
Diffstat (limited to 'samsung/exynos_drm_dsim.c')
-rw-r--r--samsung/exynos_drm_dsim.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/samsung/exynos_drm_dsim.c b/samsung/exynos_drm_dsim.c
index 05a1fa2..45db606 100644
--- a/samsung/exynos_drm_dsim.c
+++ b/samsung/exynos_drm_dsim.c
@@ -48,6 +48,8 @@
#include <regs-dsim.h>
+#include <trace/dpu_trace.h>
+
#include "exynos_drm_crtc.h"
#include "exynos_drm_decon.h"
#include "exynos_drm_dsim.h"
@@ -967,9 +969,11 @@ static irqreturn_t dsim_irq_handler(int irq, void *dev_id)
}
if (int_src & DSIM_INTSRC_UNDER_RUN) {
+ DPU_ATRACE_INT("DPU_UNDERRUN", 1);
dsim_underrun_info(dsim);
if (decon)
DPU_EVENT_LOG(DPU_EVT_DSIM_UNDERRUN, decon->id, NULL);
+ DPU_ATRACE_INT("DPU_UNDERRUN", 0);
}
if (int_src & DSIM_INTSRC_VT_STATUS) {