Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2236664ybh; Fri, 24 Jul 2020 07:49:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxW1aoYilJYWO+pmFtJxUKVgG6zY6uD9SzKD3u5dAF/3TrM/LS+JC0dBMQVZdUXEKR7gqpD X-Received: by 2002:a50:e1cc:: with SMTP id m12mr1543797edl.378.1595602175323; Fri, 24 Jul 2020 07:49:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595602175; cv=none; d=google.com; s=arc-20160816; b=j9LsNO9Bbicsp9BHaluWIibV3dpnN5ECFqGTe4DZO0HmF3JoAbKaxgJeH9NXPJTaxC TvhNg0WKKX+md5zEt9WG0JfoYrbEMYHAsD7mOYVXmgmuyquTAocbYr9K8D5mg8zAv3ef 21llIzTyiE1ZMRXHQ5HT2AmzUeXu0RJaMjmS/zyfvI92aKj4mxHGpCa9Ywkt1AeNrrw6 kzhNNLHZFQeRkcTx+CwkInUmSZE8UJvvMmiQaDlCHQPNKRIMvsyNr528zq8uv9YKH6+u oQwnms+R6RlisFq6/jBNj2kk8Zb5wtNCq1xPg3qznCywcG3xwCbzifIUKhpWc/DRm2zq gtjg== 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 :ironport-sdr:ironport-sdr; bh=71rK664WAoi2Z6GlQ87VsbO7wye8fHYKaIiPZRpHulU=; b=Rs47hK4xxCGLYVpe7dpXb4x2hFl6NK1Du3tun4BEp9JSKEDf+UCvzlxx7BV0LzHehH 4JV5YYcABtWFmqXAraePxNaktpO2qjnU6iwdEw9lGw0+HO9x1y3XFkZ0t2vSouGmhS2m c6nxFepZQxktfr5AmC21SyO9TtJPYHQm8kmHs8w82rGeIULHO0yIMmQOreBaLpmgxszB BhYZT4TFMB6rcbmqvx7Ns50MLcrnu0u+2v9uJbVqYFGpJPkPHfEvDJBXW/lEV/l0YXkh FdbknNgyfKWiHPwHXv/KzG2yqrJAYJdCKjSPZFGH9WANTLmMm+CJ/CYz0lxCMIoztVoH Pd0w== 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 i22si684986eja.516.2020.07.24.07.49.13; Fri, 24 Jul 2020 07:49:35 -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; 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 S1726797AbgGXOqd (ORCPT + 99 others); Fri, 24 Jul 2020 10:46:33 -0400 Received: from mga02.intel.com ([134.134.136.20]:13307 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726742AbgGXOqd (ORCPT ); Fri, 24 Jul 2020 10:46:33 -0400 IronPort-SDR: lTqf57rx6xxNOd0lTPhvw0TM7yXo3R96CdrKaUMZQrSH8ziH1UPJAXtK1zGpd7qwbQ3tS6HK/n RC49HYrlSOFQ== X-IronPort-AV: E=McAfee;i="6000,8403,9691"; a="138781009" X-IronPort-AV: E=Sophos;i="5.75,391,1589266800"; d="scan'208";a="138781009" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga001.jf.intel.com ([10.7.209.18]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 24 Jul 2020 07:46:32 -0700 IronPort-SDR: inne2HZTHM7FNS7USJHHh82vmPPMo1Ua6W8m7mWQW9EbAOdCxT4RUZJgtJAvLWwwreWdNtX1ih JxfI5lUkIBzQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,391,1589266800"; d="scan'208";a="363385926" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.21]) by orsmga001.jf.intel.com with ESMTP; 24 Jul 2020 07:46:32 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id B496E301BF9; Fri, 24 Jul 2020 07:46:32 -0700 (PDT) Date: Fri, 24 Jul 2020 07:46:32 -0700 From: Andi Kleen To: Peter Zijlstra Cc: "Liang, Kan" , acme@redhat.com, mingo@kernel.org, linux-kernel@vger.kernel.org, jolsa@kernel.org, eranian@google.com, alexander.shishkin@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: <20200724144632.GE1180481@tassilo.jf.intel.com> 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> <20200724143258.GB10769@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200724143258.GB10769@hirez.programming.kicks-ass.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > 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. Okay possible, but it makes things more complicated for the user to understand and requires special documentation. Hopefully it's worth it the internal simplification. -andi