From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751397AbdGZOP4 (ORCPT ); Wed, 26 Jul 2017 10:15:56 -0400 Received: from mx1.redhat.com ([209.132.183.28]:47214 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750783AbdGZOPz (ORCPT ); Wed, 26 Jul 2017 10:15:55 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com CC5B8A0C59 Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=jolsa@redhat.com Date: Wed, 26 Jul 2017 16:15:53 +0200 From: Jiri Olsa To: Andi Kleen Cc: acme@kernel.org, jolsa@kernel.org, linux-kernel@vger.kernel.org Subject: Re: Support standalone metrics and metric groups for perf Message-ID: <20170726141553.GD19471@krava> References: <20170724234015.5165-1-andi@firstfloor.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170724234015.5165-1-andi@firstfloor.org> User-Agent: Mutt/1.8.3 (2017-05-23) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Wed, 26 Jul 2017 14:15:55 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 24, 2017 at 04:40:00PM -0700, Andi Kleen wrote: > Add generic support for standalone metrics specified in JSON files > to perf stat. A metric is a formula that uses multiple events > to compute a higher level result (e.g. IPC). > > For more complex metrics we need to have micro architecture > specific knowledge, so it makes sense to tie metrics to > JSON event lists. > > Previously metrics were always tied to an event and automatically > enabled with that event. But now change it that we can have > standalone metrics. They are in the same JSON data structure > as events, but don't have an event name, only a metric name. > > We also allow to organize the metrics in metric groups, which > allows a short cut to select several related metrics at once. > > This patch kit adds the code to perf to manage metric groups > > The first few patches are generic bug fixes and can be applied > directly. Then there is a 'weak group' feature that is useful > independently from metrics. After there are metrics specific > patches. > > The patches are available in > > git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git perf/metric-group-4 > > The actual Intel JSON metrics are available in git as a separate pull > request in > > git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git perf/intel-json-metrics-2 hi, looks like it's not pushed out? [jolsa@krava perf]$ git remote -v | grep andi andi git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git (fetch) andi git://git.kernel.org/pub/scm/linux/kernel/git/ak/linux-misc.git (push) [jolsa@krava perf]$ git remote update andi Fetching andi [jolsa@krava perf]$ git branch -r | grep metric-group [jolsa@krava perf]$ git branch -r | grep intel-json-metrics-2 [jolsa@krava perf]$ thanks, jirka