Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp570551pxj; Thu, 10 Jun 2021 07:38:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwUNLDNKR8o6lKvLpP/X9VFr2uL7V1+0TUz/JZhEh6Da3rdJN/xrXbobNdrtILAEUrfhpJL X-Received: by 2002:a05:6402:685:: with SMTP id f5mr5078783edy.178.1623335937681; Thu, 10 Jun 2021 07:38:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1623335937; cv=none; d=google.com; s=arc-20160816; b=dBIpu7BROCbCta4VU3bBOP7brxyp8gWaCq2ql53NlmlAIHUUIwM5CB5hlFDoxEc4NJ sDKcB7OfNpr5BDOC3rpuEgipn4arEpgXY3VwDposBCSqRm4i0WajrqheMXgD4zp/wwR0 4xGjXul0+U4A51xFR3ogOkqY6MHMoeuveQ9106QAHeu9o2gH2YqxVI5EXWL0QKcZP7dy 4gFa13MFCbBZFMOp+KX8JwdpdlJWR+PnkEzZK99a0I4jHZZUh2ev3q5cqoPzqo/Diu4J m9WDCJsKrUo6f9zpo0Ka3vb7IrMdsQAT6B7hrKXq59IUiuY7k7z1Orvp7796roa+RG1n 6Grw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=rdomzcGzNSSeGsXJApzsjaLbiruNWySLH1N6o3srXp4=; b=xOIoZQYT2wm8yQDgv2bsZ9dLsQ7f42b8v2J2cUEbOrMLYapZMI1pworoMZ+8hu4kia 6CiPFz6PnITAj+fG0FOy4MXYMm2D01dNvT6afXjZarEgjVKGahPgN2vFIuJB8BOhAn9J DDhrlwCjSRe1wUTiW3nBfEKyrmjmD8J5H+asS7sD0g70E5NAY3el04Z5koXQS3CXZ+Yi zjIrOcDGkVTH91y8ShbL2D0eDWflgr6YUfzuo1DK9+o+or5RCqHNSY1oaf4CdOnNAgKT Ly7cq75u5M7tBPCBEnV8tppw96+fv3AHVwTHZy69oEYNKokjem+ETAlFE84aLvXK+xKV uCGQ== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id gw26si2393386ejb.11.2021.06.10.07.38.34; Thu, 10 Jun 2021 07:38:57 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231450AbhFJOjf (ORCPT + 99 others); Thu, 10 Jun 2021 10:39:35 -0400 Received: from frasgout.his.huawei.com ([185.176.79.56]:3199 "EHLO frasgout.his.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230153AbhFJOjb (ORCPT ); Thu, 10 Jun 2021 10:39:31 -0400 Received: from fraeml737-chm.china.huawei.com (unknown [172.18.147.200]) by frasgout.his.huawei.com (SkyGuard) with ESMTP id 4G15pM4wt3z6894j; Thu, 10 Jun 2021 22:24:43 +0800 (CST) Received: from lhreml724-chm.china.huawei.com (10.201.108.75) by fraeml737-chm.china.huawei.com (10.206.15.218) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 10 Jun 2021 16:37:33 +0200 Received: from localhost.localdomain (10.69.192.58) by lhreml724-chm.china.huawei.com (10.201.108.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2176.2; Thu, 10 Jun 2021 15:37:30 +0100 From: John Garry To: , , , , , , , , CC: , , "John Garry" Subject: [PATCH 0/2] perf metricgroups: A couple of fixes Date: Thu, 10 Jun 2021 22:32:58 +0800 Message-ID: <1623335580-187317-1-git-send-email-john.garry@huawei.com> X-Mailer: git-send-email 2.8.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.58] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To lhreml724-chm.china.huawei.com (10.201.108.75) X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series fixes a couple of subtle issues. The first fixes a segfault from on my x86 broadwell when running the 'stat' command with a particular order of metrics. As mentioned at [0], there is a pre-existing issue here which needs fixing as this still does not work properly; however I think that is a bigger job, and getting rid of the segfault is best I can do for the moment. The second fixes an issue of an uninitialized variable. As noted in the commit message, gcc does not seem to do a good job of picking up on this. [0] https://lore.kernel.org/lkml/49c6fccb-b716-1bf0-18a6-cace1cdb66b9@huawei.com/ John Garry (2): perf metricgroup: Fix find_evsel_group() event selector perf metricgroup: Return error code from metricgroup__add_metric_sys_event_iter() tools/perf/util/metricgroup.c | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) -- 2.26.2