Star64_linux/arch/um/kernel
John Ogness f9f3f02db9 printk: introduce a kmsg_dump iterator
Rather than storing the iterator information in the registered
kmsg_dumper structure, create a separate iterator structure. The
kmsg_dump_iter structure can reside on the stack of the caller, thus
allowing lockless use of the kmsg_dump functions.

Update code that accesses the kernel logs using the kmsg_dumper
structure to use the new kmsg_dump_iter structure. For kmsg_dumpers,
this also means adding a call to kmsg_dump_rewind() to initialize
the iterator.

All this is in preparation for removal of @logbuf_lock.

Signed-off-by: John Ogness <john.ogness@linutronix.de>
Reviewed-by: Kees Cook <keescook@chromium.org> # pstore
Reviewed-by: Petr Mladek <pmladek@suse.com>
Signed-off-by: Petr Mladek <pmladek@suse.com>
Link: https://lore.kernel.org/r/20210303101528.29901-13-john.ogness@linutronix.de
2021-03-08 11:43:27 +01:00
..
skas um: remove process stub VMA 2021-02-12 21:37:38 +01:00
asm-offsets.c
config.c.in
dyn.lds.S vmlinux.lds.h: Split ELF_DETAILS from STABS_DEBUG 2020-09-01 09:50:35 +02:00
early_printk.c
exec.c um: remove process stub VMA 2021-02-12 21:37:38 +01:00
exitcode.c proc: convert everything to "struct proc_ops" 2020-02-04 03:05:26 +00:00
gmon_syms.c
gprof_syms.c
initrd.c
irq.c um: time-travel: rework interrupt handling in ext mode 2021-02-12 21:24:27 +01:00
kmsg_dump.c printk: introduce a kmsg_dump iterator 2021-03-08 11:43:27 +01:00
ksyms.c
maccess.c maccess: rename probe_kernel_{read,write} to copy_{from,to}_kernel_nofault 2020-06-17 10:57:41 -07:00
Makefile
mem.c asm-generic: pgalloc: provide generic pgd_free() 2020-08-07 11:33:26 -07:00
physmem.c
process.c Revert "um: allocate a guard page to helper threads" 2021-01-26 22:11:38 +01:00
ptrace.c
reboot.c
sigio.c um: Support dynamic IRQ allocation 2020-12-13 22:22:08 +01:00
signal.c treewide: Use fallthrough pseudo-keyword 2020-08-23 17:36:59 -05:00
stacktrace.c
syscall.c
sysrq.c um: Clean up stacktrace dump 2020-10-11 23:25:07 +02:00
time.c um: add a pseudo RTC 2021-02-12 21:38:52 +01:00
tlb.c um: remove process stub VMA 2021-02-12 21:37:38 +01:00
trap.c mm: clean up the last pieces of page fault accountings 2020-08-12 10:58:04 -07:00
um_arch.c um: remove process stub VMA 2021-02-12 21:37:38 +01:00
umid.c
uml.lds.S vmlinux.lds.h: Split ELF_DETAILS from STABS_DEBUG 2020-09-01 09:50:35 +02:00
vmlinux.lds.S