Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1F7B6C636D6 for ; Thu, 23 Feb 2023 14:24:23 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234384AbjBWOYV (ORCPT ); Thu, 23 Feb 2023 09:24:21 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35790 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233421AbjBWOYT (ORCPT ); Thu, 23 Feb 2023 09:24:19 -0500 Received: from mx0a-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EDFA46B0; Thu, 23 Feb 2023 06:24:18 -0800 (PST) Received: from pps.filterd (m0098420.ppops.net [127.0.0.1]) by mx0b-001b2d01.pphosted.com (8.17.1.19/8.17.1.19) with ESMTP id 31NE5sKV030311; Thu, 23 Feb 2023 14:24:04 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=message-id : date : mime-version : subject : to : cc : references : from : in-reply-to : content-type : content-transfer-encoding; s=pp1; bh=QhBLqNAAAUfBo8zrGeabF9XkrAAVmtIUEckwOA5id0g=; b=BrRVoYPFolQtM2DClHYfvsFgzwqMMWpMPJ5Qmah3Cy1zwHb3w4PMfzJ2yEfAnEqLFG9t c9H/Eu3P2qFk465v/MNYsCTvrdQycm6YkKw1q4hZphAFThbeyr9w41HPRBFSgtaNy+2h z1wx5Q2QijJw47C7kUle8N69RJFqUYh8YPinq5yJx3YxUJP+yOC2CztQ7+5e0d0upcgI XVDbY0zUmNHl+nriVsPW+UcawTqflKghqdxe/MMU9W3xivhVYtuMsM1Fo/0/GhKsUY0+ 3+WGtx7aN0tfkKJwdoEMOGJhbJtO9X0631z3ahzMlp+PJf8VnClfogoF3aqjwLs3xXj/ bQ== Received: from pps.reinject (localhost [127.0.0.1]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3nx7k9m3u2-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Feb 2023 14:24:04 +0000 Received: from m0098420.ppops.net (m0098420.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 31NDqbAV025703; Thu, 23 Feb 2023 14:24:03 GMT Received: from ppma04ams.nl.ibm.com (63.31.33a9.ip4.static.sl-reverse.com [169.51.49.99]) by mx0b-001b2d01.pphosted.com (PPS) with ESMTPS id 3nx7k9m3su-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Feb 2023 14:24:03 +0000 Received: from pps.filterd (ppma04ams.nl.ibm.com [127.0.0.1]) by ppma04ams.nl.ibm.com (8.17.1.19/8.17.1.19) with ESMTP id 31N7VYn8007325; Thu, 23 Feb 2023 14:24:01 GMT Received: from smtprelay06.fra02v.mail.ibm.com ([9.218.2.230]) by ppma04ams.nl.ibm.com (PPS) with ESMTPS id 3ntpa6eryb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Thu, 23 Feb 2023 14:24:01 +0000 Received: from smtpav04.fra02v.mail.ibm.com (smtpav04.fra02v.mail.ibm.com [10.20.54.103]) by smtprelay06.fra02v.mail.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 31NENx6K29294872 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Thu, 23 Feb 2023 14:23:59 GMT Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4B08120040; Thu, 23 Feb 2023 14:23:59 +0000 (GMT) Received: from smtpav04.fra02v.mail.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id 4665C20043; Thu, 23 Feb 2023 14:23:56 +0000 (GMT) Received: from [9.43.40.228] (unknown [9.43.40.228]) by smtpav04.fra02v.mail.ibm.com (Postfix) with ESMTP; Thu, 23 Feb 2023 14:23:56 +0000 (GMT) Message-ID: <086e2f43-00d2-0738-7d1b-697971161a32@linux.ibm.com> Date: Thu, 23 Feb 2023 19:53:55 +0530 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH v5 1/2] perf tools: Sync perf_event_attr::config3 addition Content-Language: en-US To: Rob Herring , Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim Cc: Leo Yan , James Clark , linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org References: <20220914-arm-perf-tool-spe1-2-v2-v5-0-2cf5210b2f77@kernel.org> <20220914-arm-perf-tool-spe1-2-v2-v5-1-2cf5210b2f77@kernel.org> From: kajoljain In-Reply-To: <20220914-arm-perf-tool-spe1-2-v2-v5-1-2cf5210b2f77@kernel.org> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: zXUEIAOrF-d-snL_s7cQUj80Mp3Yi4qM X-Proofpoint-GUID: 139F4cq_Vr95yZpB0Yc4aDxtUfxlG5-O X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.219,Aquarius:18.0.930,Hydra:6.0.562,FMLib:17.11.170.22 definitions=2023-02-23_08,2023-02-23_01,2023-02-09_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 mlxlogscore=999 adultscore=0 malwarescore=0 bulkscore=0 mlxscore=0 priorityscore=1501 phishscore=0 impostorscore=0 suspectscore=0 lowpriorityscore=0 clxscore=1011 spamscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2212070000 definitions=main-2302230115 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2/18/23 04:02, Rob Herring wrote: > Arm SPEv1.2 adds another 64-bits of event filtering control. As the > existing perf_event_attr::configN fields are all used up for SPE PMU, an > additional field is needed. Add a new 'config3' field. > > Signed-off-by: Rob Herring > --- > This matches commit 09519ec3b19e ("perf: Add perf_event_attr::config3") > for the kernel queued in linux-next. > --- > tools/include/uapi/linux/perf_event.h | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/tools/include/uapi/linux/perf_event.h b/tools/include/uapi/linux/perf_event.h > index ea6defacc1a7..a38814ce9485 100644 > --- a/tools/include/uapi/linux/perf_event.h > +++ b/tools/include/uapi/linux/perf_event.h > @@ -365,6 +365,7 @@ enum perf_event_read_format { > #define PERF_ATTR_SIZE_VER5 112 /* add: aux_watermark */ > #define PERF_ATTR_SIZE_VER6 120 /* add: aux_sample_size */ > #define PERF_ATTR_SIZE_VER7 128 /* add: sig_data */ > +#define PERF_ATTR_SIZE_VER8 136 /* add: config3 */ > > /* > * Hardware event_id to monitor via a performance monitoring event: > @@ -506,6 +507,8 @@ struct perf_event_attr { > * truncated accordingly on 32 bit architectures. > */ > __u64 sig_data; > + > + __u64 config3; /* extension of config2 */ Patch looks fine to me. Reviewed-by: Kajol Jain Thanks, Kajol Jain > }; > > /* >