On 09.09.2019 11:25, Juergen Gross wrote: > The debugtrace entry count is a 32 bit variable, so it can wrap when > lots of trace entries are being produced. Making it wider would result > in a waste of buffer space as the printed count value would consume > more bytes when not wrapping. > > So instead of letting the count value grow to huge values let it wrap > and add a wrap counter printed in this situation. This will keep the > needed buffer space at today's value while avoiding to loose a way to > sort all entries in case multiple trace buffers are involved. > > Note that the wrap message will be printed before the first trace > entry in case output is switched to console early. This is on purpose > in order to enable a future support of debugtrace to console without > any allocated buffer. > > Signed-off-by: Juergen Gross <[email protected]>
Acked-by: Jan Beulich <[email protected]> _______________________________________________ Xen-devel mailing list [email protected] https://lists.xenproject.org/mailman/listinfo/xen-devel
