[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH v7 5/5] xen: add debugtrace entry when entry count is wrapping
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 <jgross@xxxxxxxx> Acked-by: Jan Beulich <jbeulich@xxxxxxxx> _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |