Received: by 2002:a05:6358:45e:b0:b5:b6eb:e1f9 with SMTP id 30csp364654rwe; Fri, 26 Aug 2022 06:32:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR4CW8zIt2alDb35H8zaPjIXY13ajsCI+0+ruIsYDxacQ2RCt+N0QROJwudcURuKaVMXXVC4 X-Received: by 2002:a05:6402:156:b0:440:b458:93df with SMTP id s22-20020a056402015600b00440b45893dfmr7036097edu.337.1661520730514; Fri, 26 Aug 2022 06:32:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1661520730; cv=none; d=google.com; s=arc-20160816; b=Tm3Hc+9FouSA76UiodT5wnplGbn4s+Wy9ugavY5jNXK8YTPmdjZgsbhovQVi1VGhW8 0B47MnM8oHN8tcFQiSbzpRA9C069z5ZODsnYtUyrXaeOpxSM19gcVByof6Q6zxS2KqIM AHzVZ7lIduLjD2hG0YDWWWWuRv3r7fFB0tb82d+QkUjfGr4lR2SG4x0fbshSR7ctaIxq M5O5b/6+2enpWmDk80lqKp2J0ZJNJc2y9MU2FlRZFsLYxVj8lb5sL6ACndNnQU3ahP73 k2kNenM6ooK0izM6JYv2F6CuuJzukL4fCs2NJHALTGVItB0zGSflyhqHiyyvu1smgGMN /pQg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JUvVbFgb3369Nhi1ivAk/Xyry4AjX+gGSfQseyMHBYw=; b=yowseXLT3Ky7wC/RqqkbxvBSTYivykY6xc3Ooimfx9mQP2lDQ4m5rTCjYSH1hwuOpm 7F7EYMoPosYm7U7b+3GCOdtsICZbnm4O5i7fya1QD4ttlNTQGI2ApCTZ+Uhhdje9Iop3 VHwng73TRi6jXRLvV7vu0BKBFLBF1pAPWPk4seHQzK6MttW4stRwB3Iy0vK66Zw0jSz+ k1LIMKneYTn++DGnRFabl5A/rGhNrW8wf55dgM5b2964TwgZM4rPjB3F6O+wDf9axNN0 K4DTTLLgFu2xpOv3O4csLPImqigkNjNRMTSIgtuSeuyamt4jpsi3Ou02bkddlLzmqHqZ B7GQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ibm.com header.s=pp1 header.b=LbBHP6qE; 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=ibm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x12-20020a05640226cc00b0043c2e89d0acsi1670798edd.3.2022.08.26.06.31.42; Fri, 26 Aug 2022 06:32:10 -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=@ibm.com header.s=pp1 header.b=LbBHP6qE; 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=ibm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245374AbiHZM6s (ORCPT + 99 others); Fri, 26 Aug 2022 08:58:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54470 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229676AbiHZM6p (ORCPT ); Fri, 26 Aug 2022 08:58:45 -0400 Received: from mx0b-001b2d01.pphosted.com (mx0b-001b2d01.pphosted.com [148.163.158.5]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 135125D0D3; Fri, 26 Aug 2022 05:58:45 -0700 (PDT) Received: from pps.filterd (m0127361.ppops.net [127.0.0.1]) by mx0a-001b2d01.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id 27QCfpF8034558; Fri, 26 Aug 2022 12:57:26 GMT DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ibm.com; h=date : from : to : cc : subject : message-id : references : mime-version : content-type : in-reply-to; s=pp1; bh=JUvVbFgb3369Nhi1ivAk/Xyry4AjX+gGSfQseyMHBYw=; b=LbBHP6qE1ooQTD/CSXp1O9KyUFDl41GrJmmug0Jb0JcgM4FyzTsHHehEyPNYYWUcqYd1 ad+j3L/5TJEKlOCuxu61k0h52c3RtBlYX8jfe7ZgdcSgifTYiOTSRKS/Pl0yuWbDIOUP /V3JEmXCg9uf36Q8SzBm+h5q031AhzmRZQgJn3hFeAM6kMEy8di/8URyLqm8QwC94T1w /O1nj1A3nwLRjDlYNEc0s4VfcYDFW96u1Xzcu3t///4knDLzygPPlJPRnGFO8AlBsx61 KET5ba0MPOcTeS2HiMJX+9VJvfrUa33njTqqzRFuL41ARMWGWV60+CBXlgJufpZUHuBm bw== Received: from pps.reinject (localhost [127.0.0.1]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3j6x70rggb-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Aug 2022 12:57:26 +0000 Received: from m0127361.ppops.net (m0127361.ppops.net [127.0.0.1]) by pps.reinject (8.17.1.5/8.17.1.5) with ESMTP id 27QCg12F034898; Fri, 26 Aug 2022 12:57:25 GMT Received: from ppma01fra.de.ibm.com (46.49.7a9f.ip4.static.sl-reverse.com [159.122.73.70]) by mx0a-001b2d01.pphosted.com (PPS) with ESMTPS id 3j6x70rgfm-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Aug 2022 12:57:25 +0000 Received: from pps.filterd (ppma01fra.de.ibm.com [127.0.0.1]) by ppma01fra.de.ibm.com (8.16.1.2/8.16.1.2) with SMTP id 27QCp6ZK027844; Fri, 26 Aug 2022 12:57:23 GMT Received: from b06avi18878370.portsmouth.uk.ibm.com (b06avi18878370.portsmouth.uk.ibm.com [9.149.26.194]) by ppma01fra.de.ibm.com with ESMTP id 3j2q88wppn-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Fri, 26 Aug 2022 12:57:23 +0000 Received: from d06av21.portsmouth.uk.ibm.com (d06av21.portsmouth.uk.ibm.com [9.149.105.232]) by b06avi18878370.portsmouth.uk.ibm.com (8.14.9/8.14.9/NCO v10.0) with ESMTP id 27QCvfnW30540032 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=OK); Fri, 26 Aug 2022 12:57:41 GMT Received: from d06av21.portsmouth.uk.ibm.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id A359E5204E; Fri, 26 Aug 2022 12:57:20 +0000 (GMT) Received: from tuxmaker.boeblingen.de.ibm.com (unknown [9.152.85.9]) by d06av21.portsmouth.uk.ibm.com (Postfix) with ESMTPS id 0755252050; Fri, 26 Aug 2022 12:57:20 +0000 (GMT) Date: Fri, 26 Aug 2022 14:57:18 +0200 From: Alexander Gordeev To: Ian Rogers Cc: Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , James Clark , Kees Cook , "Gustavo A. R. Silva" , Adrian Hunter , Riccardo Mancini , German Gomez , Colin Ian King , Song Liu , Dave Marchevsky , Athira Rajeev , Alexey Bayduraev , Leo Yan , linux-perf-users@vger.kernel.org, linux-kernel@vger.kernel.org, Stephane Eranian Subject: Re: [PATCH v2 4/6] perf cpumap: Fix alignment for masks in event encoding Message-ID: References: <20220614143353.1559597-1-irogers@google.com> <20220614143353.1559597-5-irogers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220614143353.1559597-5-irogers@google.com> X-TM-AS-GCONF: 00 X-Proofpoint-ORIG-GUID: ni8eP2UL1PtshvZUllReDI7B2-JM23NS X-Proofpoint-GUID: GqoI1u7sry_i2E8Yk2I2pODVvVaZfjiL X-Proofpoint-Virus-Version: vendor=baseguard engine=ICAP:2.0.205,Aquarius:18.0.895,Hydra:6.0.517,FMLib:17.11.122.1 definitions=2022-08-26_06,2022-08-25_01,2022-06-22_01 X-Proofpoint-Spam-Details: rule=outbound_notspam policy=outbound score=0 clxscore=1011 suspectscore=0 adultscore=0 bulkscore=0 impostorscore=0 spamscore=0 mlxscore=0 priorityscore=1501 mlxlogscore=931 phishscore=0 lowpriorityscore=0 malwarescore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.12.0-2207270000 definitions=main-2208260053 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,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 On Tue, Jun 14, 2022 at 07:33:51AM -0700, Ian Rogers wrote: Hi Ian, Although it is committed, still have a question. > index e7758707cadd..d2d32589758a 100644 > --- a/tools/lib/perf/include/perf/event.h > +++ b/tools/lib/perf/include/perf/event.h > @@ -6,6 +6,7 @@ > #include > #include > #include > +#include Is it correct approach to include it into user-exposed headers? AFAICT headers_install.sh strips #include and compiler*.h itself do not get installed with make headers_install. [...] > +struct __packed perf_record_cpu_map_data { And it is only needed to pull __packed macro, right? Thanks!