summaryrefslogtreecommitdiffstats
path: root/scripts/gdb/linux/utils.py
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2020-07-09 15:29:44 +0206
committerPetr Mladek <pmladek@suse.com>2020-07-10 08:48:55 +0200
commit896fbe20b4e2333fb55cc9b9b783ebcc49eee7c7 (patch)
treeb25611c8c4ae2f772ced56d89afaa011a8171869 /scripts/gdb/linux/utils.py
parent8749efc0c0c325bf0c948c0b11d77bd3e497ead5 (diff)
downloadlinux-896fbe20b4e2333fb55cc9b9b783ebcc49eee7c7.tar.gz
linux-896fbe20b4e2333fb55cc9b9b783ebcc49eee7c7.tar.bz2
linux-896fbe20b4e2333fb55cc9b9b783ebcc49eee7c7.zip
printk: use the lockless ringbuffer
Replace the existing ringbuffer usage and implementation with lockless ringbuffer usage. Even though the new ringbuffer does not require locking, all existing locking is left in place. Therefore, this change is purely replacing the underlining ringbuffer. Changes that exist due to the ringbuffer replacement: - The VMCOREINFO has been updated for the new structures. - Dictionary data is now stored in a separate data buffer from the human-readable messages. The dictionary data buffer is set to the same size as the message buffer. Therefore, the total required memory for both dictionary and message data is 2 * (2 ^ CONFIG_LOG_BUF_SHIFT) for the initial static buffers and 2 * log_buf_len (the kernel parameter) for the dynamic buffers. - Record meta-data is now stored in a separate array of descriptors. This is an additional 72 * (2 ^ (CONFIG_LOG_BUF_SHIFT - 5)) bytes for the static array and 72 * (log_buf_len >> 5) bytes for the dynamic array. 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/20200709132344.760-5-john.ogness@linutronix.de
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions