]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
coresight: tmc-etr: Add barrier packets when moving offset forward
authorMathieu Poirier <mathieu.poirier@linaro.org>
Thu, 29 Aug 2019 20:28:42 +0000 (14:28 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 3 Sep 2019 20:01:18 +0000 (22:01 +0200)
commitec13c78d7b45851d21786127ae17193f9a1446fb
treee84ebe49454ca171d1ab0268d1cc50a801004e5e
parent3507d231a499e27c4bac8a47169b74ec7ef87292
coresight: tmc-etr: Add barrier packets when moving offset forward

This patch adds barrier packets in the trace stream when the offset in the
data buffer needs to be moved forward.  Otherwise the decoder isn't aware
of the break in the stream and can't synchronise itself with the trace
data.

Signed-off-by: Mathieu Poirier <mathieu.poirier@linaro.org>
Tested-by: Yabin Cui <yabinc@google.com>
Reviewed-by: Leo Yan <leo.yan@linaro.org>
Link: https://lore.kernel.org/r/20190829202842.580-18-mathieu.poirier@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/coresight/coresight-tmc-etr.c