aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorRussell King <[email protected]>2021-06-03 12:54:30 +0100
committerKalle Valo <[email protected]>2021-06-14 18:49:42 +0300
commit01de6fe49ca406d4e44c6e4327a7f49d240113c1 (patch)
treec3c340bf6198900cc61fe722ced56eb95325a344 /tools/perf/scripts/python/check-perf-trace.py
parent87ab9cbaee7c11dd12587d60fb16f3ec22c1a5b3 (diff)
wlcore: fix read pointer update
When reading the fw_log structure from the device's memory, we could race with the firmware updating the actual_buff_size and buff_write_ptr members of this structure. This would lead to bytes being dropped from the log. Fix this by writing back the actual - now fixed - clear_ptr which reflects where we read up to in the buffer. This also means that we must not check that the clear_ptr matches the current write pointer, so remove that check. Signed-off-by: Russell King <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions