linux/arch/csky/include/asm
Masami Hiramatsu (Google) a494d3c8d5 ring-buffer: Flush and stop persistent ring buffer on panic
On real hardware, panic and machine reboot may not flush hardware cache
to memory. This means the persistent ring buffer, which relies on a
coherent state of memory, may not have its events written to the buffer
and they may be lost. Moreover, there may be inconsistency with the
counters which are used for validation of the integrity of the
persistent ring buffer which may cause all data to be discarded.

To avoid this issue, stop recording of the ring buffer on panic and
flush the cache of the ring buffer's memory.

Fixes: e645535a95 ("tracing: Add option to use memmapped memory for trace boot instance")
Cc: stable@vger.kernel.org
Cc: Will Deacon <will@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Cc: Ian Rogers <irogers@google.com>
Link: https://patch.msgid.link/177751969602.2136606.12031934362587643488.stgit@mhiramat.tok.corp.google.com
Signed-off-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Acked-by: Catalin Marinas <catalin.marinas@arm.com>
Acked-by: Geert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2026-05-21 08:20:58 -04:00
..
addrspace.h
asid.h
atomic.h
barrier.h csky: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers 2025-10-19 02:54:51 -04:00
bitops.h csky: Add __attribute_const__ to ffs()-family implementations 2025-09-08 14:58:50 -07:00
bug.h
cache.h csky: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers 2025-10-19 02:54:51 -04:00
cacheflush.h
cachetype.h
checksum.h
clocksource.h
cmpxchg.h
elf.h
fixmap.h
ftrace.h csky: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers 2025-10-19 02:54:51 -04:00
futex.h
highmem.h
io.h mm/ioremap: pass pgprot_t to ioremap_prot() instead of unsigned long 2025-03-16 22:06:23 -07:00
irq_work.h
irqflags.h
jump_label.h csky: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers 2025-10-19 02:54:51 -04:00
Kbuild ring-buffer: Flush and stop persistent ring buffer on panic 2026-05-21 08:20:58 -04:00
kprobes.h
memory.h
mmu_context.h
mmu.h
page.h csky: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers 2025-10-19 02:54:51 -04:00
pci.h
perf_event.h
pgalloc.h mm: call ctor/dtor for kernel PTEs 2025-05-11 17:48:21 -07:00
pgtable.h arch, mm: consolidate empty_zero_page 2026-04-05 13:53:01 -07:00
probes.h
processor.h
ptrace.h csky: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers 2025-10-19 02:54:51 -04:00
reg_ops.h
seccomp.h
sections.h csky: Remove compile warning for CONFIG_SMP 2025-10-19 20:01:52 -04:00
shmparam.h
smp.h
spinlock_types.h
spinlock.h
stackprotector.h
string.h csky: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers 2025-10-19 02:54:51 -04:00
switch_to.h
syscall.h syscall.h: add syscall_set_arguments() 2025-05-11 17:48:15 -07:00
syscalls.h
tcm.h
thread_info.h csky: Replace __ASSEMBLY__ with __ASSEMBLER__ in non-uapi headers 2025-10-19 02:54:51 -04:00
tlb.h
tlbflush.h
traps.h
uaccess.h
unistd.h
uprobes.h
vdso.h
vmalloc.h