Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp2328772pxx; Sat, 31 Oct 2020 16:47:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx3iDXbxtdc0ZI+cp7D8HbSdG2gXbJ9SSkm7caukK7TDd3TJAZSXC8TcVSEBLRO+BCcbtRV X-Received: by 2002:a17:906:4d93:: with SMTP id s19mr4480591eju.271.1604188026256; Sat, 31 Oct 2020 16:47:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1604188026; cv=none; d=google.com; s=arc-20160816; b=H4PVm+Y9QmyWe7A1k+eY3DsqWjVrqhNoij+tAVtDPww22qEliA26AE04rVE4a5fuC+ eufN1KI1GDh7afOl98h8JcF1uUT6FrQaP05NI/UJ2R1Lzitme8LvfXepQS1K6RyLfcCI uE2T1qO0coVYCzkFk0ehjmg17Z32p6/46GAFVk7VT3dz+kK2grCtBTPxG3W8h8vut+hu ZWB5jgMu9LHifjKu6eQT/dnXCcTdQFiruXrW6IIA8THYDj2Pu0jcAahdQie6Mo40dzci HUETckbvY7NAZwL4yobzPKsosrDZftDnCYd6/wbhdcJ1vwWdr0/cYOH3pQXfNZovLYqp Czkw== 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=HVEaX24foGVerXKBE1NKNTsd3ZTUvmwtHbnXS4YnDvo=; b=TvKO8Ds5p4XPelfu1cGW1qWahoHOsxQTv+grPibc2nQRsoxNBshC4PPxW3fTSrnP7f ibmGCpa4O7oWyBS772wGqQx53jDAFlIesfkx7NCFDrtxNwgNqQnb8vq27TWv/DVofYS2 UHG/P3o7WAYjqib4iebKfytCijth0rk+OuaOGs1sm5rvITPZYsf31FG7T9eNUlc99BNr Q5J1WiVxmucznW/Y+t4xVlQlKhEvqhcqld9dlgCl/rSF8dxF+eiuUqv8WbE/Jizcb5HZ fNFbTdhiNGLHUangCk23Zer/wHwUytVK2w5WHP1nQrfMz6yYnuxmZzbx2jDHqE3hIrzm ln8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=gjhddm+k; 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=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id n12si8288147edq.44.2020.10.31.16.46.42; Sat, 31 Oct 2020 16:47:06 -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=@redhat.com header.s=mimecast20190719 header.b=gjhddm+k; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725999AbgJaXo2 (ORCPT + 99 others); Sat, 31 Oct 2020 19:44:28 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:32994 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725873AbgJaXo2 (ORCPT ); Sat, 31 Oct 2020 19:44:28 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1604187866; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=HVEaX24foGVerXKBE1NKNTsd3ZTUvmwtHbnXS4YnDvo=; b=gjhddm+kcg2jaXd3zDO36XmB0HSIdmPaDWk6jVHoIO6ip6mC6wrjxFpWEMZT+zS7H85hY2 ySqvR7qnByY7w35rDeDBSmJgUegPnvOIMyfaELIkXza7eYFGfdr7JaLA2z1K1cfEbK1j6m vrP5voV4/B5Q2lWOoOQt3avRiraIYPg= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-486-ZsAqa4_9O1S35aJVlCq8cw-1; Sat, 31 Oct 2020 19:44:22 -0400 X-MC-Unique: ZsAqa4_9O1S35aJVlCq8cw-1 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 10E3680362B; Sat, 31 Oct 2020 23:44:21 +0000 (UTC) Received: from krava (unknown [10.40.192.83]) by smtp.corp.redhat.com (Postfix) with SMTP id 048FC5D993; Sat, 31 Oct 2020 23:44:18 +0000 (UTC) Date: Sun, 1 Nov 2020 00:44:18 +0100 From: Jiri Olsa To: Peter Zijlstra Cc: mingo@kernel.org, acme@kernel.org, mark.rutland@arm.com, alexander.shishkin@linux.intel.com, namhyung@kernel.org, linux-kernel@vger.kernel.org, eranian@google.com, ak@linux.intel.com Subject: Re: [PATCH v2 0/4] perf: Fix perf_event_attr::exclusive rotation Message-ID: <20201031234418.GE3380099@krava> References: <20201029162719.519685265@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20201029162719.519685265@infradead.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Oct 29, 2020 at 05:27:19PM +0100, Peter Zijlstra wrote: > Hi, > > Andi recently added exclusive event group support to tools/perf: > > https://lkml.kernel.org/r/20201014144255.22699-1-andi@firstfloor.org > > and promptly found that they didn't work as specified. > > (sorry for the resend, I forgot LKML the first time) hm, it's too late for me to check ;-) but should I be able to do this with exclusive event.. running both command at the same time: $ sudo ./perf stat -e cycles:e -I 1000 # time counts unit events 1.002430650 33,946,849 cycles:e 2.004920725 502,399,986 cycles:e (67.57%) 3.007087631 859,745,048 cycles:e (50.00%) 4.009078254 845,860,723 cycles:e (50.00%) 5.011086104 838,457,275 cycles:e (50.00%) $ sudo ./perf stat -e cycles:e -I 1000 # time counts unit events 1.001665466 848,973,404 cycles:e (50.01%) 2.003658048 856,505,255 cycles:e (50.00%) 3.005658022 842,737,973 cycles:e (50.00%) 4.007657797 844,800,598 cycles:e (50.00%) jirka