debugtrace: fix buffer allocation
authorJuergen Gross <jgross@suse.com>
Fri, 27 Sep 2019 12:05:34 +0000 (14:05 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 27 Sep 2019 12:05:34 +0000 (14:05 +0200)
commitbda89ca205a629cb2ae8a5cdd460c55870f2068d
tree333e1c37912a61f3af126995989756411385e8c0
parent66c543cc986ad3b0fc0035367d9ce324ab72514e
debugtrace: fix buffer allocation

Commit 6338c9ead9ff9ef6 ("debugtrace: add per-cpu buffer option") had
a rebase error when using per-cpu buffers: the global buffer address
would always be set to the one of the last per-cpu buffer allocated.

The result would be that when dumping the buffers the last cpu's buffer
is always shown as empty as those entries are printed in the global
buffer's dump already.

Fix that.

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