Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp6135309rwd; Mon, 19 Jun 2023 02:55:37 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5B80gkDVabk9bLmKpzOtdbD/KlbES7F8vSENwkj/i3CocXN6ZbXeevxxIubG8bVmvswin8 X-Received: by 2002:a67:e295:0:b0:42e:2b9f:f8f0 with SMTP id g21-20020a67e295000000b0042e2b9ff8f0mr1931456vsf.30.1687168537733; Mon, 19 Jun 2023 02:55:37 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1687168537; cv=pass; d=google.com; s=arc-20160816; b=V8t/GoRz6vfSG6ZDnnGthtiIxPmZ5+SFtG90IMSb8OVI4TNbP6lwfZZHy1C9mhfne9 8bbow1bSzOGbMIh6ORdYuLi7p3oGG0cHpdsKf9RQHz8Fa56X+8yRpXGXcFONNXBQrgvD 4jZw2r/+yiGZ6ClRKcFROibn/WUX6Ksx4PDUW0qSO5amCfVQQeX11oCEPqtaCaK59V6n SXz32cp7cw9R8oEHZjFOrcu26E33xehmsor4rXJ7hGozMBJPQ5JUEX/4vKcnWisoGUBa /VJynTI7FhyJWsn7FMlPazTEvnR0pRJ91gQ8BkBSPQkYd8FRmcADTrZzqqGneNKNgQ5w uKWg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:content-transfer-encoding :in-reply-to:organization:from:content-language:references:cc:to :subject:user-agent:date:message-id:dkim-signature:dkim-signature; bh=5E/lgjAIyzhiHmuIcNdYHf2/XB8aFVT03426mkJsOkY=; b=JkJIEk3A7eE98+iQGMa3v9ugBhwlyZReVsTjQitFRlSR5McvcM8jVBMy37H8bheHn1 jQs+1VW0g0pFrt2K1Dc6dakhdbLYJSE1Vnqm4c1OYptn/jZrequk35Mxx5A711Q0woJk RJKGloCi+I8C49Lvyw6IKqUPKJzwxrhdoQVQKKGGD2tfOCMN8KiqdPPmHgdwY7/KNSh4 9L72bUQZ+lmljRChHLWUmTwVovVVwWl7EZjhaFrZE4YtrQAgxqPMX/Z+GEWW4+W1fRYS cK9iwWeMJhReXpYAHSMejptMdR5HO5niEoPhOrigJO0kWfiiI02cpqX58hPug1yPlPiN 0SBw== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=gPw2gt77; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=v6oAxs+P; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.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=NONE sp=NONE dis=NONE) header.from=oracle.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id j69-20020a638048000000b0054fd0012d2fsi11463086pgd.42.2023.06.19.02.55.25; Mon, 19 Jun 2023 02:55:37 -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=@oracle.com header.s=corp-2023-03-30 header.b=gPw2gt77; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=v6oAxs+P; arc=pass (i=1 spf=pass spfdomain=oracle.com dkim=pass dkdomain=oracle.com dmarc=pass fromdomain=oracle.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=NONE sp=NONE dis=NONE) header.from=oracle.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231642AbjFSJeT (ORCPT + 99 others); Mon, 19 Jun 2023 05:34:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231384AbjFSJd0 (ORCPT ); Mon, 19 Jun 2023 05:33:26 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EE9524204; Mon, 19 Jun 2023 02:31:42 -0700 (PDT) Received: from pps.filterd (m0246629.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 35J0xCow028503; Mon, 19 Jun 2023 09:31:20 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.com; h=message-id : date : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding : mime-version; s=corp-2023-03-30; bh=5E/lgjAIyzhiHmuIcNdYHf2/XB8aFVT03426mkJsOkY=; b=gPw2gt77L/d5u5niAcDiqK90t6FxfbQ9a8sQuZRiMNVHm++/IaMuW+wx6uK0tTaLo+VF wMSp8JjLmfqM6ViD7Y7OYa09F1DQ5lYqQaxViCgMz1jx7z0oqszyVtRtZhC2bwRWZf5E brj3hgzQSLrtC6WXRnWjz1lJWeocLgSOsBFU+IbxwiJ0R/sv4VTgZ1ujg16pJmYG3jSN KZXlf04jE7Ye4j7y8WlArw8tVrzNEoOiYK85eKPyfc0zajHBY5pz/MdH9d6CAv5JzwgI Iv26FF2fwWIDnMwj0zEbtUN1clbIVBMg/amhfrLll6HMD9nhXGgIAUhC7ePbMxR7pv5X YQ== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3r94qa2c85-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Jun 2023 09:31:20 +0000 Received: from pps.filterd (phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com [127.0.0.1]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 35J8JMsk032965; Mon, 19 Jun 2023 09:31:19 GMT Received: from nam10-bn7-obe.outbound.protection.outlook.com (mail-bn7nam10lp2105.outbound.protection.outlook.com [104.47.70.105]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3r93945hp2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Mon, 19 Jun 2023 09:31:19 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=ddN5kWemKAX2f7CMSb2plhOAt2HwB+uOaU6JAtEslUyyxP8pfxBJkb2BAM1zbvp+frO2o149WnpzaB/q3pCNNVC6SdwLC3UzyWA1Iay3WcGjdNj8ErN7K2O1zKBLl+FMypOlrSx1bssNUrTT4fyKdM57WTcUPVzBJ236uW0nhzg6keyaGLYMOgh4FVF8giSOKe9LurrVZRLJ1I73TsdaaPchrnvl6yEZq7muoeKud4rPawLAqzlGurl8xdvIbqzXh5hmFKwMSqQF5yfrWJAl4S0HiX4zcq2R6UhT8ccQzJWn5v6W1MzbT2pCAWGqCn4rVX7MJzNW8Rc6lQhUzIOYrA== 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=5E/lgjAIyzhiHmuIcNdYHf2/XB8aFVT03426mkJsOkY=; b=ln6uIjkMi8auSud5gCy6PnyLT2koAbOu+LjvMtXEIaCcbXfP1uymzjIyi+iApCHpoR+/EbmJLBt6anK28MWhid3bMhsTeUige7BxL09KdEkpmnMWLnEsM7dcajyGB4jzBz5LVVagIsMP9aoc95mJr3F0al/EADtMtXbk9ENmfaiN5fQZi5gblXtVF46jNND3PaSGdYkfWetEmvhmNYe9dE7iIP4hDrEjqyhhlAzQINvxykPQMbdAqVyS/HYs4kRECMPhrQAYOHBy9Y10ZhrxIlqHc0iKhGYnE7u2qj+hJ7YHaX1jmiAnssXDAn0frQbMqZvNbHcpRjD1Hr49dq3Klg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=oracle.com; dmarc=pass action=none header.from=oracle.com; dkim=pass header.d=oracle.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=oracle.onmicrosoft.com; s=selector2-oracle-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5E/lgjAIyzhiHmuIcNdYHf2/XB8aFVT03426mkJsOkY=; b=v6oAxs+PLbHm1PIqqHsebsOqNPUmZy1yXYQfqnZ1mnPyT1EPQRI4VuYsEBS37BopaKtEU9al1Nc+U1E2xcb9TKm2jz1DKiYBfJHh0L3gQw0unK+czrBzb0JJhnKtsmkzqpWVfDhACAojZxk5qUGFmbjGyVKYLZw3I3jrrwxWDDk= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by CH0PR10MB4890.namprd10.prod.outlook.com (2603:10b6:610:c9::5) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6500.37; Mon, 19 Jun 2023 09:31:14 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::e38:5b81:b87f:c1eb]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::e38:5b81:b87f:c1eb%7]) with mapi id 15.20.6500.036; Mon, 19 Jun 2023 09:31:18 +0000 Message-ID: <71c4ef1e-0982-1ef4-5135-001303b43cd3@oracle.com> Date: Mon, 19 Jun 2023 10:31:10 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [PATCH v3 2/7] perf metric: Event "Compat" value supports matching multiple identifiers To: Jing Zhang , Ian Rogers , Will Deacon , Shuai Xue , Robin Murphy Cc: James Clark , Mike Leach , Leo Yan , Mark Rutland , Ilkka Koskinen , Alexander Shishkin , Jiri Olsa , Namhyung Kim , Adrian Hunter , linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-perf-users@vger.kernel.org, Zhuo Song References: <1685438374-33287-1-git-send-email-renyu.zj@linux.alibaba.com> <1685438374-33287-3-git-send-email-renyu.zj@linux.alibaba.com> <452e724b-2a2c-52fd-274b-60db7a7f730e@linux.alibaba.com> <76fcb062-61a8-5f90-b39d-b5fb6da35652@linux.alibaba.com> <5f38ef6c-8c50-5df9-19dd-c3c9fe590452@oracle.com> <892f57c7-8ce2-634c-26f3-4d4ab8b2f2ce@oracle.com> <079d7920-2030-2e00-a833-5ec6d450f7dc@oracle.com> <552eebae-76bb-a2fe-ccdc-11e8a01717da@linux.alibaba.com> <045a49c9-b9ae-bf0e-c4be-858d905bcc55@oracle.com> <7c765e0f-ca76-d212-0496-f9c56369e389@linux.alibaba.com> Content-Language: en-US From: John Garry Organization: Oracle Corporation In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: LO4P123CA0128.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:193::7) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|CH0PR10MB4890:EE_ X-MS-Office365-Filtering-Correlation-Id: ef2958c7-b9ac-4294-3a96-08db70a7ef64 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: X/TIxfErVwuG34FoExUXXUD0oHra+C7ewNq8iHo/bJ1hdFRacdqM84+TBtRCILQCK6y04H/yS8zHZ4V2Bxom9dVtg9atMFUSCiDrqRwadbf6X86nQyw5wnxx4oTVfIYf+mdtEnadv9Tx4EUTEB6TWV5JLKPx2fOhdZhPT9swcGH8+LOX3e+hNeCz4IX+CszBZQta6Yx5GBGxiCh9g/cDeXCzdCSmiuFa0y44Fm3bPbGfDqZr6DBPJXVrdVaMH7PekreSENaTSsqBGXCQowbhAXQOso3IezAqgfKQq6o9MUfqqDyfLW6yxVEgyMK7YW5Ba9JFhk1r0F3RWzg+aOSs6MJQNTPKRCjMju/HyGT88LpH607medi+nt9MxHhojfQhF1IyuTOewy9shOFEg6HrpfyWUQMKQuOazrS2DWIa3AkQgHaHjng2CpUplX2TX1i40ggNbEikPYqqQj5vD+w1froPOkQJX3A9p8MMfnwGEx7i9BY9FzX+56iEY5r1Tmk9p9Y4qTAr1owEUVLw7i8SxR+FjKhsfJjRkX9IpFB5py5zKWs8Repz5jzca/5Kk2nwSC+zFEHBgxXocPpLX0ZjZDG0K8fRorF3x0ZpKwySsFjRnGaBmqYejGCsY0xyJfePHww3dwuB/Aal9Gn+D+LN+w== X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DM6PR10MB4313.namprd10.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230028)(376002)(396003)(136003)(366004)(346002)(39860400002)(451199021)(31696002)(478600001)(2906002)(19627235002)(54906003)(36916002)(6666004)(6486002)(2616005)(110136005)(86362001)(36756003)(26005)(186003)(6506007)(6512007)(53546011)(8936002)(8676002)(66476007)(66556008)(66946007)(7416002)(5660300002)(38100700002)(316002)(4326008)(83380400001)(31686004)(41300700001)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?aWZDZlpvTThzL1NLckdSbzJpU3FvSzRkT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0Y1dk9w?= =?utf-8?B?OU11bzJBSEFQMDk2KytaTmZhSCtNT0xUbmc1bm1pS2VRa0dxdGZFMkl0NENr?= =?utf-8?B?NWlhTlRqUmE2a0duK3JieVhCSjRoUmFLUmxCbklQSDJXY2x4V2d0QnROUWdX?= =?utf-8?Q?S5DsHQ=3D?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: ef2958c7-b9ac-4294-3a96-08db70a7ef64 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 19 Jun 2023 09:31:18.3392 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 4e2c6054-71cb-48f1-bd6c-3a9705aca71b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: gu1NzO/zq2/wDVkdqjUuUEj9Vb0sPWC7H7d3NUkkgolE8TCdtJcWqj3tLfT66um5zEIrK7KJFQtI0MDbA1wU9A== X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH0PR10MB4890 X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.254,Aquarius:18.0.957,Hydra:6.0.591,FMLib:17.11.176.26 definitions=2023-06-19_06,2023-06-16_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 mlxlogscore=999 phishscore=0 bulkscore=0 suspectscore=0 mlxscore=0 spamscore=0 malwarescore=0 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2305260000 definitions=main-2306190086 X-Proofpoint-GUID: 3GwVfPQP38P9AUe3FzJ3AsfmSvpbYx6v X-Proofpoint-ORIG-GUID: 3GwVfPQP38P9AUe3FzJ3AsfmSvpbYx6v X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, 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 On 19/06/2023 09:59, Jing Zhang wrote: >> Please verify running these metrics with 'perf stat', like 'perf stat -v -M slc_miss_rate' >> > Ok, it shows: > #./perf stat -v -M slc_miss_rate sleep 1 > > metric expr hnf_cache_miss / hnf_slc_sf_cache_access for slc_miss_rate > found event duration_time > found event hnf_slc_sf_cache_access In the earlier RFC series you had tools/perf/pmu-events/arch/arm64/arm/cmn700/sys/cmn.json, which describes event hnf_slc_sf_cache_access But that JSON is not in this series. Why is it not included? The cmn kernel driver exposes event hnf_slc_sf_cache_access, but I did not think that perf tool metric code matches those events described in /bus/event_sourcs/devices//events > found event hnf_cache_miss > Parsing metric events '{hnf_slc_sf_cache_access/metric-id=hnf_slc_sf_cache_access/,hnf_cache_miss/metric-id=hnf_cache_miss/}:W,duration_time' > hnf_slc_sf_cache_access -> arm_cmn_0/type=0x5,eventid=0x2/ > hnf_slc_sf_cache_access -> arm_cmn_1/type=0x5,eventid=0x2/ > hnf_cache_miss -> arm_cmn_0/type=0x5,eventid=0x1/ > hnf_cache_miss -> arm_cmn_1/type=0x5,eventid=0x1/ > Control descriptor is not initialized > hnf_slc_sf_cache_access: 127615 1001344900 1001344900 > hnf_cache_miss: 36829 1001344900 1001344900 > hnf_slc_sf_cache_access: 131526 1001343540 1001343540 > hnf_cache_miss: 40587 1001343540 1001343540 > duration_time: 1001381687 1001381687 1001381687 > > Performance counter stats for 'system wide': > > 259,141 hnf_slc_sf_cache_access # 29.9 % slc_miss_rate > 77,416 hnf_cache_miss > 1,001,381,687 ns duration_time > > 1.001381687 seconds time elapsed > > > > #./perf list > ... > arm_cmn_0/hnf_cache_miss/ [Kernel PMU event] > arm_cmn_0/hnf_slc_sf_cache_access/ [Kernel PMU event] > ... > arm_cmn_1/hnf_cache_miss/ [Kernel PMU event] > arm_cmn_1/hnf_slc_sf_cache_access/ [Kernel PMU event] > ... > >>> In the past, I always thought that the function of the alias was to explain the meaning of these events in the perf list. >>> Or maybe I'm missing something? >> Event aliases do give the ability to describe the event in perf list. But we can also run them for 'perf stat', like: >> >> ./perf list uncore >> List of pre-defined events (to be used in -e or -M): >> >>   uncore_cbox_0/clockticks/                          [Kernel PMU event] >>   uncore_cbox_1/clockticks/                          [Kernel PMU event] >>   uncore_imc/data_reads/                             [Kernel PMU event] >>   uncore_imc/data_writes/                            [Kernel PMU event] >>   uncore_imc/gt_requests/                            [Kernel PMU event] >>   uncore_imc/ia_requests/                            [Kernel PMU event] >>   uncore_imc/io_requests/                            [Kernel PMU event] >> >> uncore cache: >>   unc_cbo_cache_lookup.any_es >>        [L3 Lookup any request that access cache and found line in E or S-state. Unit: uncore_cbox] >> ... >> >> sudo ./perf stat -v -e unc_cbo_cache_lookup.any_es >> Using CPUID GenuineIntel-6-3D-4 >> unc_cbo_cache_lookup.any_es -> uncore_cbox_0/event=0x34,umask=0x86/ >> unc_cbo_cache_lookup.any_es -> uncore_cbox_1/event=0x34,umask=0x86/ >> Control descriptor is not initialized >> ^Cunc_cbo_cache_lookup.any_es: 14361103 1853372468 1853372468 >> unc_cbo_cache_lookup.any_es: 14322188 1853360415 1853360415 >> >>  Performance counter stats for 'system wide': >> >>         14,361,103      unc_cbo_cache_lookup.any_es >>         14,322,188      unc_cbo_cache_lookup.any_es >> >>        1.853388227 seconds time elapsed >> > Ok, thanks. If I use events without a prefix, such as perf stat -e clockticks sleep 1, will this also work? In this case, yes - it would work for uncore_cbox_0/clockticks/ and uncore_cbox_1/clockticks/ But you need to be careful to here - if another PMU has same event name, then it might also match. Thanks, John