From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.1 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,MENTIONS_GIT_HOSTING, SPF_HELO_NONE,SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 11530C433E2 for ; Thu, 21 May 2020 17:22:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id E26442083E for ; Thu, 21 May 2020 17:22:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590081759; bh=JT9p1Pmmex1jXkeMgLLLPjB3jIA8QDRODyDuLv5JUlU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:List-ID:From; b=KgMdxjU3uCsFnKaYsiU+B08s0G038V3YHVBbT7pC0Epem5FMzwOLR0cSHC2Olj99C j8gt7uOG7IsKUiznUB/Ad9yA7JJyTD30w6On3gqoutrqNNe5EV8CZDJXV9Ybz6aH56 RlhCXPmshwHf2IowFcgR8Oksd8yxID8M+uzflJAw= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728964AbgEURWi (ORCPT ); Thu, 21 May 2020 13:22:38 -0400 Received: from mail.kernel.org ([198.145.29.99]:47632 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728730AbgEURWi (ORCPT ); Thu, 21 May 2020 13:22:38 -0400 Received: from quaco.ghostprotocols.net (unknown [179.97.37.151]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 2208E2072C; Thu, 21 May 2020 17:22:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1590081757; bh=JT9p1Pmmex1jXkeMgLLLPjB3jIA8QDRODyDuLv5JUlU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=W9MXVbe9qq1bsBaY/zsD836yoyZyAlmbyCXzWxJOQZ0XH2rDUMQS2r//sdmFzTSKF ALSXj31aoVwhYhqV9t6AHRHv6WrYB2VtZjM4FGZooWmiGMMWCzYOxBAegfOxf684mq FGBA1a1TzyMwXKfH92VrqeH0DcoD9hPTH5JPXdco= Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id 1BEBA40AFD; Thu, 21 May 2020 14:22:35 -0300 (-03) Date: Thu, 21 May 2020 14:22:35 -0300 From: Arnaldo Carvalho de Melo To: Jiri Olsa Cc: Ian Rogers , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Namhyung Kim , Song Liu , Andrii Nakryiko , Kajol Jain , Andi Kleen , John Garry , Jin Yao , Kan Liang , Cong Wang , Kim Phillips , Paul Clarke , Srikar Dronamraju , linux-kernel@vger.kernel.org, netdev@vger.kernel.org, bpf@vger.kernel.org, linux-perf-users@vger.kernel.org, Vince Weaver , Stephane Eranian Subject: Re: [PATCH v2 0/7] Share events between metrics Message-ID: <20200521172235.GD14034@kernel.org> References: <20200520182011.32236-1-irogers@google.com> <20200521114325.GT157452@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200521114325.GT157452@krava> X-Url: http://acmel.wordpress.com Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Em Thu, May 21, 2020 at 01:43:25PM +0200, Jiri Olsa escreveu: > On Wed, May 20, 2020 at 11:20:04AM -0700, Ian Rogers wrote: > > SNIP > > > There are 5 out of 12 metric groups where no events are shared, such > > as Power, however, disabling grouping of events always reduces the > > number of events. > > > > The result for Memory_BW needs explanation: > > > > Metric group: Memory_BW > > - No merging (old default, now --metric-no-merge): 9 > > - Merging over metrics (new default) : 5 > > - No event groups and merging (--metric-no-group): 11 > > > > Both with and without merging the groups fail to be set up and so the > > event counts here are for broken metrics. The --metric-no-group number > > is accurate as all the events are scheduled. Ideally a constraint > > would be added for these metrics in the json code to avoid grouping. > > > > v2. rebases on kernel/git/acme/linux.git branch tmp.perf/core, fixes a > > missing comma with metric lists (reported-by Jiri Olsa > > ) and adds early returns to metricgroup__add_metric > > (suggested-by Jiri Olsa). > > Acked-by: Jiri Olsa Applied and pushed to tmp.perf/core, will move to perf/core as soon as testing finishes, - Arnaldo