Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2311544ybt; Sun, 28 Jun 2020 15:20:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxI1Cibcej3X6A8BByO7LEPWnjZlVKNNO5fBd0TJVULQqwMk9PWxgUDYCFSoqponXXvPEKb X-Received: by 2002:a17:906:32d4:: with SMTP id k20mr11007058ejk.364.1593382841173; Sun, 28 Jun 2020 15:20:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593382841; cv=none; d=google.com; s=arc-20160816; b=taqqgPp4DDsRK44bvmN0M5jwoNiA/QtVGFc5f261tTNA4dW/zcrlX6mS5kuBkldwgR i0apQcosgK5eAw6548eI0V1wQBIax73wHC7MwJ/K3FQ8jKT4hwacEPB/KvrDQNMTreXr sx0F+5LiJWD8XhgmXAqGalwa+KBMGNBwjtd7hRawByC1ornQb3T7ICW1m7+pAVvqVowQ saq4YxTPhsnxHt7MkHl9i/vuWuLocj3PulO1PuBJ6NqUCz0X0AMczoiPmFflWzayPS6I Khu0Td9o1eOMpdMD94+rUaj7gniNU67dboByMPo4+sJj9idNBrACe83iTnjmbJncOtS5 j/Sw== 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=b03SREaTe9QCT+KgkDJM853mt5KM538Vl06aiF/oOIE=; b=0R6dZmmrAXafkQU1GVZzfOlChR3QjgtVVqD9K4B/+8Eqnx4dcEbj67fhJFlfa9yflC F6oBv/sT9h0FjkKEIf490QfoDeRZ0CwcNtl+9RseHaIbEhl/GazN7Btu+By4nXx18JrZ v4LrxWYQYGa1rHr0w4QOCIb0VS37bo4/kTP190A2X6ITGoXwd2pefboA6N++FSPvz2Yc Hr6ZOQlnr9ka29JjeaxCrECsYk3NMGd+8PAXbvmBXR/gYrqdhc0X5DEcwLfvyF6qYtW8 gfUJoAtQQhN+ZD7Gp+2KwuZWGSUHavtJW7gEKWJVUwwT6p3AjcoWf3dgtMmTp+smU2av HXnA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=So0J2207; 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 13si20313214ejz.228.2020.06.28.15.20.15; Sun, 28 Jun 2020 15:20:41 -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=So0J2207; 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 S1726229AbgF1WSC (ORCPT + 99 others); Sun, 28 Jun 2020 18:18:02 -0400 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:49980 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726104AbgF1WSC (ORCPT ); Sun, 28 Jun 2020 18:18:02 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1593382680; 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=b03SREaTe9QCT+KgkDJM853mt5KM538Vl06aiF/oOIE=; b=So0J2207Sps49gExQY8OTBtA7RnRPnghG+6eCWH2ERgtJufv2E9o4sBjd/VQpjc+SZpjmn zV0qEG0I+MVPR3tMMdIGNv4hGr1D7BN2xDDMGwOG7jlWvP7F72rnmJiLxZWTRhYi/dqnM5 iO4KFt+CmIQ1Vl1CIDWVcu8K/ExzTAU= 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-226-EPzhx4CSNp6F1Sb0FdLAfw-1; Sun, 28 Jun 2020 18:17:56 -0400 X-MC-Unique: EPzhx4CSNp6F1Sb0FdLAfw-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D03D4107ACCA; Sun, 28 Jun 2020 22:17:54 +0000 (UTC) Received: from krava (unknown [10.40.192.56]) by smtp.corp.redhat.com (Postfix) with SMTP id 8BE49121B6A; Sun, 28 Jun 2020 22:17:51 +0000 (UTC) Date: Mon, 29 Jun 2020 00:17:50 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: Andi Kleen , Ian Rogers , Jiri Olsa , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Kajol Jain , John Garry , "Paul A. Clarke" , Stephane Eranian Subject: Re: [RFC 00/10] perf tools: Add support to reuse metric Message-ID: <20200628221750.GT2988321@krava> References: <20200626194720.2915044-1-jolsa@kernel.org> <20200626212522.GF818054@tassilo.jf.intel.com> <20200626215759.GG818054@tassilo.jf.intel.com> <20200627124821.GF29008@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200627124821.GF29008@kernel.org> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Jun 27, 2020 at 09:48:21AM -0300, Arnaldo Carvalho de Melo wrote: > Em Fri, Jun 26, 2020 at 02:57:59PM -0700, Andi Kleen escreveu: > > > The name could be a metric or an event, the logic for each is quite > > > > I would say collisions are unlikely. Event names follow quite structured > > patterns. > > And when introducing a new metric the build process can detect that > clash and fail. > > > > different. You could look up an event and when it fails assume it was > > > a metric, but I like the simplicity of this approach. > > > I don't think it's simpler for the user. > > Agreed. > > > > 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". > > > > I thought about just adding metrics to -e, without metric: of course. > > Ditto. > > - Arnaldo > I guess I wanted to clearly separate other metrics from the expression, also running through the whole lists of metrics for each id did not seem good.. but it's actualy not that bad (compared to other things we do ;-), and if you guys prefer not using a prefix I think it's ok thanks, jirka