summaryrefslogtreecommitdiffstats
path: root/scripts/gen_ksymdeps.sh
diff options
context:
space:
mode:
authorJohn Ogness <john.ogness@linutronix.de>2021-12-15 16:10:22 +0100
committerPetr Mladek <pmladek@suse.com>2021-12-16 15:52:38 +0100
commitdeaee2704a157dfcca77301ddaa10c62a9840952 (patch)
tree6819bcd9d613ef494328fc414d173412429316ef /scripts/gen_ksymdeps.sh
parentvsprintf: Use non-atomic bitmap API when applicable (diff)
downloadlinux-deaee2704a157dfcca77301ddaa10c62a9840952.tar.xz
linux-deaee2704a157dfcca77301ddaa10c62a9840952.zip
scripts/gdb: lx-dmesg: read records individually
For the gdb command lx-dmesg, the entire descriptor, info, and text data regions are read into memory before printing any records. For large kernel log buffers, this not only causes a huge delay before seeing any records, but it may also lead to python errors of too much memory allocation. Rather than reading in all these regions in advance, read them as needed and only read the regions for the particular record that is being printed. The gdb macro "dmesg" in Documentation/admin-guide/kdump/gdbmacros.txt already prints out the kernel log buffer like this. Signed-off-by: John Ogness <john.ogness@linutronix.de> Signed-off-by: Petr Mladek <pmladek@suse.com> Link: https://lore.kernel.org/r/874k79c3a9.fsf@jogness.linutronix.de
Diffstat (limited to 'scripts/gen_ksymdeps.sh')
0 files changed, 0 insertions, 0 deletions