mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH V3 0/2] Improve vmcoreinfo and memory layout dump
@ 2022-07-14 11:32 Xianting Tian
  2022-07-14 11:32 ` [PATCH V3 1/2] RISC-V: Add arch_crash_save_vmcoreinfo support Xianting Tian
  2022-07-14 11:33 ` [PATCH V3 2/2] riscv: Add modules to virtual kernel memory layout dump Xianting Tian
  0 siblings, 2 replies; 3+ messages in thread
From: Xianting Tian @ 2022-07-14 11:32 UTC (permalink / raw)
  To: paul.walmsley, palmer, aou, alexandre.ghiti, guoren, anup, mick,
	rppt, heiko
  Cc: linux-riscv, linux-kernel, huanyi.xj, Xianting Tian

This patch series are the improvements for vmcoreinfo and memory
layout dump.

The first patch(1/2) is to add VM layout to vmcoreinfo, which can
simlify the development of crash tool as ARM64 already did
(arch/arm64/kernel/crash_core.c).

The second patch(2/2) is to add MODULES to memory layout dump.

Changes v1 -> v2:
 patch 1: add VA_BITS to vmcoreinfo as ARM64 does, not satp_mode.
          crash tool can read VA_BITS to determin the pagetable
          levels.
 patch 1,2: As MODULES area is only defined when CONFIG_64BIT=y for
            riscv64, so only use MODULES area when CONFIG_64BIT=y.
Changes v2 -> v3:
 patch 1,2: use "#ifdef CONFIG_64BIT" instead of "IS_ENABLED(CONFIG_64BIT)"
            when check whether MODULES area is available.

Xianting Tian (2):
  RISC-V: Add arch_crash_save_vmcoreinfo support
  riscv: Add modules to virtual kernel memory layout dump

 arch/riscv/kernel/Makefile     |  1 +
 arch/riscv/kernel/crash_core.c | 29 +++++++++++++++++++++++++++++
 arch/riscv/mm/init.c           |  4 ++++
 3 files changed, 34 insertions(+)
 create mode 100644 arch/riscv/kernel/crash_core.c

-- 
2.17.1


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-07-14 11:33 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-07-14 11:32 [PATCH V3 0/2] Improve vmcoreinfo and memory layout dump Xianting Tian
2022-07-14 11:32 ` [PATCH V3 1/2] RISC-V: Add arch_crash_save_vmcoreinfo support Xianting Tian
2022-07-14 11:33 ` [PATCH V3 2/2] riscv: Add modules to virtual kernel memory layout dump Xianting Tian

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®