Skip to content

Commit 300ec47

Browse files
ahunter6gregkh
authored andcommitted
perf auxtrace: Fix queue resize
commit 99cbbe5 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: 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 5a842ec commit 300ec47

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

tools/perf/util/auxtrace.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ static int auxtrace_queues__grow(struct auxtrace_queues *queues,
197197
for (i = 0; i < queues->nr_queues; i++) {
198198
list_splice_tail(&queues->queue_array[i].head,
199199
&queue_array[i].head);
200+
queue_array[i].tid = queues->queue_array[i].tid;
201+
queue_array[i].cpu = queues->queue_array[i].cpu;
202+
queue_array[i].set = queues->queue_array[i].set;
200203
queue_array[i].priv = queues->queue_array[i].priv;
201204
}
202205

0 commit comments

Comments
 (0)