Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp21096rwb; Mon, 26 Sep 2022 08:47:49 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6riaAFlJiDyY6dKDfUPasVDnz6p4Ejo7wPNISLTXvab/SF6iRiJi8itrLBe4tdMzjeVtY+ X-Received: by 2002:a63:b55d:0:b0:439:7a97:b89 with SMTP id u29-20020a63b55d000000b004397a970b89mr20701747pgo.70.1664207269200; Mon, 26 Sep 2022 08:47:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664207269; cv=none; d=google.com; s=arc-20160816; b=W9YBySussjDRrE29ylHWhyJMhVSWzshPnzwDWT8kiFWnJYJiUuJ3lZgyTgW8KKELVg zIq9jBPHxFXHSAvJknjcDxf0nY9307l/pvsUMaDUiRz1LpX970C8lotPcMG0h1AYlsMf C0Y0UJoMF9PNy9y3qvJXu6BIdII4aXHjPwUP8bB4paYRrjeD2nbz4minp9wh4/wzw2lX AGHTtof50xDJDSKIKjcCNSWzZojL74BDQ7TkPQRMnJZvadusrYFtam9OksIIY8V+TADC xCnUFXeg0qMZJW+3y+q9fAYPqYYdV+8Unpf+H3K9ZiQs7QErGfQO8RpwwbPaDgIe6HbS TLvw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=BBzeIIKz/LcOJedaqZyeeCjFt9aw0fAR/RhHCsWbipI=; b=J1JHO2ZAmMnCr6ZiIOKPpd0ssH0/1ucQee/v85nY/CyddpUI+fTq3iFMb6XnW5tYdS vfeT85JqgH3NxWb4mwLMCyVuUWfx2tYTOoafiiPd/71fsVPZfti266D1DvVFD/F8l3V2 k9ut/I9dND53tRdPt6pZhZicjbzfN1/ESNDyfgQjPJ2cXd27PXfw3o3D513wzJPbb3JB PvNcK+DDeBD9QrDGDo9ruJr/3yGldh3i9D6u7qXJy3QOOhAVEluSZn+mcEbQQdL0TW/S kkDkDF7ln3g1tQ5+BXypQLnQD1XSwI81IgWQtSa3tyi4IME2h3cTxtfQ35n5Ma611pOT bm8A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=g2bJSF15; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g131-20020a636b89000000b0043c185d42edsi13570879pgc.639.2022.09.26.08.47.36; Mon, 26 Sep 2022 08:47:49 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=g2bJSF15; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236594AbiIZPcN (ORCPT + 99 others); Mon, 26 Sep 2022 11:32:13 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50208 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236542AbiIZPbJ (ORCPT ); Mon, 26 Sep 2022 11:31:09 -0400 Received: from smtp-fw-9102.amazon.com (smtp-fw-9102.amazon.com [207.171.184.29]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C783B8E0C8; Mon, 26 Sep 2022 07:17:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1664201860; x=1695737860; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=BBzeIIKz/LcOJedaqZyeeCjFt9aw0fAR/RhHCsWbipI=; b=g2bJSF151A2A2aIrZBM831q00KvnPYi98cxG0kQzx23BI7TUUn6gBplG v9d9CCM8pBmvjDCXGFyR4kNoSiA0R8frJgszBoaqr+R9gl+CMZg8rQRqH FkAU3fO/s7enFlHOwPS81NSWzIss8b6K/WSubcIaqf1444tr3221vzqj0 8=; X-IronPort-AV: E=Sophos;i="5.93,346,1654560000"; d="scan'208";a="263256718" Received: from pdx4-co-svc-p1-lb2-vlan2.amazon.com (HELO email-inbound-relay-pdx-2a-11a39b7d.us-west-2.amazon.com) ([10.25.36.210]) by smtp-border-fw-9102.sea19.amazon.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Sep 2022 14:10:38 +0000 Received: from EX13MTAUWB001.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan3.pdx.amazon.com [10.236.137.198]) by email-inbound-relay-pdx-2a-11a39b7d.us-west-2.amazon.com (Postfix) with ESMTPS id B89C7455BF; Mon, 26 Sep 2022 14:10:37 +0000 (UTC) Received: from EX19D002UWA001.ant.amazon.com (10.13.138.247) by EX13MTAUWB001.ant.amazon.com (10.43.161.207) with Microsoft SMTP Server (TLS) id 15.0.1497.38; Mon, 26 Sep 2022 14:10:37 +0000 Received: from EX13MTAUWB001.ant.amazon.com (10.43.161.207) by EX19D002UWA001.ant.amazon.com (10.13.138.247) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA) id 15.2.1118.12; Mon, 26 Sep 2022 14:10:36 +0000 Received: from dev-dsk-alisaidi-1d-b9a0e636.us-east-1.amazon.com (172.19.181.128) by mail-relay.amazon.com (10.43.161.249) with Microsoft SMTP Server id 15.0.1497.38 via Frontend Transport; Mon, 26 Sep 2022 14:10:36 +0000 Received: by dev-dsk-alisaidi-1d-b9a0e636.us-east-1.amazon.com (Postfix, from userid 5131138) id 8B4B820A8; Mon, 26 Sep 2022 14:10:35 +0000 (UTC) From: Ali Saidi To: CC: , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH] perf arm-spe: augment the data source type with neoverse_spe list Date: Mon, 26 Sep 2022 14:10:32 +0000 Message-ID: <20220926141032.30734-1-alisaidi@amazon.com> X-Mailer: git-send-email 2.37.1 In-Reply-To: <1664197396-42672-1-git-send-email-renyu.zj@linux.alibaba.com> References: <1664197396-42672-1-git-send-email-renyu.zj@linux.alibaba.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Content-Type: text/plain X-Spam-Status: No, score=-14.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_SPF_WL autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > When synthesizing event with SPE data source, commit 4e6430cbb1a9("perf > arm-spe: Use SPE data source for neoverse cores") augment the type with > source information by MIDR. However, is_midr_in_range only compares the > first entry in neoverse_spe. > > Change is_midr_in_range to is_midr_in_range_list to traverse the > neoverse_spe array so that all neoverse cores synthesize event with data > source packet. > > Fixes: 4e6430cbb1a9("perf arm-spe: Use SPE data source for neoverse cores") > Signed-off-by: Jing Zhang Thanks for catching this, you're absolutely right. Reviewed-by: Ali Saidi Ali