Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp2240590ybh; Fri, 24 Jul 2020 07:55:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx/u4FzCGGNuQG/AelHG4oBeckxYy8qK+JEKqnL8OeObxSrUd4aBFvWgrwG5Ue+qK+6VFQF X-Received: by 2002:a17:906:22c1:: with SMTP id q1mr773746eja.443.1595602523934; Fri, 24 Jul 2020 07:55:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595602523; cv=none; d=google.com; s=arc-20160816; b=aqBeNQBY4YvKkR6xJtJShRs80dpSjAxkqTE0Squ92jz4pG1scxFd3d0n3k+rrCrVAD w0SNZWbtu+TfqO7s7R5FBlA+mEy3LTNVtPh+faaXzE4ajTKBEFrrq41iHxxbRzUgCIiT OHkIq/LmYy4SJcx7J0mbpBwtGxTO94MYX6lEwHWnY9EtlCU1GDEILMUJ93ayeFzMKmrd orEM1mvdjA7GnlYpLTzoT11A/qWrHAArd+DEU9D2o8RyNI+DP+EOY1t/lxFva04QB12l a5B0KfH9qF3xSq8TnmxGRs2SSzNQa5I+6ZRu8DwwTZDAPmXclfrXD5Bvq7BI4wpYDIS+ MPAw== 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=2B6Se+TXVfPjKkzsWI7G6Ng0wHqohREHU6ITtVoF3+w=; b=0Dto7znGvvwRrsjaigwNaJCUzAQA15DCzxXLgATMCQ6Y+T/IypyipnxZzc4QNaM7Sh dDn41x5MJH8hSdNu3z1EuznLIHSR9h2Wy3VFClRXjLLB/PLvmixvKj+uCeebwt3GBSna DwC1Zy0O3aDbNh0NXfNrqQxkRa4JkFCd3CeEjlGhTqsdrWFNbnCRDLGvfwBDZgKgnjDG oiHBVJt1w/TuO1Df1gbI1BStMDo6WjGBXbR9IvMKWQgQHvyMJNlLYp+rdLrr0TJSHczR YVKT5IPMUUQIPsPNS+yGso+RxEV9Wl88Z1zZxf1Iklbr5K8UUV1watbIhDWgm4UvAdCG wBSQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=casper.20170209 header.b=BCLrHNby; 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 pg3si793513ejb.284.2020.07.24.07.55.01; Fri, 24 Jul 2020 07:55:23 -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=BCLrHNby; 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 S1726987AbgGXOvt (ORCPT + 99 others); Fri, 24 Jul 2020 10:51:49 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50426 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726170AbgGXOvt (ORCPT ); Fri, 24 Jul 2020 10:51:49 -0400 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F17BAC0619D3 for ; Fri, 24 Jul 2020 07:51:48 -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=2B6Se+TXVfPjKkzsWI7G6Ng0wHqohREHU6ITtVoF3+w=; b=BCLrHNby8+LkYLq5qEfFVN7O2Q +USXbIMPywnlJUrE4FfgdxYulgzh9nPBDe4w7k8seC+LBDjz8tWvVCgAicigRG+zH7OfdmNnRkMkd Bm2MbHDssFgXjDRzrXw0wsaUXf8SeOgWO6gskOG9EsacRRKK2093AI/kg+eiiTPoeZBtelZb+8ddE T4A5N2oQTCnr/U3tlsizRn12WiajlAnkjMlC81UaWTxL1axIe1Ar2BloDLQ99R8iFOcny6/KH21pJ oIV0y70cOLxGT+lIEMcG5NYfurKZSW+taZJcrtIwWRUkDj90uNTqCS8JVtlTfZZluYdjOqND5pg5t eT5vp8yQ==; 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 1jyz30-0005XD-VC; Fri, 24 Jul 2020 14:51:43 +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 8A530305E21; Fri, 24 Jul 2020 16:51:42 +0200 (CEST) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id 724FC236F1EA4; Fri, 24 Jul 2020 16:51:42 +0200 (CEST) Date: Fri, 24 Jul 2020 16:51:42 +0200 From: Peter Zijlstra To: Andi Kleen Cc: kan.liang@linux.intel.com, 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: <20200724145142.GC10769@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> <20200724143908.GC1180481@tassilo.jf.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200724143908.GC1180481@tassilo.jf.intel.com> 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 07:39:08AM -0700, Andi Kleen wrote: > > The consequence is that SLOTS must be the leader, is that really a > > problem? You keep providing the {cycles, slots, metric-things} example, > > Yes that's a problem. One (major) use case for topdown is to > sample on lots of different events, but always create groups that > also measure topdown metrics for that sampling period. For that we need > other leaders. Apparently the only problem here is the tool, the kernel doesn't care which events in a group are sampling, there could be multiple.