Re: [RFC PATCH v5 1/3] printk-rb: new printk ringbuffer implementation (writer)

2019-12-08 Thread Sergey Senozhatsky
On (19/11/28 02:58), John Ogness wrote: [..] > + > +#define _DATA_SIZE(sz_bits) (1UL << (sz_bits)) > +#define _DESCS_COUNT(ct_bits)(1U << (ct_bits)) > +#define DESC_SV_BITS (sizeof(int) * 8) > +#define DESC_COMMITTED_MASK (1U << (DESC_SV_BITS - 1))

Re: [PATCH] makedumpfile: assign bitmap2 fd for sub process during refiltering

2019-12-08 Thread piliu
On 12/07/2019 06:11 AM, Kazuhito Hagio wrote: > Hi Pingfan, > >> -Original Message- >> In refiltering mode, each sub process inherits bitmap2->fd from parent. >> Then they lseek()/read() on the same fd, which means that they interference >> with each other. >> >> This breaks the

Re: [PATCH] makedumpfile/Makefile: remove -lebl from LIBS

2019-12-08 Thread piliu
On 12/07/2019 12:28 AM, Kazuhito Hagio wrote: >> -Original Message- >> >> On 12/05/2019 06:36 AM, Kazuhito Hagio wrote: >>> Hi Pingfan, >>> >>> Thank you for the patch. >>> -Original Message- since the following commit, -lebl has been removed from elfutils. commit

[PATCH v3 1/2] libfdt: include fdt_addresses.c

2019-12-08 Thread AKASHI Takahiro
In the implementation of kexec_file_loaded-based kdump for arm64, fdt_appendprop_addrrange() will be needed. So include fdt_addresses.c in making libfdt. Signed-off-by: AKASHI Takahiro Cc: Rob Herring Cc: Frank Rowand --- lib/Makefile| 2 +- lib/fdt_addresses.c | 2 ++ 2 files

[PATCH v3 0/2] arm64: kexec_file: add kdump

2019-12-08 Thread AKASHI Takahiro
This is the last piece of my kexec_file_load implementation for arm64. It is now ready for being merged as some relevant patch to dtc/libfdt[1] has finally been integrated in v5.3-rc1. (Nothing changed since kexec_file v16[2] except adding Patch#1.) Patch#1 is preliminary patches for libfdt

[PATCH v3 2/2] arm64: kexec_file: add crash dump support

2019-12-08 Thread AKASHI Takahiro
Enabling crash dump (kdump) includes * prepare contents of ELF header of a core dump file, /proc/vmcore, using crash_prepare_elf64_headers(), and * add two device tree properties, "linux,usable-memory-range" and "linux,elfcorehdr", which represent respectively a memory range to be used by