]> xenbits.xensource.com Git - people/hx242/xen.git/commitdiff
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)
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

index 7313e893897ba8b2cd37783b743bf6d3e2e95810..a788e55b4cbd5b40135391e160d0804c84596d12 100644 (file)
@@ -259,7 +259,6 @@ static void debugtrace_alloc_buffer(struct debugtrace_data **ptr,
 
     memset(data, '\0', debugtrace_bytes + sizeof(*data));
 
-    dt_data = data;
     *ptr = data;
 }