Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2226626ybh; Fri, 24 Jul 2020 07:34:09 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwwFc/aTNdGMDmi0qQdN9YpoJu51I4onRWI0aydUBq3uFtJstg/uuO8qBFnQxR/NrG/UnHH X-Received: by 2002:a17:906:7005:: with SMTP id n5mr8983568ejj.130.1595601249492; Fri, 24 Jul 2020 07:34:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595601249; cv=none; d=google.com; s=arc-20160816; b=yPm8wL2HzOcwIjOTfclP3OL+wqlMDIg3Os4lG+t3+l6WynHK/Z/bPOL3w8eEtmj/Bb d5naEqtVbVVZ8NxNiC+2FbpEwnGG7iNfXzanZGTIGSbT7U6nHXkZMmXI+BnbzKDPYifc o3zoUzx3NlmiEnOEon6MUA6FYr5rIlAW3v4Ocn3l20VTVtQLx6hJdha1Iz+LyN2avSvz uCm+rzZmMjDlWXFJvICbTyFHwPvcE/KURpnHC5vOx+TnkvnS2cwgUMXWq/Uj24pYIq3M YpF4y+upk6bREp81BYH6aU8vGKmvHAJ/wUSJPJL0WnO4XMrMfgveREsxjO7ycsmgqODk bCFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=4UGTeHmPvAoHFmZA19Z82u8cRZVtr7mrJj6fR5zLp14=; b=vhzdqtmN4NYCkZplq92bHPlHXX7clKY54VBtRbvFbvORhALGukp3uRWp6oCl73WnKu sgZTA1U7IAle1swmRTuz4FjGjcwFD2M5+yTvCQYEQXBI+0xpqkH/T6GQj3R7nw+asl1s WLq5HZkHB4G38zWwLBMydxajQsBH83ggUeM1K/0aSZKpdF5172H6pApEnfgM8xCDAcvg c8Yd1gKzjY/E4tGxshVLv3EhV4be3iirioHYBUY2WUiN0xfPCLz4Ox3HfiZ9VNpWBlOw 64Q3rpZhnGeD/g7TkK2PZ8CmnnsKGJx54F6Q9dGhRfTJvUA0wR+JAJR2U6PNGH11+PCf kqkA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=mjyFfMr2; 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 y97si641047ede.234.2020.07.24.07.33.46; Fri, 24 Jul 2020 07:34:09 -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=fail header.i=@infradead.org header.s=casper.20170209 header.b=mjyFfMr2; 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 S1727014AbgGXOdI (ORCPT + 99 others); Fri, 24 Jul 2020 10:33:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726643AbgGXOdH (ORCPT ); Fri, 24 Jul 2020 10:33:07 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 1015AC0619D3 for ; Fri, 24 Jul 2020 07:33:07 -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=4UGTeHmPvAoHFmZA19Z82u8cRZVtr7mrJj6fR5zLp14=; b=mjyFfMr2bOGMooupG2Q67a4XZ4 KB+gd+sOe+wnnSd1xVp/TlXVejBlDeiHDwzIXyHAlR/9BJ496wIdoB3rtbQd+dqBGqeLlzf62EY2m 0KRXJmSt0WC0OSqmzsozpqSBZFGloHzJ+U8DzKVO3y+eKdzuSG3LR6e9JdzPtsJiRwM6pqKxYZ6eC XEzAriISnyEad4vd++k7eDrGD/LLX3F9ral6R7wEctDEthD7ZNviH7ul793PbzbTNxdxfMq6ciY6v 1GM7phiodX32MU80cJLNngSeTKEvPRMJwkzUf/72JTuO+DdBFUfuXRyecNBdnnPfGwyhscvPPfRo8 oGtVDSfA==; 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.92.3 #3 (Red Hat Linux)) id 1jyyku-0004Rx-Sj; Fri, 24 Jul 2020 14:33:01 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 4AFC4304E03; Fri, 24 Jul 2020 16:32:58 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 3654323645594; Fri, 24 Jul 2020 16:32:58 +0200 (CEST) Date: Fri, 24 Jul 2020 16:32:58 +0200 From: Peter Zijlstra To: "Liang, Kan" Cc: acme@redhat.com, mingo@kernel.org, linux-kernel@vger.kernel.org, jolsa@kernel.org, eranian@google.com, alexander.shishkin@linux.intel.com, ak@linux.intel.com, like.xu@linux.intel.com Subject: Re: [PATCH V7 07/14] perf/core: Add a new PERF_EV_CAP_COEXIST event capability Message-ID: <20200724143258.GB10769@hirez.programming.kicks-ass.net> References: <20200723171117.9918-1-kan.liang@linux.intel.com> <20200723171117.9918-8-kan.liang@linux.intel.com> <20200724105543.GV119549@hirez.programming.kicks-ass.net> <20200724114628.GJ43129@hirez.programming.kicks-ass.net> <0d33a25c-cfe4-af7f-c915-a98dba17b53b@linux.intel.com> <20200724135412.GA10769@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jul 24, 2020 at 10:19:25AM -0400, Liang, Kan wrote: > There will be a problem for the current perf tool, which assumes that the > leader event is the sampling event. > > I will check how can we specially handle it in the perf tool. Ah, okay. I've long lost track of how the tool works :/ Something that seems to 'work' is: '{cycles,cpu/instructions,period=50000/}', so maybe you can make the group modifier :S use any sampling event if there is one, and otherwise designate the leader. Then you can write things like: '{slots, metric1, metric2, cpu/cycles,freq=50000/}:S' and then since cycles is specified as a sampling event, it will use that.