Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp2513905pxb; Tue, 9 Mar 2021 04:37:45 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSLXIPyGsoyOMWLBq85ovwjo6CB7y8Cxhkn2rZ4rDgw9lH7tWWIJ5Smi4BR+EB7i4AsLDv X-Received: by 2002:a17:906:3685:: with SMTP id a5mr20969674ejc.352.1615293465374; Tue, 09 Mar 2021 04:37:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615293465; cv=none; d=google.com; s=arc-20160816; b=OmnYPDxUxQfR8PDbghKybR06odrHluArNCJRK4W4l62ldRc7gxTjpXr99vSx9lkTZR 0sNbscsA63yQPtvsSUUeRwlkn+aqTOTK1yhQAa0dZbYdz7XvI1RdJlEP1Py85lYMCjt6 7iTMYmjee4ae37I/gz/BBFnmig8gitVee7/U/O7MHDVRilOpE1xT/n0yxY6mTkeAJUzb 2vpSb4gh8ZOixjPl2asIAHqltg3tlt1jRpyFZzVzAPZL+EFiZ8+s+1D2MH2ZW7X2wTju F+itnMa1f+c6HMx1OD9NmnvfCRxnUPSGIfAFtysGfgoIb8vKoSdVHeCP8DQaiBJ/5kI9 5aIQ== 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:dkim-signature; bh=EZpE4Qt22npMDDI+Oj9yrAyQQtoZ47no8EPTFQxLQxQ=; b=phZAoHW02PSIWCjAKcrT5ADCj3UP6iF3+rXICx8Fqy6A9EdM+PUAUfvGNCvbKJQAup IQu1Q4e0iRv0TIOzxPTPucVbDORuQdApyPyuptt1AyHat6Xxk9KOry4FrL+zaiuDFZxc Qzgiy7ML1LFnH9BUyeukN0AH8QAXuiKCBaszCnF7MnwDfjko0PieaA6FkDrkXNidfGf0 y4nUTR0NPtC+A9hiZZCu6tzodWtMooZYkl6Gsric3I8ny/dirfjTTjd/3C+62HY8vUTa Ch0fzkA2aq29Br8OZEr9EvbCsMS0FTiu4OUbEP9J+XyDBpFa4/Mg9dgrsoF3QrFozVLy ux8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZNaiJbVM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l6si8203068ejo.624.2021.03.09.04.37.21; Tue, 09 Mar 2021 04:37:45 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=ZNaiJbVM; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230386AbhCIMgO (ORCPT + 99 others); Tue, 9 Mar 2021 07:36:14 -0500 Received: from mail.kernel.org ([198.145.29.99]:36380 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229815AbhCIMfr (ORCPT ); Tue, 9 Mar 2021 07:35:47 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id C6ADE6523F; Tue, 9 Mar 2021 12:35:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1615293347; bh=PzdBHv9A/D94ZQ+PYzPZx3jQMymmM/7oZH9V8vqLcFs=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ZNaiJbVMZKT3h8tZ43ZSVDJ/7Rh4a3IFgSr5CLh5KW+DiGSlKpCZ7r+EYaMGueHAW HDBLm+W+N79AtlXP0jtAiUOnWO/HydzI7lhJuzcugEv3+7cDJ0G0lMh2n3WqULP2PO UBntNWIYeZ45Jr87BDpgU/CDOfRmGglV3LXk3f0P3GTqvBbFKAQ2sS4hmvtc5sdRmr 58C8WWuq+VVuvLAmR53XA0Ld3GHn6gRHkIY5GQgWt3kcYpwpnVJ/QUcpTjMvYs35UM DjCKwShBZGSoxcXPcyjzPQ49cJkdi8oR9c2s+/WWzS7RsQILsnfv/ctjZ4C988JAa/ GJbWnyAHsC50Q== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 390B840647; Tue, 9 Mar 2021 09:35:42 -0300 (-03) Date: Tue, 9 Mar 2021 09:35:42 -0300 From: Arnaldo Carvalho de Melo To: Andi Kleen Cc: Adrian Hunter , Jiri Olsa , linux-kernel@vger.kernel.org Subject: Re: [PATCH] perf auxtrace: Fix auxtrace queue conflict Message-ID: References: <20210308151143.18338-1-adrian.hunter@intel.com> <20210308165437.GA203350@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210308165437.GA203350@tassilo.jf.intel.com> X-Url: http://acmel.wordpress.com Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Em Mon, Mar 08, 2021 at 08:54:37AM -0800, Andi Kleen escreveu: > 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 Thanks, applied. - Arnaldo