Commit 300ec47a authored by Adrian Hunter's avatar Adrian Hunter Committed by Greg Kroah-Hartman

perf auxtrace: Fix queue resize

commit 99cbbe56 upstream.

When the number of queues grows beyond 32, the array of queues is
resized but not all members were being copied. Fix by also copying
'tid', 'cpu' and 'set'.
Signed-off-by: default avatarAdrian Hunter <>
Cc: Jiri Olsa <>
Fixes: e5027893 ("perf auxtrace: Add helpers for queuing AUX area tracing data")
Link: default avatarArnaldo Carvalho de Melo <>
Signed-off-by: default avatarGreg Kroah-Hartman <>
parent 5a842ecc
......@@ -197,6 +197,9 @@ static int auxtrace_queues__grow(struct auxtrace_queues *queues,
for (i = 0; i < queues->nr_queues; i++) {
queue_array[i].tid = queues->queue_array[i].tid;
queue_array[i].cpu = queues->queue_array[i].cpu;
queue_array[i].set = queues->queue_array[i].set;
queue_array[i].priv = queues->queue_array[i].priv;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment