Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp3331166pxj; Tue, 1 Jun 2021 02:50:30 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx6NccYfDrY+Nh2hMP2WFygNeAlopAgBzJg8IH6GuUXGbk9p6STLjyklg7Fz/caGb5H+UPF X-Received: by 2002:a6b:5a16:: with SMTP id o22mr20742149iob.63.1622541030164; Tue, 01 Jun 2021 02:50:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622541030; cv=none; d=google.com; s=arc-20160816; b=IUc1QT+WAVq9V13dR74g902gIQGlPpZ4rghTvK8VghjHMoBSSzoxJwshCuKnUefY4S b5kNisPAoGHE8OQLnZh/WAErjdSVrl4KOMF4G0wbQyY8sSFKDqPNCrHR7zoou1UOna+a JplWLkuYfXiRS2lnefM0lQGa0RuMhq3zMfj07HyyEvfj+I1qyLQTkgsD11hXjixzldl/ uOwHpQve2qalcefH1ZSMiLvmCql3zn3lG6gpzELRImCx7cDgyuoqP9aOtrzfvdwktAjl N80XYE6okf8MviJuyoPUaH0CrHODij3tCmcWQ3NgUwFVwGRHgitHbQQnlRRpBDacN2DB oHfg== 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=EuGCCm5EZ/sX+eHD5FHi6GnTzOhSNCWdbP2mdYLbgnU=; b=gw1LjhrIMzvFgToXeW037iHls/033u3VnR9fzsrjG80cLK1k+c3iynxA2F+qLQO4We M80o6lUs7+cK1+DBuVeJnRFxp6ppiQ6NM2XDWd3LbQ2OD741fHnjx4i0aOHFdqyICWCt 8pedL2sSnFZzFZw5X7RxgbySW+qZrbJhd1IEWpFZk0DglQVv+1DZ5WgrFVPu/DM3yqSZ 26yOm5lb/Fg2lHouVUh8GrxZ7c6tr8720YfZn4F90Smqn1gycsOpFIaxb8vyWXFvgioi YYE5BJTYaBXYRea0QfmXWlhBnkqg4G156Cj7uAnwyEgvihFcveOhXmqTdje57fgarmS5 I1sw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=ujEzvQev; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s6si15190741ilj.161.2021.06.01.02.50.17; Tue, 01 Jun 2021 02:50:30 -0700 (PDT) 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=@infradead.org header.s=casper.20170209 header.b=ujEzvQev; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233351AbhFAJvE (ORCPT + 99 others); Tue, 1 Jun 2021 05:51:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46888 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233160AbhFAJu6 (ORCPT ); Tue, 1 Jun 2021 05:50:58 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7CD03C061574; Tue, 1 Jun 2021 02:49:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=EuGCCm5EZ/sX+eHD5FHi6GnTzOhSNCWdbP2mdYLbgnU=; b=ujEzvQevKkdCAW/w9IhRubqD9H 7ex6ULSAG8gXwx5HueR1BWQt0o1QbjnPD4qWvVsbfhTgN9UAsF5OdTdfinFotswHpvJMB6duQ24DD OQMaKep/FhBTAYhIsIoXFU35moBWqcfJJserOj+fnP9gbdqFMgcap6VFQhhqiHoSJZl74OfqlPf23 MDgnZ9/EB4ypM98hHhEnO9CADZRRJrSeQPQ3m7yzKj8Vn/zBpheWbvemXj+JCgEta0uM15fiuYvze atHA85j6uRQ/jNFlarND5lOgp/cLgt0+Z/F9ZyhTomT2jSOb6LKoGq4VgV+TEGCDY5qmJ8F9FLqzU Oh99UoVg==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94 #2 (Red Hat Linux)) id 1lo112-009tW8-TS; Tue, 01 Jun 2021 09:48:53 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id EEF83300223; Tue, 1 Jun 2021 11:48:51 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id B35F12011CA24; Tue, 1 Jun 2021 11:48:51 +0200 (CEST) Date: Tue, 1 Jun 2021 11:48:51 +0200 From: Peter Zijlstra To: Adrian Hunter Cc: Leo Yan , Arnaldo Carvalho de Melo , Ingo Molnar , Mark Rutland , Alexander Shishkin , Namhyung Kim , Andi Kleen , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v1 2/2] perf auxtrace: Optimize barriers with load-acquire and store-release Message-ID: References: <20210519140319.1673043-1-leo.yan@linaro.org> <20210519140319.1673043-2-leo.yan@linaro.org> <20210531151049.GE9324@leoy-ThinkPad-X240s> <20210601063342.GB10026@leoy-ThinkPad-X240s> <71b0e395-0e20-fdd1-b105-0ca1706c8ed1@intel.com> <4af1a96d-e03c-f1b4-ebce-ca869318c8cf@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4af1a96d-e03c-f1b4-ebce-ca869318c8cf@intel.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 01, 2021 at 12:45:16PM +0300, Adrian Hunter wrote: > On 1/06/21 12:17 pm, Peter Zijlstra wrote: > > On Tue, Jun 01, 2021 at 12:07:31PM +0300, Adrian Hunter wrote: > >> __sync_xxx_compare_and_swap is out-of-date now. This page: > >> > >> https://gcc.gnu.org/onlinedocs/gcc/_005f_005fsync-Builtins.html#g_t_005f_005fsync-Builtins > >> > >> recommends '__atomic' builtins instead. > > > > perf doesn't seem to use that. > > I guess we could drop support for the compat case; add validation: > > "Error, 32-bit perf cannot record AUX area traces from a 64-bit kernel. > Please use a 64-bit version of perf instead." For AUX, possibly, sadly the exact same problem exists for the normal buffer IIRC.