Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp755035rwo; Wed, 2 Aug 2023 03:49:25 -0700 (PDT) X-Google-Smtp-Source: APBJJlGstEvLXMq3e3h6Ko2GnwhYd/q+sonuf/eRDULU1tyCB8B8tniSd9gqRLukucdOM3kXt3vR X-Received: by 2002:a17:906:5399:b0:994:1eb4:6898 with SMTP id g25-20020a170906539900b009941eb46898mr5087449ejo.9.1690973364676; Wed, 02 Aug 2023 03:49:24 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1690973364; cv=pass; d=google.com; s=arc-20160816; b=OR8r8tabLhpfxUXvtoxceiU7A9PubRHYpA3QC8BmRGwYXe8AfaetNUf0Yafz8MT+Lj RnByF+NfKD3GFIrey5O5sPajbeAVCumNAl1kGEAkkbbi8KPncGc/gkxjBw3xiETkhh+4 UtbdT8klwZrjJfuHNfdgRZDFTdYlQPbcCTedVmrdpApqzXugx9qKWY00pZmhzJvmgHFV COlrZAhgYSpUbG39LtLZhAmRLXkrpcggw1JiW2BUUj2GM2RVbo8wIC4Di/dIlhXX40bX E0gEdMZUzQlyYjU+jVoP8l97OsbHZ6KKG5cWqGOTz81motgvFTqYaJdab9NC4sMeNexz 0A5A== 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=si9T0G/cp1Uv1+z3kGDBThbPQFJrE7q0trNPHMFDGSc=; fh=u6N+iW2W+Obb+CFVhiXQ3Kn0Es6TucRSvMWg5YXZ1uE=; b=jEHKqsul1PsUs8zJfEGl74/Ug4oXjqj4OkWOlbYmR2HSbcr6b+9GBjiJsxlYlPB1Q9 QTz1eEe1qdRuHuMbxxp/VraY4JsS87ed/a0WiHtu9vDn7eDtHqOLHnkBe5xD5nemJyqe 62FKrKtfh5kcm3xkY0AHZw2SqT01JpCXv4HI7OdJLcFbI4l3udDp2Ltcim7S+p3Gxroc liTAqtxFVzagbsi8TZhtT+S2M2VPJEy2UZrd9qISh9xF9+E/GQm+s8QxJo47m9WvBBs/ dAYWWkIcFrFU2nELdBzxj2a4X9tUOdO5dxxN+MfWYnztdZNQ610cUdhR39jmO8z6lhbt M9Kg== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@oracle.com header.s=corp-2023-03-30 header.b=dNG1eDuN; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=tCHjq2IO; 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 d16-20020a170906041000b00991ec5525f7si5762107eja.50.2023.08.02.03.48.59; Wed, 02 Aug 2023 03:49:24 -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=dNG1eDuN; dkim=pass header.i=@oracle.onmicrosoft.com header.s=selector2-oracle-onmicrosoft-com header.b=tCHjq2IO; 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 S232755AbjHBJoY (ORCPT + 99 others); Wed, 2 Aug 2023 05:44:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229685AbjHBJoW (ORCPT ); Wed, 2 Aug 2023 05:44:22 -0400 Received: from mx0a-00069f02.pphosted.com (mx0a-00069f02.pphosted.com [205.220.165.32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5554E1726; Wed, 2 Aug 2023 02:44:21 -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 371KxOHu016418; Wed, 2 Aug 2023 09:44:06 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=si9T0G/cp1Uv1+z3kGDBThbPQFJrE7q0trNPHMFDGSc=; b=dNG1eDuN0lYMNvycJRKIpC2PHQL45S2so5rv980KFHq0g0TpTO4EpWXAm8ACLu7/HtzM tvpVHpIMwFqIyfSl+q4k8WB8gYG/uco1DZiqm/gGBGmSJO17PGIpsFAZK9ixQyvEilnC IGJ3+gnrydh/tOeRcXrMNwe6YzKmA2ROQPvg3w5JVRy3P4bbToujRDmPAqcCii6Ur/TS 0rajc1U538D2NA0eFBfl3+/qH9DmHFjABk3zxIpz32n28KlEXdrytb2lhpy4rqGo18KR MxovSjel5KDvyPZSoK/68rJMnOn1fMF9h8Q5DdHNxiXHob7uyvbo8qxvlKts3cAGKoa6 LQ== Received: from phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (phxpaimrmta01.appoci.oracle.com [138.1.114.2]) by mx0b-00069f02.pphosted.com (PPS) with ESMTPS id 3s4tnbeuru-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 02 Aug 2023 09:44:06 +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 3729ecOA006816; Wed, 2 Aug 2023 09:44:05 GMT Received: from nam04-bn8-obe.outbound.protection.outlook.com (mail-bn8nam04lp2041.outbound.protection.outlook.com [104.47.74.41]) by phxpaimrmta01.imrmtpd1.prodappphxaev1.oraclevcn.com (PPS) with ESMTPS id 3s4s77qeh9-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Wed, 02 Aug 2023 09:44:05 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=NHJcnXTWUx9h1mTrdKiNhOUCLi08rAuAIiD3wGR9E1yduEDwlbCTtrGDPIUGNbFCyJUL+2KNPodPK9WZRmOATiliHbuIQkMDSsG1zJWroB76vYwtgWgM+qq+tBrfNNdb6KdRlfb7I89V9vhge3fCMM4JmcES6OaQrNhzbD5frIAY6VAXDaXe4uh7eXjZ+cZF0jPex5AE807RGnnkNM90yuP7RBmsnaxgtI6MIyR0TT7tpq0KKRgzQPRXy6yzNrKnvd4S1dJxkaUtotux6y9CgKSbog22rkF1GZErqpVXNxvaoj6MPbA8IufThiEfpZFuE3xNzh/GJrb9YIgLCF3s7Q== 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=si9T0G/cp1Uv1+z3kGDBThbPQFJrE7q0trNPHMFDGSc=; b=MkDH8bkGiRxk2zzjnFd3qaY4SGGgnfHmG6YGD5hpt3U2HtfDDFMtoxD5XF+8BqH3rkxl4WjfrK+XMMd5SlNacqUNU63A1sLAfFceeI/B7CphDlBKn+dQLyYD7RDV8fZCMYnWiNq7OZRWJhYm5+dh3cz9x17dBPuQxRdqrCQon1TgQFoKbEwUvFWqCXeuyemxJFx/R0QzIVMXcdusGzgr0sj6RTSKMj0KrqRQ9eIAjlVCcF9P5zcvWs0OszImfdTzz2V7FHFtkigqu+GcvffQaYL9atLsesV4zwll8OL+eIHKU3BZofydnm8nJ9Zx7gIIkQvXGYlNFRa+GEznkUdZ1A== 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=si9T0G/cp1Uv1+z3kGDBThbPQFJrE7q0trNPHMFDGSc=; b=tCHjq2IOCvxO3/ym2odNqNnwzcBc7KQ/FrP1MFCI5PwrFhYDOZlEArYehT+5T7SJCrv2xnb6ss0sLY6ll9x9EqJwboMHZa9uDGdZN+8STmHiKO3rEZza6q9aXNvVFMbrJeVHWUykGaU6FnKQayptddbJQm3Kh78raGoCZSZr4Xw= Received: from DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) by DS0PR10MB7511.namprd10.prod.outlook.com (2603:10b6:8:164::9) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6609.32; Wed, 2 Aug 2023 09:44:03 +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.6631.045; Wed, 2 Aug 2023 09:44:03 +0000 Message-ID: Date: Wed, 2 Aug 2023 10:43:56 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH v5 1/5] perf metric: Event "Compat" value supports matching multiple identifiers To: Jing Zhang Cc: Ian Rogers , Will Deacon , Mark Rutland , Robin Murphy , Ilkka Koskinen , Namhyung Kim , Arnaldo Carvalho de Melo , 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: <1690525040-77423-1-git-send-email-renyu.zj@linux.alibaba.com> <1690525040-77423-2-git-send-email-renyu.zj@linux.alibaba.com> <268b3891-be4b-5f63-eff3-7b6d83e906e9@oracle.com> <0801b73c-6649-8c54-8dca-276efc2a4967@linux.alibaba.com> <8e207c71-5400-5427-ae83-a1e0b8f95e31@linux.alibaba.com> Content-Language: en-US From: John Garry Organization: Oracle Corporation In-Reply-To: <8e207c71-5400-5427-ae83-a1e0b8f95e31@linux.alibaba.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-ClientProxiedBy: AM0PR02CA0205.eurprd02.prod.outlook.com (2603:10a6:20b:28f::12) To DM6PR10MB4313.namprd10.prod.outlook.com (2603:10b6:5:212::20) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DM6PR10MB4313:EE_|DS0PR10MB7511:EE_ X-MS-Office365-Filtering-Correlation-Id: d874bfa9-5cde-46d6-14d8-08db933d018a X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: q3aGXYFqc/6bZ7jHOEBcakDo7ybxzrlPgJQhnrdYn0b8AaA4isnasd0yDsb9zOvvaCz4da+DHCspdXsmrUWOjy2Qv4nshYLmLVp1xSMZY/wUSUzLYBZhGScp0g8jV6nJx7DND1CbID/6wN0hMS/Kvk8kmebCcVL1ICFRZzMv2awPmQ9u53zb6J+cToy9N9CmXBa3R4GozHQKUWRlG8gpms0XoIXH9JlVKm78qZLoROBQuEFPcbBZFVpL3e4vxPT7RAIHbGgsrrjyKEPdixKJtgzsE2VVtCLprlU13rdgGNNFIdqGqAWlQ8OG2zYMDxfYFJalhdWVytBL0JLPgeyyoxyIGBrgc7wnWIghlmCB3Z9ZtyJuRcGsz7cduvC/FyL/4OJ79lf9mft1Npl7cPIP18ShCMcEsG9pV0eHdDnhfGTDFfcnl5KaaokYJUCCuiA1XYNkXnAFJkyoJVFaOU9/la6c9AxMsysfadO3w4uX6t8ZlrnTbjNbwIfneTfGnHRCyQMfuJjbRc7woTTljzJxBtssgXABgIVr+q3M0Yijy8BjHWCq/vsE8N+b83rh0QBzOa7osOhn/cR5BP//rIQhhwzR6y0xk/kgQpW0FECF18MW967OgC/naXFeTuNvcqFrm3ARvP3+OFRtqiQrJE5tnw== 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)(136003)(366004)(39860400002)(346002)(396003)(376002)(451199021)(38100700002)(36756003)(31696002)(86362001)(6666004)(2906002)(54906003)(6506007)(6486002)(26005)(8936002)(4744005)(6512007)(36916002)(186003)(316002)(7416002)(53546011)(5660300002)(31686004)(8676002)(41300700001)(478600001)(6916009)(66556008)(4326008)(66476007)(66946007)(2616005)(43740500002)(45980500001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?B?aHVaSFBtelJ4QXRWSTNZbXl5L3Bqdk5RemdjQkdyWlo1N1hHVjNPV0VhQ1lO?= =?utf-8?B?VFNiSXZ5K2lObnREa1RnZit0N09OMEtRQVBNOHZBUmhkdUsyZXdBNDc3a3Nk?= =?utf-8?B?ZERTa0d3Y3Zhc0pOYnJSNzQrRnVpRjFPa0FLcExDdWJnZm5EM2lIK0ZOMnJx?= =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0lHakVH?= =?utf-8?B?eTlGTzM1V25DUmZtYldMZWZsbjF1M2Q1Z0t4T2MxMG1VVE9tdWhRNTRpaG8v?= =?utf-8?B?ZHZnY1NUeVFDblRZVDVPWDVMTlpOaUZiR0xFT1V2anhnaHUwcm1sSVk1ODNk?= =?utf-8?B?aEpKSkZSSmpZWmQ5TE5FTmNpQWQwclE4RkxrRjlJNGUxbzEvbHJlakxqZ1U2?= =?utf-8?B?RmtUWk90WDBKeFRPYmJxd2hoaFNQTGxSVzhCS0tpTkh4TXNpNURzbzRMZ3pt?= =?utf-8?B?a1hINllSVlBJQm9DVVlhMWswRHdCZnlCT05TdlJEQS8zVldpclhGZ0tvcDZU?= =?utf-8?B?emJaSTQ1TXBKQXk4dDk1QjNaMWVPd1I4d3lYYkRwYm94MElwVWtmNS9mT2xG?= =?utf-8?B?bDkrL0cwWWZTRnlGSTAxenRoRUI3eHVLOWZQNEcvMVdNOFVzMUE2bkNqNHpP?= =?utf-8?B?cTNTVDNkR3B2c1NFdTExbldZVWNpd2tUejdsTk93a3ZlTEd2TXRRVzVuY0JQ?= =?utf-8?B?bzR3TlFMcTl0dmoxbUR1WkoyQndkZjhjait6N1lhNnZQN3E0T2lNbVZCM05n?= =?utf-8?B?bnVGeHZXM1owYXZmSFo0UFg1UjdNY3NBMi9rY3ZOeXg4U2NLSG9NMlFoZ3Bn?= =?utf-8?B?S1ZaUUFhUEE0YXNQYnZubjkrdjgxaHVZak1jZ1lGZFBibWQwNVBrR1hwWkFk?= =?utf-8?Q?s+cg/CRuwBHi3k84/LZS+TNXlw2Sj9TEME?= X-OriginatorOrg: oracle.com X-MS-Exchange-CrossTenant-Network-Message-Id: d874bfa9-5cde-46d6-14d8-08db933d018a X-MS-Exchange-CrossTenant-AuthSource: DM6PR10MB4313.namprd10.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 02 Aug 2023 09:44:03.3880 (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: 7Y/wsrYCTR8DzyDI05mC5c3fEKX0xQB1MZo/7bXmwlHUBahyNNjX61zCOOQODJEEkjU1k+IplzBvfAx8ZTSnDA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS0PR10MB7511 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-08-02_04,2023-08-01_01,2023-05-22_02 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 phishscore=0 bulkscore=0 suspectscore=0 mlxlogscore=999 malwarescore=0 mlxscore=0 adultscore=0 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2306200000 definitions=main-2308020086 X-Proofpoint-ORIG-GUID: 4sUxs4zuKa1Y4_No3-E2h8lx6mC56-oy X-Proofpoint-GUID: 4sUxs4zuKa1Y4_No3-E2h8lx6mC56-oy 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 02/08/2023 10:38, Jing Zhang wrote: >>>> n; >>>> + >>>> +    str = strdup(compat); >>> why duplicate this? are you modifying something? >>> >> This is really a redundant step, I will remove it. >> > Hi John, > > I reviewed this code again and found that it still needs to duplicate "compat" because "compat" is a > const str* type and cannot be used as a parameter for the strtok_r function. If it is cast to char*, > using "compat" as a parameter for strtok_r is also unsafe and can cause a "Segmentation fault" error. > Therefore, let's keep the step of duplicating "compat". ok, so then please add a small comment on why the strdup() call is needed. Thanks, John