aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorJohn Ogness <[email protected]>2022-11-16 17:27:24 +0106
committerPetr Mladek <[email protected]>2022-12-02 11:25:00 +0100
commit100bdef2c198b8dc64df011dc4a2152db913c8ba (patch)
tree49aa89134c32a85a46b6fb7d38015a12bbb37b38 /tools/perf/scripts/python/task-analyzer.py
parent4dc64682ad37abb02c54ca598430ac27de60c21a (diff)
console: introduce wrappers to read/write console flags
After switching to SRCU for console list iteration, some readers will begin readings console->flags as a data race. Locklessly reading console->flags provides a consistent value because there is at most one CPU modifying console->flags and that CPU is using only read-modify-write operations. Introduce a wrapper for SRCU iterators to read console flags. Introduce a matching wrapper to write to flags of registered consoles. Writing to flags of registered consoles is synchronized by the console_list_lock. Signed-off-by: John Ogness <[email protected]> Reviewed-by: Petr Mladek <[email protected]> Signed-off-by: Petr Mladek <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions