Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp10315728rwd; Wed, 21 Jun 2023 20:58:28 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5zeO5Z1sG7YvqKZsayWvBoyi11jVMUiKohoVO/scsNRI1cLa83tUgPjUHm/u8lxusXhYds X-Received: by 2002:a05:6808:628f:b0:39d:adbe:fa29 with SMTP id du15-20020a056808628f00b0039dadbefa29mr8577996oib.4.1687406308332; Wed, 21 Jun 2023 20:58:28 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687406308; cv=pass; d=google.com; s=arc-20160816; b=nWnlEWfIJXXGTU1xmgSgxfk/rXHoGGOSmwJ7kxDC4JNiUcoBiEy6VdU6Unj72ajM0U 9U9u37Y5E7nCl7egjNqfcg9T0rR59a18RSuh/yqB70t3MRGxSND8XNUkEyc1IKSQBYOO XYXW3o8Q9KdBOu6ovRwdUe9UhghGUpshhwOEoB8Z8o8zol6U1+CXSrA7Yz0KLgXQQvXU UPiuJ3Xpe/Ni4feeYHvcOdmLlfs5cAAdPcGsFqX2RT0atx6ZGRYeJYNURDxHY+JEiqKG xiNqC09WFU05JhULxPRWY7QF56nrQCdd8xWDBWkmWUUWp3I88P4CnkhmGbIxMk2xVGO2 BRCQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:message-id:in-reply-to :subject:cc:to:from:date:dkim-signature; bh=nS6KjuA/ocBphZQ6k8bzgz99fHmfmbPZgubNkqWr3Po=; b=h3HjcF9QSSCTFbnvj8zwZlJehfa7aqnV1O7CAZNDwqUq1BS+c/1cYZ7N3YU9IpaDLY LKGXQ0Ol5kUKrg9HYT1dcVqNdoZHDZahlr+UcJey9SZavTp8jvcfD98qc/ezkFrTY9TO cpGHfN0weSfv4SF6+dl/w6IwCKHWZfOXTE3aujAqJKUEhw2uMd8jh+ZpNyLH6bRbh3Di SNMlkM3si7x9aQChGiWuZbVZcwnivmutdZAwsmHefkzRQ41KYQ88CkFEbSjTYUkezilr jqVx07vMSNrdPAX9hki6RIEOqk8heqWRYTkITOl0AWFYB+Dp2IN2Ym0alm6PR378Fmv1 dOkQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@os.amperecomputing.com header.s=selector2 header.b=HckOOpQt; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.com); 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=amperecomputing.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i14-20020a17090a2ace00b0025e8708c5bcsi12869818pjg.26.2023.06.21.20.58.16; Wed, 21 Jun 2023 20:58:28 -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=@os.amperecomputing.com header.s=selector2 header.b=HckOOpQt; arc=pass (i=1 spf=pass spfdomain=os.amperecomputing.com dkim=pass dkdomain=os.amperecomputing.com dmarc=pass fromdomain=os.amperecomputing.com); 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=amperecomputing.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229757AbjFVD17 (ORCPT + 99 others); Wed, 21 Jun 2023 23:27:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50982 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229437AbjFVD15 (ORCPT ); Wed, 21 Jun 2023 23:27:57 -0400 Received: from NAM11-CO1-obe.outbound.protection.outlook.com (mail-co1nam11on2116.outbound.protection.outlook.com [40.107.220.116]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 55B241A4; Wed, 21 Jun 2023 20:27:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Rv2+ThehBEtwySybBP2RAiJS8RYKUCNtu53fN0sHCycZ39ieYNT+5IVnV0tkCZ/N6y8AKmjYok24tVHozsSgzFTCQGd08MtvZZGnOTewU0bAnZpaErFl8Yv9JbLN3NNK+z9QDDYVeR4m8SsjN/zvr/egznTsEIDqPiIxZkhrVlLWewlr+dpHtkReywgFr8YpiPeAe5SDzmjdLdUZsDgJwksDXUj7Lkd7H6wx74KE2Uwq7fUdSamCJMGYacjtPPVD41F2IJ3rkzWWy0pxc3NADnOvAt8npHWgEG41GwWQkMx9qMC10I2EIX2h9IYvEU8MSj1PugWu7W45dgnC+saj7w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=nS6KjuA/ocBphZQ6k8bzgz99fHmfmbPZgubNkqWr3Po=; b=JCVK2rlR9ccaAnYa+YYOtEuhZrOabgbxkTNELht1eV6qOlFodZ+9KiWc0XgTCKTYsdxMrqqnrjzmbFQ7JGcVws5nr8tT5DZKPRDAcfKmyCOzJ/Bd3zfqGxtAnKCerqQIplZuQkUKcL8BecD/Z2iRbcs3Rl8WzAi03Z1G41muT+wo+BjT1e41ytBRn/FRbXRQoQOyDjfvq4TPniYq32IYktnK+6sjHp8ATXxIGzyiOhONcwdRxn7KX1H7AVcXI4i+IgUmKixnUE+lWy3k1L0kwek1c+Z8f/j83PJzWZx3/IgjJshtBao10aPzLUhH8h2PHxMJIiXLVU6j2EQG8ba+xw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=os.amperecomputing.com; dmarc=pass action=none header.from=os.amperecomputing.com; dkim=pass header.d=os.amperecomputing.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=os.amperecomputing.com; s=selector2; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=nS6KjuA/ocBphZQ6k8bzgz99fHmfmbPZgubNkqWr3Po=; b=HckOOpQtk6r+cLa4G+1RKzYyuMy9JjUReOtRialC6COHWJIzxDeomB7IBhwEbKXJWO6zg0PV6lULu+6/V9bVM83hvSuH4Ssnakgh3Dpfj4RIMW0dmtmwKqKYQLVQ6Zs+NNaH+BMqN6p9qbUqPSR0l5xet+l+jzVOoZDUOVoPKPQ= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=os.amperecomputing.com; Received: from DM5PR0102MB3590.prod.exchangelabs.com (2603:10b6:4:a4::25) by SA0PR01MB6155.prod.exchangelabs.com (2603:10b6:806:ee::8) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6521.23; Thu, 22 Jun 2023 03:27:54 +0000 Received: from DM5PR0102MB3590.prod.exchangelabs.com ([fe80::a323:29a7:2fd7:621]) by DM5PR0102MB3590.prod.exchangelabs.com ([fe80::a323:29a7:2fd7:621%4]) with mapi id 15.20.6500.036; Thu, 22 Jun 2023 03:27:53 +0000 Date: Wed, 21 Jun 2023 20:27:40 -0700 (PDT) From: Ilkka Koskinen To: Dave Kleikamp cc: Ilkka Koskinen , John Garry , Will Deacon , James Clark , Mike Leach , Leo Yan , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Ian Rogers , Adrian Hunter , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org Subject: Re: [PATCH] perf vendor events arm64: Add AmpereOne core pmu events In-Reply-To: <76bb2e47-ce44-76ae-838e-53279047084d@oracle.com> Message-ID: References: <20230427223220.1068356-1-ilkka@os.amperecomputing.com> <76bb2e47-ce44-76ae-838e-53279047084d@oracle.com> Content-Type: text/plain; charset=US-ASCII; format=flowed X-ClientProxiedBy: CH0PR03CA0063.namprd03.prod.outlook.com (2603:10b6:610:cc::8) To DM5PR0102MB3590.prod.exchangelabs.com (2603:10b6:4:a4::25) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM5PR0102MB3590:EE_|SA0PR01MB6155:EE_ X-MS-Office365-Filtering-Correlation-Id: 293d270a-1471-4776-6342-08db72d0aa14 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: GjTVEk/3zt5qnrcXF7lKxIVN1sNIUMmbCj5VJgKcD6M744pG6TBr1vdxbslVTIhxyjUJsb52rqmtLQMW+smHKTIHtrl3ltd1eAo4LPQTOzxylUuAta2LyBxsaqVBvGcJnV/8KNUbNuQA6Rc9WHJLqOp+9Zu7cDI9726s53zGhiL7pIjbcsPCy0cMsUH6NbFpemKhpQ8vZ915IzyvwNsvrriHbqherSAtLDHXM6w2MslfHFx/fC0t/5IHuaBZ6w1OKWdslO0TOpveIMiJP3nhoZgdjaA5TiEHVsiUsN+vUtncF8Q59/Tnof2DBSCxxD7UVf14Phk+OywHdY8uRKrGCp4Ud6EW9HGsSlUm9ccHakOz7UrpxcrqHR8NKsNXX9KpXCJYAEWGl82bQHFr1Ms2HCGdsPWTIuKgofzVEKw155bOvJ527nEGuRL4die2DlyoiJA5JFR0apHkUoB42IiB+hikb4CbOrOofjW48WPDAg2wJ86ArCHaGwIpowHsKB7ZNwS8VePJx9iG3/Y+snO2pALIDSal5mdKU11s7cgu6feoywRCsK06fgGx2GWR8u/AZGtVYov9M92TekysWZP5BcdkBHD+7KrH5W495/QyTpyAQh3TZx117EicvYpeI5H3 X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM5PR0102MB3590.prod.exchangelabs.com;PTR:;CAT:NONE;SFS:(13230028)(4636009)(396003)(376002)(366004)(346002)(136003)(39850400004)(451199021)(2906002)(8676002)(8936002)(316002)(41300700001)(5660300002)(7416002)(66476007)(66946007)(66556008)(4326008)(6666004)(54906003)(6486002)(52116002)(478600001)(38100700002)(38350700002)(6512007)(6916009)(186003)(2616005)(83380400001)(86362001)(6506007)(26005);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?us-ascii?Q?51MZ4aNbRBi8wO4/MDOJHOfqD/6T3BWYRg2bnVGUbg0VWIdoOSiV0/5nfaDY?= =?us-ascii?Q?Xf550e+ix8uNA9oczhgs3WLe7E9hrYpmC8i7iPiDSHbz221bgYFLYqnhqDbK?= =?us-ascii?Q?6eX8L3hLGOjESmjMigX3ciZErxdt4Uu7+AZ9p1sGN8xZWz8cpvB1kWTISwZQ?= =?us-ascii?Q?VphH8Lieb0CpY1ec0F33ILWSA8QJblbTcFIny8HJ37h2o6lni60yfI7SDaBE?= =?us-ascii?Q?QGpleRzimNhGOLmM1gZFRcJNcbF3qqDQAzzO0Qfu4pl7mm6C9RFktEAsDwnl?= =?us-ascii?Q?WukUGCwM4tz6C8c/7Q+OqYGF8LC19XaMLibnwlVVNybdMljOLH662idAaMCd?= =?us-ascii?Q?tATq8lbcduQOsG0uETrvEXYYMMNOmIHjV8Cc/ocs4VERqU+lE4vUESCa/sb/?= =?us-ascii?Q?oXVLZdqQ5oVbhQpDUV7Ax6rIMJR9I90ItXyVCm+HbGXPG/FNh1Rx5/WuGANc?= =?us-ascii?Q?4tJULGgtoHkPmC5Go/gboGPeTbwvOy1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W/lueFbs6S0M7SCOXgrguUyK4YzLb4SbiKB+XAvtXo9Zr8ei641ZtH35fp?= =?us-ascii?Q?EoJXNH8VonqTf7s+Sc7QT6opgyWyn9x30UkzfmTisG0quGNfTCMrAZkRsKzb?= =?us-ascii?Q?u1JvMjwQkOGS4VJo0/18Zk+2bB4hiWYfhsRrTHIDQMbotE4nGafLGLrl1n8T?= =?us-ascii?Q?9BFjYen3IVaF0nQlWmNLBdL+b1w1QKZTsdd9VMgbkQZ73D2izOZnlRMhyWGP?= =?us-ascii?Q?8/t4m6nmki7oE4gtmJQ1s+k=3D?= X-OriginatorOrg: os.amperecomputing.com X-MS-Exchange-CrossTenant-Network-Message-Id: 293d270a-1471-4776-6342-08db72d0aa14 X-MS-Exchange-CrossTenant-AuthSource: DM5PR0102MB3590.prod.exchangelabs.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 22 Jun 2023 03:27:53.7232 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 3bc2b170-fd94-476d-b0ce-4229bdc904a7 X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: HO5FzLvFsBgXcd55m2o9F2+RplVkA5/vhz9j2JvJ/5Y/2wA7nh8EdGi+f/xI0Np6c15u44u8apCRamq/PC6deFL9NdlgvsE4MQGO8a0IvD7B58cSEI8v5FUUrJ09yr3V X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR01MB6155 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H2, SPF_HELO_PASS,SPF_PASS,T_SCC_BODY_TEXT_LINE 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 Hi Dave, On Wed, 21 Jun 2023, Dave Kleikamp wrote: > On 4/27/23 5:32PM, Ilkka Koskinen wrote: >> Add JSON files for AmpereOne core PMU events. >> >> Signed-off-by: Doug Rady >> Signed-off-by: Ilkka Koskinen >> --- > > CLIP > >> diff --git a/tools/perf/pmu-events/arch/arm64/ampere/ampereone/cache.json >> b/tools/perf/pmu-events/arch/arm64/ampere/ampereone/cache.json >> new file mode 100644 >> index 000000000000..fc0633054211 >> --- /dev/null >> +++ b/tools/perf/pmu-events/arch/arm64/ampere/ampereone/cache.json >> @@ -0,0 +1,104 @@ >> +[ >> + { >> + "ArchStdEvent": "L1D_CACHE_RD" >> + }, .... >> + { >> + "ArchStdEvent": "L1D_CACHE_LMISS_RD" >> + }, >> + { >> + "ArchStdEvent": "L1D_CACHE_LMISS" > > L1D_CACHE_LMISS is not defined anywhere. Good catch! I must have thought the python script would at least print a warning of missing event as I compared the build logs with and without the patch. I can prepare a fix for this and submit with another couple of patches. I'm hoping to be able to do that by the beginning of next week. Cheers, Ilkka > >> + }, >> + { >> + "ArchStdEvent": "L1I_CACHE_LMISS" >> + }, >> + { >> + "ArchStdEvent": "L2D_CACHE_LMISS_RD" >> + } >> +] > >