diff options
author | Joel Colledge <joel.colledge@linbit.com> | 2019-10-19 05:19:26 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2019-10-19 12:32:31 +0200 |
commit | ca210ba32ef7537b02731bfe255ed8eb1e4e2b59 (patch) | |
tree | 98a7918375b841cc78fd3f4a4f137030ba19db12 /mm/page_owner.c | |
parent | mm/memory-failure.c: don't access uninitialized memmaps in memory_failure() (diff) | |
download | linux-ca210ba32ef7537b02731bfe255ed8eb1e4e2b59.tar.xz linux-ca210ba32ef7537b02731bfe255ed8eb1e4e2b59.zip |
scripts/gdb: fix lx-dmesg when CONFIG_PRINTK_CALLER is set
When CONFIG_PRINTK_CALLER is set, struct printk_log contains an
additional member caller_id. This affects the offset of the log text.
Account for this by using the type information from gdb to determine all
the offsets instead of using hardcoded values.
This fixes following error:
(gdb) lx-dmesg
Python Exception <class 'ValueError'> embedded null character:
Error occurred in Python command: embedded null character
The read_u* utility functions now take an offset argument to make them
easier to use.
Link: http://lkml.kernel.org/r/20191011142500.2339-1-joel.colledge@linbit.com
Signed-off-by: Joel Colledge <joel.colledge@linbit.com>
Reviewed-by: Jan Kiszka <jan.kiszka@siemens.com>
Cc: Kieran Bingham <kbingham@kernel.org>
Cc: Leonard Crestez <leonard.crestez@nxp.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/page_owner.c')
0 files changed, 0 insertions, 0 deletions