aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin/stackcollapse-record
diff options
context:
space:
mode:
authorKai Vehmanen <[email protected]>2019-05-24 14:23:06 -0500
committerMark Brown <[email protected]>2019-05-28 15:52:34 +0100
commitec9025e5d3c5b5f2027fa74be6afdaad9908b546 (patch)
treefb6d5d7973c2afdec6ca5d63f95c740c76dd21de /tools/perf/scripts/python/bin/stackcollapse-record
parentf627b0524ccf993b646bd56f9bdacc973c8c39cc (diff)
ASoC: SOF: force end-of-file for debugfs trace at suspend
Current trace implementation gets out of sync when sof device is put to suspend. The debugfs file handle is kept open, but firmware will reset its state. After resume, debugfs client's read offset will not be synchronized to firmware and this may result in traces read in incorrect order and/or stale data being read after resume. Add logic to signal end-of-file to read() when firmware tracing has ended, and all trace data has been read. This allows debugfs client to capture all trace data, and reopen the trace file to ensure proper synchronization with firmware after reopening the node. Signed-off-by: Kai Vehmanen <[email protected]> Signed-off-by: Pierre-Louis Bossart <[email protected]> Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions