Skip to content

Commit 99cbbe5

Browse files
ahunter6acmel
authored andcommitted
perf auxtrace: Fix queue resize
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: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: stable@vger.kernel.org Fixes: e502789 ("perf auxtrace: Add helpers for queuing AUX area tracing data") Link: http://lkml.kernel.org/r/20180814084608.6563-1-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 5508672 commit 99cbbe5

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tools/perf/util/auxtrace.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,9 @@ static int auxtrace_queues__grow(struct auxtrace_queues *queues,
203203
for (i = 0; i < queues->nr_queues; i++) {
204204
list_splice_tail(&queues->queue_array[i].head,
205205
&queue_array[i].head);
206+
queue_array[i].tid = queues->queue_array[i].tid;
207+
queue_array[i].cpu = queues->queue_array[i].cpu;
208+
queue_array[i].set = queues->queue_array[i].set;
206209
queue_array[i].priv = queues->queue_array[i].priv;
207210
}
208211

0 commit comments

Comments
 (0)