mirror of
https://github.com/torvalds/linux.git
synced 2024-11-30 08:01:59 +00:00
6555acdefc
Add a message type to the time-travel protocol to broadcast a small (64-bit) value to all participants in a simulation. The main use case is to have an identical message come to all participants in a simulation, e.g. to separate out logs for different tests running in a single simulation. Down in the guts of time_travel_handle_message() we can't use printk() and not even printk_deferred(), so just store the message and print it at the start of the userspace() function. Unfortunately this means that other prints in the kernel can actually bypass the message, but in most cases where this is used, for example to separate test logs, userspace will be involved. Also, even if we could use printk_deferred(), we'd still need to flush it out in the userspace() function since otherwise userspace messages might cross it. As a result, this is a reasonable compromise, there's no need to have any core changes and it solves the main use case we have for it. Signed-off-by: Mordechay Goodstein <mordechay.goodstein@intel.com> Link: https://patch.msgid.link/20240702192118.c4093bc5b15e.I2ca8d006b67feeb866ac2017af7b741c9e06445a@changeid Signed-off-by: Johannes Berg <johannes.berg@intel.com> |
||
---|---|---|
.. | ||
skas | ||
asm-offsets.c | ||
config.c.in | ||
dtb.c | ||
dyn.lds.S | ||
early_printk.c | ||
exec.c | ||
exitcode.c | ||
gprof_syms.c | ||
initrd.c | ||
ioport.c | ||
irq.c | ||
kmsg_dump.c | ||
ksyms.c | ||
load_file.c | ||
maccess.c | ||
Makefile | ||
mem.c | ||
physmem.c | ||
process.c | ||
ptrace.c | ||
reboot.c | ||
sigio.c | ||
signal.c | ||
stacktrace.c | ||
sysrq.c | ||
time.c | ||
tlb.c | ||
trap.c | ||
um_arch.c | ||
um_arch.h | ||
umid.c | ||
uml.lds.S | ||
vmlinux.lds.S |