[PATCH] makedumpfile/arm64: Add '--mem-usage' support

2018-02-09 Thread Bhupesh Sharma
Its good to have the makedumpfile '--mem-usage' support for arm64 architecture as well, as it allows one to see the page numbers of current system (1st kernel) in different use. Using this we can know how many pages are dumpable when different dump_level is specified. Normally for x86_64, makedum

FW: [PATCH] makedumpfile: Fix a bug when multi-threads feature meets enospace

2018-02-09 Thread Masahiko Hayashi
>-Original Message- >From: Tachibana Masaki(橘 正樹) >Sent: Friday, February 09, 2018 8:05 PM >To: Zhou Wenjian >Cc: kexec@lists.infradead.org; Hayashi Masahiko(林 正彦) > >Subject: RE: [PATCH] makedumpfile: Fix a bug when multi-threads feature meets >enospace > >Hi Zhou, > >Sorry for the late

RE: [PATCH] makedumpfile: Fix a bug when multi-threads feature meets enospace

2018-02-09 Thread Masahiko Hayashi
Hi Zhou-san I will forward Tachibana's mail. Thank you >-Original Message- >From: Hayashi Masahiko(林 正彦) >Sent: Friday, February 09, 2018 8:24 PM >To: Zhou Wenjian >Cc: kexec@lists.infradead.org >Subject: FW: [PATCH] makedumpfile: Fix a bug when multi-threads feature meets >enospace >

Re: [PATCH v7 00/11] arm64: kexec: add kexec_file_load() support

2018-02-09 Thread AKASHI Takahiro
Hi James, On Wed, Feb 07, 2018 at 06:37:21PM +, James Morse wrote: > Hi Akashi, > > I'm still getting my head round how all this works, so please forgive what may > be stupid questions! It is my pleasure. Hopefully I will be able to address all of your concerns before submitting a new versio

Re: [PATCH v7 03/11] kexec_file: factor out crashdump elf header function from x86

2018-02-09 Thread AKASHI Takahiro
On Wed, Feb 07, 2018 at 06:37:10PM +, James Morse wrote: > Hi Akashi, > > On 04/12/17 02:57, AKASHI Takahiro wrote: > > prepare_elf_headers() can also be useful for other architectures, > > including arm64. > > What does arm64 need this for? This is generating ELF headers for something, > bu

Re: [PATCH v7 05/11] arm64: kexec_file: create purgatory

2018-02-09 Thread AKASHI Takahiro
On Wed, Feb 07, 2018 at 06:37:16PM +, James Morse wrote: > Hi Akashi, > > On 04/12/17 02:57, AKASHI Takahiro wrote: > > This is a basic purgatory, or a kind of glue code between the two kernels, > > for arm64. > > > > Since purgatory is assumed to be relocatable (not executable) object by > >

how to use kexec to jump back to the original kernel

2018-02-09 Thread Gioh Kim
Hello, "echo c > /proc/sysrq-trigger" generates the kernel dump but it reboots the system. I'd like to generate kernel dump without system reboot. I think it is possible to jump to the kdump kernel and generate kernel dump, and come back to the operating kernel with kexec. I know I can jump to th