debugtrace: fix buffer allocation

Commit 6338c9ead9 ("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>
This commit is contained in:
Juergen Gross authored and Jan Beulich committed 2019-09-27 14:05:34 +02:00
1 parent 66c543cc98
commit bda89ca205
1 file changed
-1
-1
View 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;
}
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.