On Tue, Jul 21, 2020 at 7:42 AM Sergey Senozhatsky <sergey.senozhatsky@xxxxxxxxx> wrote: > > OK, so basically, extending printk_caller_id() so that for IRQ/NMI > we will have more info than just "0x80000000 + raw_smp_processor_id()". I think it's really preempt_count() that we want to have there. That has the softirq/hardirq/NMI information in it. So the "context" identifier of an incomplete write would be { task, cpu, preempt_count() } of the writer. If a new KERN_CONT writer comes in, it would have to match in that context to actually combine. You can probably play "hide the bits" tricks to not *ac tually* use three words for it. The task structure in particular tends to be very aligned, you could hide bits in the low bits there. The CPU number would fit in there, for example. Linus _______________________________________________ kexec mailing list kexec@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/kexec