Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1897510pxb; Mon, 8 Mar 2021 08:56:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJzMl9/WU9ak4VdnFTGvFiHvq0Wic+jM+NtpGm/C9Cn5UsUixEIFDcvdrYICJc15R930KFe7 X-Received: by 2002:a05:6402:1cc1:: with SMTP id ds1mr19219267edb.135.1615222619095; Mon, 08 Mar 2021 08:56:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615222619; cv=none; d=google.com; s=arc-20160816; b=b2+bM/K3XHSsHSkeFWrGeCgKAajrOHwlk8M5IqE2ZzZADIAO2OGo8E3e+IEbGNVhjC pM9waOw7C+bOUmn0vwKBSD1X/lCpz3B0tkzFiz8NZUuZTH9k6w6oHGj65HDp5Zvc5tFR YKoafgh1uiaGtZkbCZrt/CH6QeT4WaoelRfXZcdY1EWoRvXdD8NzKrKXc1+HG2sDyep4 pNL+F3Ye9ntR2aVj7kFArfVP6z40slN4eB/x+QrU+5bEvVdbDE3KtNTiNJYr0D7qZced PCia2/Kl+CsfD6YwpTFkWiTorSvciwg+Mpq9hcCpm1Mhni4fyp7vFVzLzecQzbpAhbr0 /nKQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:ironport-sdr :ironport-sdr; bh=aWMDu/LlqTDDDPJDx5waXIKqwY/lqo3HgDL8sjbpcQY=; b=mddkR3knefkLCnVVz+sbgZyUGwtKWEsLAuZafnOSTjDRJbpvjkv17CZErexfAk7ELR Z5NEZEQjVKTBmnOknc2/MKt7CNeBlLClhvkdQpVD0SBKDsr61sYVQOfTmUJ78ZCpQe7I kwWSfdGgOtmLM+JawtAg8lkjwXS4kTcJtyzon6Z7aA59kbUuFwaIsJ/OzsSN71m42Aai VY3DYQoZsX3CVNdtqtCjKVBxfP5nzkhIiTGrG2tQqRXwILReixEJZMbSP1VTp2dK3DHs i61yUFXZMuTDXlbuVS/caXM9qhfQ/LasAtdKQe6x7RGF1fU9i7JKykwLziMamzmFEFSS CyBA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id pk25si7550786ejb.402.2021.03.08.08.56.35; Mon, 08 Mar 2021 08:56:59 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229818AbhCHQyn (ORCPT + 99 others); Mon, 8 Mar 2021 11:54:43 -0500 Received: from mga01.intel.com ([192.55.52.88]:34620 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229790AbhCHQyn (ORCPT ); Mon, 8 Mar 2021 11:54:43 -0500 IronPort-SDR: 898Xm2NgKOIHwiVJ3iaYeL2/igbzwnruKElMWUXt4FANA0LKougCVeyQ6CSnoE8NJwvVMtTyOH aT8nSNwoYtJg== X-IronPort-AV: E=McAfee;i="6000,8403,9917"; a="207831945" X-IronPort-AV: E=Sophos;i="5.81,232,1610438400"; d="scan'208";a="207831945" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2021 08:54:43 -0800 IronPort-SDR: pbFnx7iBOrbMc2QALC+mxcPEvXgco+DtPPXnpBxnGJEXO8ORlqKUl8v7VeObfdKSR1zv+kH540 W9wM4FhOcuSA== X-IronPort-AV: E=Sophos;i="5.81,232,1610438400"; d="scan'208";a="447192324" Received: from tassilo.jf.intel.com ([10.54.74.11]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Mar 2021 08:54:42 -0800 Date: Mon, 8 Mar 2021 08:54:37 -0800 From: Andi Kleen To: Adrian Hunter Cc: Arnaldo Carvalho de Melo , Jiri Olsa , linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf auxtrace: Fix auxtrace queue conflict Message-ID: <20210308165437.GA203350@tassilo.jf.intel.com> References: <20210308151143.18338-1-adrian.hunter@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210308151143.18338-1-adrian.hunter@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 08, 2021 at 05:11:43PM +0200, Adrian Hunter wrote: > The only requirement of an auxtrace queue is that the buffers are in > time order. That is achieved by making separate queues for separate > perf buffer or AUX area buffer mmaps. > > That generally means a separate queue per cpu for per-cpu contexts, > and a separate queue per thread for per-task contexts. > > When buffers are added to a queue, perf checks that the buffer cpu > and thread id (tid) match the queue cpu and thread id. > > However, generally, that need not be true, and perf will queue > buffers correctly anyway, so the check is not needed. > > In addition, the check gets erroneously hit when using sample mode > to trace multiple threads. > > Consequently, fix that case by removing the check. Thanks! Reviewed-by: Andi Kleen -Andi