MLK-18680-1: drm: imx: dcss: low latency tracing mechanism
authorLaurentiu Palcu <laurentiu.palcu@nxp.com>
Mon, 25 Jun 2018 10:43:05 +0000 (13:43 +0300)
committerLeonard Crestez <leonard.crestez@nxp.com>
Wed, 17 Apr 2019 23:51:34 +0000 (02:51 +0300)
commit4063521460d6a30c6fcd2a780811e1f28ec2690e
tree8bd778ad9737b6f675d30aaee1295b2d8eb6f729
parent77037406c715f6d1b149fd1d061b11f0bf287ff2
MLK-18680-1: drm: imx: dcss: low latency tracing mechanism

This patch adds a DCSS tracing mechanism that introduces as low latency
as possible, so that it does not affect timings. Instead of text, 64 bit
tags will be logged, together with the system time in nanoseconds. Based
on these, post-processing can be done on any PC to compute deltas,
delays, missed buffers, etc.

Example usage:

echo 1 > /sys/module/imx_dcss_core/parameters/tracing
gplay-1.0 movie.mpg
echo 0 > /sys/module/imx_dcss_core/parameters/tracing

To dump the trace:
cat /sys/kernel/debug/imx-dcss/dump_trace_log > trace.txt

With the help of a scripting language (awk), the trace can then be
post-processed and analyzed on the PC.

Signed-off-by: Laurentiu Palcu <laurentiu.palcu@nxp.com>
drivers/gpu/imx/dcss/dcss-common.c
include/video/imx-dcss.h