Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp909372imm; Wed, 15 Aug 2018 08:10:13 -0700 (PDT) X-Google-Smtp-Source: AA+uWPwN5CreQY3ogWcY8BzMfM0y4e1XO1ct6BWJXFGZAxauWOQY0ne9H5wXR49jEm24igjRJ1OU X-Received: by 2002:a63:5542:: with SMTP id f2-v6mr25986743pgm.37.1534345813476; Wed, 15 Aug 2018 08:10:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1534345813; cv=none; d=google.com; s=arc-20160816; b=oukYrVygILgErvQLXyVzOqsdzjEf9QVHb2MHFZ7wMWrWtRn/gmVsFTV0+qbh4t+6of DsEKC5QMO1PIAov1AOR3RR4JOClA9RW4mPBV7NUmURDiUU3JIDcnhTZU9GcTHZrDGhx6 8oIrr6CT4tT74wNf+26GxQRNX7380tD5dktFs4xIfoFuoYE8oxQQl/kQzyK9TZp7eorl JqA8ynAwRdmp1nJjR+UKEmnNnu66xiXZBxBdDreft+NALv7lI1Dnrgs3HTX8US5/wQCW J/CBgUFuJWPGMdBLg4uzOgVrc6QVnsF4WqPr2fZsZ8mLCu301ozKEu9OFUEa46kf1+JN 8rrw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=fKydK1GsWVVDmSjQDIf5S2e6DZIyCD4v8hDoqLQTWy0=; b=Z/buL+Df9THpeZTZf8vXcR8mGUb8nOrzvCSwA2zYaWZgIcPU2+X9vm990ZX71BXUw6 ovG0xTFgoA9sbvsTgeq8ugqu9je2t3ynLUXQoJYePY/CsQi0JV3BenQ1/95RuUWGBdU9 1/VxihJdt/vZGhIXnAGvUaPcmMjvp6ydoAonsfLMVcZpyU2FnCkuVHODFsKWPifVBm3v WAYnIFBb1ME8dlkhRi3YeByM8R0zAtSWGXa2gxD59GhClaI5flWhM5Wr1dPWqbveFlDV Mg8K+++lmLM3/GKZVWtOoT5V3GfRIxqBk1wbMUBssd+pVGgU4ipfNY0d/7mrqxzLxoVx Pb4g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cQajOxaw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b13-v6si24027249pgb.356.2018.08.15.08.09.58; Wed, 15 Aug 2018 08:10:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=cQajOxaw; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730756AbeHOSBP (ORCPT + 99 others); Wed, 15 Aug 2018 14:01:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:51110 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729528AbeHOSBO (ORCPT ); Wed, 15 Aug 2018 14:01:14 -0400 Received: from jouet.infradead.org (unknown [179.97.41.186]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 73D7621475; Wed, 15 Aug 2018 15:08:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1534345721; bh=P94DbGQ8wMZvqhYLe5rIePl5mdtYvFPlMjyK4xIN9ag=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=cQajOxawihtJlmii5MhLrELNCgLh9VYAqxUNEgYgLkd8LQlShDhRkOFxj276+ij6l q+vzN7beONrCGhOQEHYodYQVkrLSdnija+6ck+36z+TccjUvtwwggBctD8EiQvX9Rf GXt7Idpe8CkjjTrXJyXGC8URsAh5J0Qkb890sBLM= From: Arnaldo Carvalho de Melo To: Ingo Molnar Cc: Clark Williams , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Adrian Hunter , Jiri Olsa , stable@vger.kernel.org, Arnaldo Carvalho de Melo Subject: [PATCH 32/35] perf auxtrace: Fix queue resize Date: Wed, 15 Aug 2018 12:06:08 -0300 Message-Id: <20180815150611.32080-33-acme@kernel.org> X-Mailer: git-send-email 2.14.4 In-Reply-To: <20180815150611.32080-1-acme@kernel.org> References: <20180815150611.32080-1-acme@kernel.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Adrian Hunter 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 Cc: Jiri Olsa Cc: stable@vger.kernel.org Fixes: e502789302a6e ("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 --- tools/perf/util/auxtrace.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tools/perf/util/auxtrace.c b/tools/perf/util/auxtrace.c index ae8c37b219c9..db1511359c5e 100644 --- a/tools/perf/util/auxtrace.c +++ b/tools/perf/util/auxtrace.c @@ -203,6 +203,9 @@ static int auxtrace_queues__grow(struct auxtrace_queues *queues, for (i = 0; i < queues->nr_queues; i++) { list_splice_tail(&queues->queue_array[i].head, &queue_array[i].head); + 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; } -- 2.14.4