Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp907753ybt; Fri, 26 Jun 2020 14:45:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxg814ppkLpS78TLSVlISgX2m6kTT4xQLLucZHy7V7gFyy89qZjZy2DUGujg4WqN5LQ6isf X-Received: by 2002:a05:6402:947:: with SMTP id h7mr5553892edz.213.1593207903027; Fri, 26 Jun 2020 14:45:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593207903; cv=none; d=google.com; s=arc-20160816; b=qIxyWZPNKnbP25xi8OGVewYzEmnZoARsd19IlpKbE9ikgCz2xwllk2n0yqIVEwn/Gu JxzajZIG/7+/VqdhnNMe5fF5YugcL8Qnsp5RPSAUmh5KuHk40g5c/Ql/LEeWKaxG7cKD UAxdH5kZKbtPeCP8h2SZV4q1yKve1C/ji0i7BT3uTFrBZLNrg7At90XbdXT/3Krc1hF1 8Z7/J661Cj6sR5A7torIa+fTnGvVY7R6C1F5BsrRGZSeliSaL52u5Q4YgBSGhLI2nQBs 3L8LBKB7ZFxtkzELG7alhb+8iTRxW1t9GWfyeMQ1n66AtiIKWXKBIrL4HuqnzDpz8kRN 998w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=Q1+9uR2cQTSLPsT8QyUR/Cg47J1BAdwHYi4CR0KpoXQ=; b=hfJlicPxSGxvbxFU17U4b+rNT+XUYKnzSJy7a4FriN/Ws9BftELnI7lEFKjCs6IyuV saXv98P5r6d2iLg3YbnBm/UxgXNGhsx5HyDeRlGTCr310lxJx6nwUOvctypF6Ym57iRX x80OISdCmlcR+no8jlhvBA4ncSTeDEWqfrva3miIlhogosA7Zh+e8GlzlOsTkpFjKmUO 4PA5Naqtj4mNECd9TEyF7HoxCnud5pkjg5cLhlo+B21vdfQ0e6ZghfWOcpF7PEaECIvr 4V60qorsEWyuOvA4Qtgr9Z0owW7/cFgjHcqQd58s65tzEVWYN8P1mSNf4ntpuBjOfowW 7qdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=F6buymKA; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c5si11834290edy.429.2020.06.26.14.44.39; Fri, 26 Jun 2020 14:45:03 -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=@google.com header.s=20161025 header.b=F6buymKA; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725831AbgFZVo1 (ORCPT + 99 others); Fri, 26 Jun 2020 17:44:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54224 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725780AbgFZVo0 (ORCPT ); Fri, 26 Jun 2020 17:44:26 -0400 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AC144C03E979 for ; Fri, 26 Jun 2020 14:44:26 -0700 (PDT) Received: by mail-wr1-x441.google.com with SMTP id h15so10802211wrq.8 for ; Fri, 26 Jun 2020 14:44:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Q1+9uR2cQTSLPsT8QyUR/Cg47J1BAdwHYi4CR0KpoXQ=; b=F6buymKASof8mmJbga47nan1aFNvRboyUdgZc2LDIhruRDLCx0xDwcGDnyyBHLgdEQ tL8z34BIPXnbhSA/4oerC5duMocRTSkhK9aPmuJ7yGiTAdUb9VBOO6lHWS6FN64ahzHe W2VZhmElm8ncvhvarmZFLuks3+pNBqAhih51FlGypS9QK2AZyPjXMwxQyX1tN/AI2fNU GE1v5T5+sOi9kxPv1j+ttF6DND7wxu0LEIpKVWLCxsnJHfDrlGJWjg4nz8LKN2KKd69M VCrG0mBPfLy/YOaip27jZ5ywmWERVt7hO8ZZZ46QIm0VhxoJmGkyyBlfx9Ku2oMWs4IQ 9wgw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Q1+9uR2cQTSLPsT8QyUR/Cg47J1BAdwHYi4CR0KpoXQ=; b=WXO0nymLxSxjeAGlo2hlF//zRjOec+H+LMMenjWGfmFs0JH9DICtcCz8p8LPo9z9we /cU2Y/VOs3fQH2Nty2Qh8XkTF9dtGYvpTYOCeQaJ3iS/rZTsx57bAZ1tccVID0GogVXx 1wrKdVFwigr8xG05KAeiExoMgQDrgY8lOgX8MTzKXOaVUXauJog0wkrYV3xsjobeGpdU gbstS0UNxw+MTnn9qgwhj8SLYgh8k9WIjIs5p1EcgbIC5LWSR2j8HpMvUqf15BEGbxlQ zBgxr6uIIiT35yKbm55WPx4Flk7fvV1z2bs8G7htTTOvz7QMK/O/FXbx1XNYTPFZDY1A tP2w== X-Gm-Message-State: AOAM5304G5tyFn/b2t3R8xVr4TeOvcPsQKabs+4hoFx2ZYA28Rb8tybE VrQzVsNoF9hbTvPj+zDNMsbCMZcaApTmASxyCdvrTw== X-Received: by 2002:a5d:4bd2:: with SMTP id l18mr5544449wrt.119.1593207865276; Fri, 26 Jun 2020 14:44:25 -0700 (PDT) MIME-Version: 1.0 References: <20200626194720.2915044-1-jolsa@kernel.org> <20200626212522.GF818054@tassilo.jf.intel.com> In-Reply-To: <20200626212522.GF818054@tassilo.jf.intel.com> From: Ian Rogers Date: Fri, 26 Jun 2020 14:44:14 -0700 Message-ID: Subject: Re: [RFC 00/10] perf tools: Add support to reuse metric To: Andi Kleen Cc: Jiri Olsa , Arnaldo Carvalho de Melo , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Kajol Jain , John Garry , "Paul A. Clarke" , Stephane Eranian Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Jun 26, 2020 at 2:25 PM Andi Kleen wrote: > > On Fri, Jun 26, 2020 at 09:47:10PM +0200, Jiri Olsa wrote: > > hi, > > this patchset is adding the support to reused metric in another > > metric. The metric needs to be referenced by 'metric:' prefix. > > Why is the prefix needed? > > Could just look it up without prefix. The name could be a metric or an event, the logic for each is quite different. You could look up an event and when it fails assume it was a metric, but I like the simplicity of this approach. Maybe this change could be adopted more widely with something like "perf stat -e metric:IPC -a -I 1000" rather than the current "perf stat -M IPC -a -I 1000". Thanks, Ian > -Andi