Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4048315ybv; Sun, 16 Feb 2020 12:23:25 -0800 (PST) X-Google-Smtp-Source: APXvYqwkzSrHyr1haeLx/Ug87NR5CNBLEKY8nRr8zXv/2RmM9dtlDTvjd5hYwGpWozv95Ct+chji X-Received: by 2002:a05:6808:244:: with SMTP id m4mr8203205oie.125.1581884605697; Sun, 16 Feb 2020 12:23:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581884605; cv=none; d=google.com; s=arc-20160816; b=bdnUHxdk3gxYc4Qr+by2SInpZfhzlP7B5WeC2Ei1uIOAlWfm6yeWG4+qgQzNHWl9r2 M9sW/mzj161gthXbQI/imWdE1sitnYtcm8xX9NCaMdwoUuuaG8RvaYe1hdN0PcCmRiTj yoUKugcvLhoB2SKUC4K9DJ1XHt3uo9ziCS+Dt4+4DsYjzv2gHIbI9H5P8Cj6zlmEA/Ll FFJjJaJtLrUVzOxEjIKLbZ2tspO/8WJoTmCAHDrf9qaFdyWCZkjdPiyBpLLIqFK6sm3n OAJ6g1M5ynkNg241QZIsbRXtZL1HTlmjV+TDivmB7w65nUnMSIHYH16MV2GrJuZJIJDf tOAg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=sbT3FCffiIBi/DwGATrYZPj6EK1+jbLuMonpxYejB40=; b=FxUywF6zFcdEiN6GLLNAtQtm+NOksMwgbNFzmuIELDodZAfIyk40az96CtzUiFtvVx mnLod1pxBq6UshfXAs3zn/+XU8D7Ye6gWlP3I0Zj+DoTyXRqevOXRMzrjQdKL3jOSftF k7KVAhnuCUgrd51Q3eQxn+YFDxEBBirntkc62H/2SPm4RrQ8wGMOOULfzRcb1JTioyzS 77VbX+fcWw9KPYxfiiFcUFFgH8xKY9dX1aQ7eyGI5aEKc0TzEB0b7dU137y9wiubD7/r Av+CviBJS5QgT3ZF7HovHtZrVkkBac5FJKaowrcXl2G0Nxyv77pz/VNSqUkUZzuM3WfO iWFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Rp6fce5T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id 12si5719433oir.69.2020.02.16.12.23.14; Sun, 16 Feb 2020 12:23:25 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Rp6fce5T; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728243AbgBPUWI (ORCPT + 99 others); Sun, 16 Feb 2020 15:22:08 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:52958 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726036AbgBPUWI (ORCPT ); Sun, 16 Feb 2020 15:22:08 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581884527; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=sbT3FCffiIBi/DwGATrYZPj6EK1+jbLuMonpxYejB40=; b=Rp6fce5TQU2hIObIYqiqlERox6j/ywSu5Ht+sgZZn3KYm/ZF48IrIppf7HIl1NsExbc2Jt xCvM8sYiysFOWUFn4WQeVWZ1HN6FweI26HMEbdJiKnTCGRk3HNgAxgXgYBMTMul4teA13C IwZ/huVPeqyN9tCHPaAggGZEQz4snQ8= 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-424-guAgGHl2MxiS5RN3-k0Lzw-1; Sun, 16 Feb 2020 15:22:00 -0500 X-MC-Unique: guAgGHl2MxiS5RN3-k0Lzw-1 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id D821313E4; Sun, 16 Feb 2020 20:21:58 +0000 (UTC) Received: from krava (ovpn-204-28.brq.redhat.com [10.40.204.28]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 750A319488; Sun, 16 Feb 2020 20:21:48 +0000 (UTC) Date: Sun, 16 Feb 2020 21:21:43 +0100 From: Jiri Olsa To: Kajol Jain Cc: acme@kernel.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, Jiri Olsa , Alexander Shishkin , Andi Kleen , Kan Liang , Peter Zijlstra , Jin Yao , Madhavan Srinivasan , Anju T Sudhakar , Ravi Bangoria Subject: Re: [PATCH v4] tools/perf/metricgroup: Fix printing event names of metric group with multiple events incase of overlapping events Message-ID: <20200216202143.GA145986@krava> References: <20200212054102.9259-1-kjain@linux.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20200212054102.9259-1-kjain@linux.ibm.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Feb 12, 2020 at 11:11:02AM +0530, Kajol Jain wrote: SNIP > =20 > return metric_events[0]; > @@ -160,6 +161,14 @@ static int metricgroup__setup_events(struct list_h= ead *groups, > int ret =3D 0; > struct egroup *eg; > struct evsel *evsel; > + bool *evlist_used; > + > + evlist_used =3D (bool *)calloc(perf_evlist->core.nr_entries, > + sizeof(bool)); > + if (!evlist_used) { > + ret =3D -ENOMEM; > + break; hum, how did this compile for you? ;-) util/metricgroup.c: In function =E2=80=98metricgroup__setup_events=E2=80=99= : util/metricgroup.c:170:3: error: break statement not within loop or switc= h 170 | break; jirka