diff options
author | 2021-03-03 11:15:14 +0100 | |
---|---|---|
committer | 2021-03-08 11:42:37 +0100 | |
commit | fdd2c1f4e2c2e2fee1d95d18b4b06bc0d15c368a (patch) | |
tree | 675cb1c8dbc8fb10b73f5d7e3eb3218c515e3f2d /scripts/gdb/linux/utils.py | |
parent | Merge tag 'printk-for-5.12' of git://git.kernel.org/pub/scm/linux/kernel/git/printk/linux (diff) | |
download | wireguard-linux-fdd2c1f4e2c2e2fee1d95d18b4b06bc0d15c368a.tar.xz wireguard-linux-fdd2c1f4e2c2e2fee1d95d18b4b06bc0d15c368a.zip |
um: synchronize kmsg_dumper
The kmsg_dumper can be called from any context and CPU, possibly
from multiple CPUs simultaneously. Since a static buffer is used
to retrieve the kernel logs, this buffer must be protected against
simultaneous dumping. Skip dumping if another context is already
dumping.
Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20210303101528.29901-2-john.ogness@linutronix.de
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions