diff options
author | John Ogness <[email protected]> | 2022-04-21 23:28:44 +0206 |
---|---|---|
committer | Petr Mladek <[email protected]> | 2022-04-22 21:30:57 +0200 |
commit | a699449bb13b70b8bd10dc03ad7327ea3993221e (patch) | |
tree | 3579b59c7edc475013ae769a2d26d99733c95f13 /tools/perf/scripts/python | |
parent | 1fc0ca9e0db61882208650b3603071e9f4b5cfee (diff) |
printk: refactor and rework printing logic
Refactor/rework printing logic in order to prepare for moving to
threaded console printing.
- Move @console_seq into struct console so that the current
"position" of each console can be tracked individually.
- Move @console_dropped into struct console so that the current drop
count of each console can be tracked individually.
- Modify printing logic so that each console independently loads,
prepares, and prints its next record.
- Remove exclusive_console logic. Since console positions are
handled independently, replaying past records occurs naturally.
- Update the comments explaining why preemption is disabled while
printing from printk() context.
With these changes, there is a change in behavior: the console
replaying the log (formerly exclusive console) will no longer block
other consoles. New messages appear on the other consoles while the
newly added console is still replaying.
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')
0 files changed, 0 insertions, 0 deletions