From 6e27bfd70cdface480899cecfc5fbc81cfb1411b Mon Sep 17 00:00:00 2001 From: Veera Sundaram Sankaran Date: Thu, 8 Jul 2021 11:23:37 -0700 Subject: [PATCH] disp: msm: sde: allow event log logging with IN_LOG_LIMITED flag Event logs are restricted to be logged only with IN_LOG option during a SDE_DBG_DUMP() call. Extend the logging support to IN_LOG_LIMITED option. The option is set to IN_MEM by default and can be changed through debugfs. Change-Id: I8245cebe3ad71c026fbc51b39edf39ec06b7d0e6 Signed-off-by: Veera Sundaram Sankaran --- msm/sde_dbg_evtlog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/msm/sde_dbg_evtlog.c b/msm/sde_dbg_evtlog.c index 1b18d4a49b..81947a927f 100644 --- a/msm/sde_dbg_evtlog.c +++ b/msm/sde_dbg_evtlog.c @@ -205,7 +205,7 @@ void sde_evtlog_dump_all(struct sde_dbg_evtlog *evtlog) char buf[SDE_EVTLOG_BUF_MAX]; bool update_last_entry = true; - if (!evtlog || !(evtlog->dump_mode & SDE_DBG_DUMP_IN_LOG)) + if (!evtlog || !(evtlog->dump_mode & (SDE_DBG_DUMP_IN_LOG | SDE_DBG_DUMP_IN_LOG_LIMITED))) return; while (sde_evtlog_dump_to_buffer(evtlog, buf, sizeof(buf),