xen: refactor debugtrace data
authorJuergen Gross <jgross@suse.com>
Mon, 9 Sep 2019 12:37:25 +0000 (14:37 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 9 Sep 2019 12:37:25 +0000 (14:37 +0200)
commitaf5793cac20cff6f60fb2f8ed19c5af1201943be
tree60f487ed8e5a969a498a8a37341ab97cef6f5c2b
parent7110d6d8d8cc974da34d9b60e9a5546277a41e0f
xen: refactor debugtrace data

As a preparation for per-cpu buffers do a little refactoring of the
debugtrace data: put the needed buffer admin data into the buffer as
it will be needed for each buffer. In order not to limit buffer size
switch the related fields from unsigned int to unsigned long, as on
huge machines with RAM in the TB range it might be interesting to
support buffers >4GB.

While at it switch debugtrace_send_to_console and debugtrace_used to
bool and delete an empty line.

Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/common/debugtrace.c