Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp279895ybg; Tue, 28 Jul 2020 06:02:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxZbotc/xxwuDjsZ97uqQP1HRw1U8H9i7/QHxMP1cGQ8wN5GSDVMiYGZVSAeewgUkuaZy0j X-Received: by 2002:a50:d80f:: with SMTP id o15mr26400467edj.156.1595941371873; Tue, 28 Jul 2020 06:02:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595941371; cv=none; d=google.com; s=arc-20160816; b=bEtyEnFzLIiv0oj0j2WUTsCpLSjkkvWbxoapFwyJqOMEe+Kgc3AWxFn90Hw4ya0crM 1S3UW81TfD7MXft6vFKGjxpDyY4xq7uIF2jO6C8hVzHcxj1mSXUoda+X9aeYCx6dJLJP Q9YczmdVZMg4qAZfE4k0xM4BhBaramulv1HFaqjgGg3j8x/oKTDMmK/jLAFSCkezsHNb DVv1MsUFFvkinjgDznwpjZNQh4lXU+u8K8ojlkIdH/8QtOgACR4r/SibCT6ir/oRHACQ 5Ka5ZwR3ymWM90tijXxeeeh8mKIDx3LffUc397iNwiJyNli5QRm0le4K0uqKyKyqZ6br buZA== 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=OzlkAS0bO5S90+90wEcvlabwKoFN9fq+zqihTuQRLKA=; b=Dp5WDyFR+pTn5H5pge1s/ej/rWqrrMSshPwaQAlFGBT14uP/lLkGqCXhv71ZyeMWF1 WIJWSC68ci4YCKazGUr4ImTfhFMEyme+/CCx6/8BvC0MqJwSic5kClN8lsQqoALrYgYv 1jBM06Lu7jyhzFD5xMP2WjJlGcEbR8gKjPnklzdCwFEpv8VH2/5eJJOEt58OPHEUPEkd BD7OEt5sCvSkrLPLmBfDTE7OXQvXQ2IgWAodnGdimfY10gh69ngdHLmgx08CfMcZgusY 5IWm320vYwG99q7dtZQnOIXYiJcQi9+fmdGrKPPYRjiMFgBPSa+6df+XU8xvdC6Mqqce 9xsQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=NQ39DlQs; 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 lo6si636292ejb.584.2020.07.28.06.02.29; Tue, 28 Jul 2020 06:02:51 -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=NQ39DlQs; 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 S1729892AbgG1NBT (ORCPT + 99 others); Tue, 28 Jul 2020 09:01:19 -0400 Received: from us-smtp-2.mimecast.com ([205.139.110.61]:31268 "EHLO us-smtp-delivery-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729857AbgG1NBS (ORCPT ); Tue, 28 Jul 2020 09:01:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1595941276; 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=OzlkAS0bO5S90+90wEcvlabwKoFN9fq+zqihTuQRLKA=; b=NQ39DlQs5ut61amxy8dolGLVzEITtnQb96NhCw512QLtENv64/1jTrn493EUwBoputjRjd wWMIlD98IifmQOv/dT21Cu1u/pH5gC3BQCmj+xY1cXiBk7OOS/Ngcki5s3ZmSoc2jCqECD k86Kk4M5c6JhcAJUCOWoqi+8ro+vU2w= 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-394-QoHwrssWMUiomliSs26C-Q-1; Tue, 28 Jul 2020 09:01:08 -0400 X-MC-Unique: QoHwrssWMUiomliSs26C-Q-1 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 70D79100A8C0; Tue, 28 Jul 2020 13:01:04 +0000 (UTC) Received: from krava (unknown [10.40.192.211]) by smtp.corp.redhat.com (Postfix) with SMTP id 9423660CD0; Tue, 28 Jul 2020 13:01:01 +0000 (UTC) Date: Tue, 28 Jul 2020 15:01:00 +0200 From: Jiri Olsa To: Arnaldo Carvalho de Melo Cc: kajoljain , Jiri Olsa , lkml , Ingo Molnar , Namhyung Kim , Alexander Shishkin , Peter Zijlstra , Michael Petlan , Andi Kleen , John Garry , "Paul A. Clarke" , Stephane Eranian , Ian Rogers Subject: Re: [PATCHv3 00/19] perf metric: Add support to reuse metric Message-ID: <20200728130100.GE1243191@krava> References: <20200719181320.785305-1-jolsa@kernel.org> <20200720072237.GC760733@krava> <6cb72b48-5244-9faf-a9e5-67858c732b83@linux.ibm.com> <20200720081943.GE760733@krava> <20200720191625.GL760733@krava> <20200728123955.GZ40195@kernel.org> <20200728125456.GD1243191@krava> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200728125456.GD1243191@krava> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jul 28, 2020 at 02:54:56PM +0200, Jiri Olsa wrote: > On Tue, Jul 28, 2020 at 09:39:55AM -0300, Arnaldo Carvalho de Melo wrote: > > Em Mon, Jul 20, 2020 at 09:16:25PM +0200, Jiri Olsa escreveu: > > > On Mon, Jul 20, 2020 at 02:32:40PM +0530, kajoljain wrote: > > > > > > > > > > > > On 7/20/20 1:49 PM, Jiri Olsa wrote: > > > > > On Mon, Jul 20, 2020 at 01:39:24PM +0530, kajoljain wrote: > > > > > > > > > > SNIP > > > > > > > > > >> This is with your perf/metric branch: > > > > >> command# ./perf stat -M PowerBUS_Frequency -C 0 -I 1000 > > > > >> assertion failed at util/metricgroup.c:709 > > > > >> # time counts unit events > > > > >> 1.000054545 7,807,505 hv_24x7/pm_pb_cyc,chip=0/ # 2.0 GHz PowerBUS_Frequency_0 > > > > >> 1.000054545 7,807,485 hv_24x7/pm_pb_cyc,chip=1/ > > > > >> 2.000232761 7,807,500 hv_24x7/pm_pb_cyc,chip=0/ # 2.0 GHz PowerBUS_Frequency_0 > > > > >> 2.000232761 7,807,478 hv_24x7/pm_pb_cyc,chip=1/ > > > > >> 3.000363762 7,799,665 hv_24x7/pm_pb_cyc,chip=0/ # 1.9 GHz PowerBUS_Frequency_0 > > > > >> 3.000363762 7,807,502 hv_24x7/pm_pb_cyc,chip=1/ > > > > >> ^C 3.259418599 2,022,150 hv_24x7/pm_pb_cyc,chip=0/ # 0.5 GHz PowerBUS_Frequency_0 > > > > >> 3.259418599 2,022,164 hv_24x7/pm_pb_cyc,chip=1/ > > > > >> > > > > >> Performance counter stats for 'CPU(s) 0': > > > > >> > > > > >> 25,436,820 hv_24x7/pm_pb_cyc,chip=0/ # 6.4 GHz PowerBUS_Frequency_0 > > > > >> 25,444,629 hv_24x7/pm_pb_cyc,chip=1/ > > > > >> > > > > >> 3.259505529 seconds time elapsed > > > > > > > > > > I found the bug, we are not adding runtime metrics as standalone ones, > > > > > but as referenced metrics.. will fix and try to add test for that > > > > > > > > > > as for testing.. do I need some special ppc server to have support for this? > > > > > > > > Hi jiri, > > > > We need power9 lpar machine and need to make sure `CONFIG_HV_PERF_CTRS` is > > > > enabled. > > > > > > could you please try with following patch on top? > > > > So, can you point me to the cset that this should be merged into? Or can > > it come as a separate patch? I'll put what I have in the tmp.perf/core > > branch, and will do testing, please let me know if you want to fold it > > or as a followup patch. > > sorry for delay.. I planned to squash the change in, but if you already > pushed something out, I'll rebase on top, I will post new version tomorrow > > 1st 7 patches are good to go in any case ok, I just saw it's pushed out, I'll post a patch on top of it jirka