Received: by 2002:a05:6358:701b:b0:131:369:b2a3 with SMTP id 27csp4282095rwo; Tue, 25 Jul 2023 03:50:21 -0700 (PDT) X-Google-Smtp-Source: APBJJlFV1og5NwsXdgcsG/deOV4LA2rm3pFgBAtrslpMb7WDtT64vPcZdh2HKTI8awlT4qMP9XZW X-Received: by 2002:a17:906:24f:b0:992:345e:8319 with SMTP id 15-20020a170906024f00b00992345e8319mr13185031ejl.58.1690282221680; Tue, 25 Jul 2023 03:50:21 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690282221; cv=pass; d=google.com; s=arc-20160816; b=vF5iynFNr9GS0+m71XkYSX5pC+ZeyhH0hN++nyjsRQlFoStnH1qG0wKEx/m/r9jQ/f fJw5a7nCtYfeI+lSVxV3IIJYZN1ddxvR7Zb249u4yo9AfyHGRm/BXddLZnTrFjRZ3PMD hlH57ZVan0mE+jhRxU7hl3zD11MMvtsLuGDCa+P12M32IKh6FT4ZcCDBMUb5EdRAbcFC QmfMp5gpW8LKkt63YZVzF9i1NBL0LiOnzLJFUkdbgMQaRb59IRnuSmhnfUHVuaDatxSi GJiVDBUTyPg5McZUfBioYng4F3xgjT01mLXqemnTKeV8TlAzNwEs1jYVXf4sEXSCF3Fk gPGA== 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=Gn3FaTrU3z5Y1WaHVxIndN3S3E1SQHyS+gg5g4rNtEA=; fh=ImgAsXyVxG/SVtPjLOpCAOLQiHXrIBYY0yQG1HTwsGw=; b=eX7rUr/Z/0MP42meGP6KtjS6F9iB2Ucdqc/DhizJCpPd7FyyzjyRFaZa3tBBeUDnb2 orZwCYcjnKZjpLirYj8MuGWF982gKRdBBWIrk0lhlJiwUVMVBObuytB7uVQmCIHS7nqO 0NwbcYHaYtpl1CJdcWoVY5TQAWszRUQRWwLfGAhtvMh1kDFsgcUdZ0JBkUVnU3Vz+ExW ruEFoe9IEnrCSefxT7wUdn2UDHTATcojz1kk70fK6mFs+fcCoCBUZJyFrInZhPnzTkYq YkKak709a5Dp+EP2Sv/NLAW29dNKeW4euSw5ulVoBwnNBfUGYD/JZWgyHfDtC4wRTdgb Z1YA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=HyWBJtRN; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=shbGShLG; 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 e18-20020a170906505200b00986432cf57csi7479737ejk.942.2023.07.25.03.49.56; Tue, 25 Jul 2023 03:50:21 -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=HyWBJtRN; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=shbGShLG; 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 S232540AbjGYJls (ORCPT + 99 others); Tue, 25 Jul 2023 05:41:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49110 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232494AbjGYJlp (ORCPT ); Tue, 25 Jul 2023 05:41:45 -0400 Received: from mx0b-00069f02.pphosted.com (mx0b-00069f02.pphosted.com [205.220.177.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B815910C9; Tue, 25 Jul 2023 02:41:31 -0700 (PDT) Received: from pps.filterd (m0246630.ppops.net [127.0.0.1]) by mx0b-00069f02.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 36P7p611001307; Tue, 25 Jul 2023 09:41:08 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=Gn3FaTrU3z5Y1WaHVxIndN3S3E1SQHyS+gg5g4rNtEA=; b=HyWBJtRNmODwX/ei2FgyG82GiIWRpb7uzweluvJpDtT1pX9TUWCAcK6hbUKIWHGe8xSh wFFu8/yN2CW/DITDXAvTDwL09rlVzETzKfLRms3HEBh6K0hQFfgg3YbsYB32tFVg37kl cwclZ74S0MewTdsXcljzMHFZzSaGIR72MlBv7Oi3mXgdjPCnzYpk2YNqrdQba/hJNbMj lSYtbyDwU4YnOZggGUdvNwu8NRvRuUr9vOjN4RNzenBpZGLeBs8hyf+BzYdPdS8mwjNl qaKMElvrKj5WnABCTURUj4qxUhtjRoB+VlBSfYAP3ktT+OzxCoNFxjMmAdYPMFsRoSwU 2g== Received: from iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (iadpaimrmta03.appoci.oracle.com [130.35.103.27]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3s05hdvnn6-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Jul 2023 09:41:07 +0000 Received: from pps.filterd (iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com [127.0.0.1]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (8.17.1.19/8.17.1.19) with ESMTP id 36P7sGgv028695; Tue, 25 Jul 2023 09:41:06 GMT Received: from nam11-dm6-obe.outbound.protection.outlook.com (mail-dm6nam11lp2177.outbound.protection.outlook.com [104.47.57.177]) by iadpaimrmta03.imrmtpd1.prodappiadaev1.oraclevcn.com (PPS) with ESMTPS id 3s05j4s5aa-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Tue, 25 Jul 2023 09:41:06 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=JTFzjilvR6PsIU/jP1pGPc+txTJQC2vCkXmC6xFpzBJEg65vyBB9kY1o5S2calEihO0izVkWLsK8+xnZGvLHSGnkZzHQARrrdsVPqfDxQYA8xrdDQvUMpeMkHMSXPZNp4nOh7/OwDsLkNIDlBQ0tvpFH3qmddB4y3FCJTTzJfRiTRXbG5JuRSs652ASmuQJQBChSlMbFgV4IB7+jKpWXzFCRAlUN3726keHyjuQ3K4kRsbeBwHoied+zTATJYcnkj32Sz1b3IP5bREjZ05P2iNQu7DkKkwLzyiEyVAq6c9lox6jZup8gJLhixPFF1MMld7rPgIhnLNnMii329+L5Og== 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=Gn3FaTrU3z5Y1WaHVxIndN3S3E1SQHyS+gg5g4rNtEA=; b=XB6z1BrDHa3ACvvbIMoxcAhEqon1yrh/r//f9A/4LvzzI7vIaWJe1yEOrgod4RGMpvQSfs9R95jRCOu9/OLyJzz2tOCektCrvwTV9Hyg0g/TPqbyvAE4UrWQc5lercrd04BjwIP26Dy7vL94uRDTOe3/o/0sji5C2RAIGuIAXtiFzqIOwLUjGN1bYhw6JewB9Gd2xIr/OwACC7EluMsN/q9/9qw0YaLW3eOzgOXgCaQq6USujx80RUoctq1a/iBIImzoMq6ySmiYS2Gshnn3W3NJfhgs+k+J6VO2My7A6SviqIKW0McH9Ce/iBYWUozX8Mp2sTzMVNjP5KwDOPX6Wg== 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=Gn3FaTrU3z5Y1WaHVxIndN3S3E1SQHyS+gg5g4rNtEA=; b=shbGShLGu9WjfgnN/LTm6krb9N5s1sFUr0iU9SqTrBDNoXx+QFuoiOkbxWXvOhwNfCoHVZhNgoVFWLay09Q9NrVDIOWP0ozl/wlz8lMlyMCQ7aFKhrTmQkw7M/kdq8u2h4JY5RJtLW4HK/8W48Bi5bxkWW2QjMV0SwSgVryDpfk= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by SJ2PR10MB7757.namprd10.prod.outlook.com (2603:10b6:a03:57b::7) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.33; Tue, 25 Jul 2023 09:41:04 +0000 Received: from DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::8072:6801:b0b7:8108]) by DM6PR10MB4313.namprd10.prod.outlook.com ([fe80::8072:6801:b0b7:8108%7]) with mapi id 15.20.6609.031; Tue, 25 Jul 2023 09:41:04 +0000 Message-ID: <13cdb7cb-e6c0-5b85-3ccf-adb3b0ed36e0@oracle.com> Date: Tue, 25 Jul 2023 10:41:02 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v4 2/4] perf jevents: Support more event fields To: Jing Zhang , Ian Rogers Cc: Will Deacon , Mark Rutland , Robin Murphy , James Clark , Mike Leach , Leo Yan , 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, linux-doc@vger.kernel.org, Zhuo Song , Shuai Xue References: <1690100513-61165-1-git-send-email-renyu.zj@linux.alibaba.com> <1690100513-61165-3-git-send-email-renyu.zj@linux.alibaba.com> Content-Language: en-US From: John Garry Organization: Oracle Corporation In-Reply-To: <1690100513-61165-3-git-send-email-renyu.zj@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: LO4P123CA0616.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:314::16) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|SJ2PR10MB7757:EE_ X-MS-Office365-Filtering-Correlation-Id: aa118bc0-c804-4a1a-6a07-08db8cf343a0 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: lZiHxA6E1X3wHvbIaWrzyHjNFw/Umoaq8kkA307Knqdk6nJ90WiRGXZkLMNhg4YxkrlkmhCy6mLh3II9isb/UDrAwjQ7EinMEzevPsGnfUdHwKI8Qy8+WqzDU0E+EGVmAVP3OjWXpdO/H0beKvfVRPf08Ymqi829snkC3+r1yZBE+5V+65RuxAG223rpAPPyZhqE5OExG1oBpXmyqZEAFdbzpRA+RnZvG3l3WMr0L4XVG6H6hG+9k1YnUCrjtZQqGanJ74My8i+u6p8g6tF+60TgbKMV+/AB3lXVEJhM3Lyp8OdpV/sPYaNOTKEo1okskTQV2E9rzpXqvbGMUulo8okh4r/YET2yCWyAcr4rXmqLJ3A/ahq9jjAghFUXyVObZSATD+rIbUHUD5yybPYyH8+j+ow5mzdQbQd3w4jGoV8Gyc39AzxZCk6Wwifjw+AyAEboSAsvGanupCXs94Ve7qsdr1gxlYM1qaIcdAQ3HsHyJ+B9Nb5jnRGIrSq2P7aq5oQzY08JzaujFNLrSBbbWaSR5Lrx2JmBcWkA63NYjxzDbmwd7OKk1EyrPdggX6xJOxhu9JMmXBobQ6qV2RZBrv19yOdSPz6BzyIgAo78ZqG4jUgJLMp1z2mIN/zL7Zq/ukaNL6RjDTaT6U0SmX/wkFeipZzcmdTs6W4zEaesFu8= 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)(346002)(39860400002)(376002)(396003)(366004)(136003)(451199021)(86362001)(31696002)(2906002)(36756003)(7416002)(31686004)(83380400001)(186003)(53546011)(6506007)(26005)(38100700002)(6486002)(6512007)(36916002)(54906003)(110136005)(66946007)(66556008)(66476007)(8676002)(8936002)(2616005)(4326008)(316002)(41300700001)(478600001)(5660300002)(21314003)(45980500001)(43740500002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?SGtxSDRyTldraFQvMkh0RzF0QmhkSW4zNmVnSHBGZERieDF2cHpTcTNVdjA4?= =?utf-8?B?VnZkSWd5aGlsdFlTMzhTTFJ0czFJSWNhZUYram1sN2JWREJ0ZlU5UHdwbDJx?= =?utf-8?B?SC85L2xCNXloZk12Wk4zVWwxd3NnV0hUOXdodURpUis0TURpdUd2REtIV1JY?= =?utf-8?B?cFRxZ21hS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enant-Network-Message-Id: aa118bc0-c804-4a1a-6a07-08db8cf343a0 X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 25 Jul 2023 09:41:04.5067 (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: cM2Vv14q/I8fWsNyvbc/GDgDNleoEcdrJBellApx2Ze+3rKJyZF3T3fGPlGsSYVikpHFvavlvQyo0eYDg2eEzg== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SJ2PR10MB7757 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-07-25_05,2023-07-24_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 adultscore=0 phishscore=0 bulkscore=0 malwarescore=0 mlxscore=0 spamscore=0 mlxlogscore=999 suspectscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2307250083 X-Proofpoint-ORIG-GUID: FbCFMdzLu2akn7002D7bXKsHO0QHK7Eq X-Proofpoint-GUID: FbCFMdzLu2akn7002D7bXKsHO0QHK7Eq 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,URIBL_BLOCKED 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 23/07/2023 09:21, Jing Zhang wrote: > The usual event descriptions are "event=xxx" or "config=xxx", while the > event descriptions of CMN are "type=xxx, eventid=xxx" or more complex. > > $cat /sys/bus/event_source/devices/arm_cmn_0/events/hnf_cache_fill > type=0x5,eventid=0x3 > > When adding aliases for events described as "event=xxx" or "config=xxx", > EventCode or ConfigCode can be used in the JSON files to describe the > events. But "eventid=xxx, type=xxx" cannot be supported at present. > > If EventCode and ConfigCode is not added in the alias JSON file, the > event description will add "event=0" by default. So, even if the event > field is added to supplement "eventid=xxx" and "type=xxx", the final > parsing result will be "event=0, eventid=xxx, type=xxx". > > Therefore, when EventCode and ConfigCode are missing in JSON, "event=0" is > no longer added by default. EventidCode and Type are added to the event > field, and ConfigCode is moved into the event field. What does "ConfigCode is moved into the event field" mean? > There should be perf tool self-tests cases for this, see tests/pmu-events.c and tests/parse-events.c, like "umask" is tested > Signed-off-by: Jing Zhang > --- > tools/perf/pmu-events/jevents.py | 22 ++++++++++++++-------- > 1 file changed, 14 insertions(+), 8 deletions(-) > > diff --git a/tools/perf/pmu-events/jevents.py b/tools/perf/pmu-events/jevents.py > index 2bcd07c..79c3cfa 100755 > --- a/tools/perf/pmu-events/jevents.py > +++ b/tools/perf/pmu-events/jevents.py > @@ -259,12 +259,6 @@ class JsonEvent: > } > return table[unit] if unit in table else f'uncore_{unit.lower()}'