Received: by 2002:a05:6a10:2726:0:0:0:0 with SMTP id ib38csp2219132pxb; Fri, 25 Mar 2022 13:16:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwowVxIDYoGVx1JUHbbbb6cgCFC1n4OTGiNcEu8WQ7ejtGgpxg/BT4MdPGIMxBIJHkcRsaS X-Received: by 2002:a63:3688:0:b0:382:8bf0:aad7 with SMTP id d130-20020a633688000000b003828bf0aad7mr997338pga.602.1648239392841; Fri, 25 Mar 2022 13:16:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1648239392; cv=none; d=google.com; s=arc-20160816; b=jAb2imRNFKEkpfyiLrFZbV3Ad5iFAELsCu4g0XtCjBC8qDM7U/to0k0Je8c6KpZqMW fOO3cgIobwW/8eHnQN8m42z4lI3v9djkNpaiS2rkuMW6EG1rliJmSkSFeHsQzSr4wjK7 8Ix8dDf18Mjp4W5VXmPBgjWGxL4GjleUUuKNPjX8yeQdGukZM5uFJBhZJ9FGApo3OM7L 3nquGRtsfAiZWU+994BzFBBv0dn8pD/Lh7K7jvncbMpeFIrd9lvJKtgFoxHwwloorh+2 DhBUUvQ/scjnqwu0DXH418L/euYJKvmMJ9mnrDBmBqPv5J4GQE4ZqkdiDdXnO4/uGY1r Id6w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=sP6GOjaZB5ZelmcgJTjP90zeki4v/xwCLzFSvg0IkWM=; b=MRzEME9GDv0hGCz8qyVlmv6kWCskq3e6qXyv8pSGYNIJoedK1uW4UT44arUuxmcTTM bO1xTZdJT3dII5EXISkUfLuUsr6OtUjzL+bRO01TX9LWjXYWvkG/co5E24C2Q7Mk8OB6 bjCbf6F6jEoOL+rXTjz9uPdThOCWxXCerDe0OcGshM8mL+1qT/KP4GabrOJajxVMv3h4 10F5Mqegw7wedXMG7MP2yAAEpy7UaCc2s2eSZJnD77p7ntFcNqks4uMzaLagog/QYoZn PXjH7POzkrQCO9CeBDkYEA2jffWCkiKQp6pX4ACoFkz0udfaaTUDTntd1a5824QAPSjj a0Kw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=KlcwtdrO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id q11-20020a056a00088b00b004fa3a8e0097si4290239pfj.334.2022.03.25.13.16.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 25 Mar 2022 13:16:32 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=KlcwtdrO; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8B90F293423; Fri, 25 Mar 2022 12:24:55 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229559AbiCYT0W (ORCPT + 99 others); Fri, 25 Mar 2022 15:26:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57934 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229520AbiCYT0R (ORCPT ); Fri, 25 Mar 2022 15:26:17 -0400 Received: from smtp-fw-6001.amazon.com (smtp-fw-6001.amazon.com [52.95.48.154]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE6EE2A1299; Fri, 25 Mar 2022 11:58:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1648234717; x=1679770717; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=sP6GOjaZB5ZelmcgJTjP90zeki4v/xwCLzFSvg0IkWM=; b=KlcwtdrOQF5Bwpz/DfMc3Xst1yP00HXatNDDRf7GG3J1BbjC1FflpgMf Wsz/DmoZVP53WEjUfy1r9j10i675+LFIDaEWr6ddYVF/b0DEIDcId/ZG5 hsskWUy93/bgQylSGATerh1dA7PIFV+xzOjbqKjnIQjFqUhgovNpBayWt 0=; X-IronPort-AV: E=Sophos;i="5.90,211,1643673600"; d="scan'208";a="189252095" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-iad-1d-b48bc93b.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-6001.iad6.amazon.com with ESMTP; 25 Mar 2022 18:58:36 +0000 Received: from EX13MTAUWB001.ant.amazon.com (iad12-ws-svc-p26-lb9-vlan3.iad.amazon.com [10.40.163.38]) by email-inbound-relay-iad-1d-b48bc93b.us-east-1.amazon.com (Postfix) with ESMTPS id 4D930C09C0; Fri, 25 Mar 2022 18:58:35 +0000 (UTC) Received: from EX13D02UWB002.ant.amazon.com (10.43.161.160) by EX13MTAUWB001.ant.amazon.com (10.43.161.249) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Fri, 25 Mar 2022 18:58:34 +0000 Received: from EX13MTAUEA001.ant.amazon.com (10.43.61.82) by EX13D02UWB002.ant.amazon.com (10.43.161.160) with Microsoft SMTP Server (TLS) id 15.0.1497.32; Fri, 25 Mar 2022 18:58:34 +0000 Received: from dev-dsk-alisaidi-1d-b9a0e636.us-east-1.amazon.com (172.19.181.128) by mail-relay.amazon.com (10.43.61.243) with Microsoft SMTP Server id 15.0.1497.32 via Frontend Transport; Fri, 25 Mar 2022 18:58:34 +0000 Received: by dev-dsk-alisaidi-1d-b9a0e636.us-east-1.amazon.com (Postfix, from userid 5131138) id 1352D2569; Fri, 25 Mar 2022 18:58:33 +0000 (UTC) From: Ali Saidi To: CC: , , , , , , , , , , , , , , , , , , , , Subject: Re: [PATCH v4 1/4] tools: arm64: Import cputype.h Date: Fri, 25 Mar 2022 18:58:28 +0000 Message-ID: <20220325185828.25461-1-alisaidi@amazon.com> X-Mailer: git-send-email 2.32.0 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable 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 Hi Arnaldo, On Fri, 25 Mar 2022 18:39:44 -0000, Arnaldo Carvalho de Melo wrote: > Em Thu, Mar 24, 2022 at 06:33:20PM +0000, Ali Saidi escreveu: > > Bring-in the kernel's arch/arm64/include/asm/cputype.h into tools/ > > for arm64 to make use of all the core-type definitions in perf. > > > > Replace sysreg.h with the version already imported into tools/. > > You forgot to add it to tools/perf/check-headers.sh so that we get > notificed when the original file in the kernel sources gets updated, so > that we can check if this needs any tooling adjustments. Sorry. > ⬢[acme@toolbox perf]$ diff -u tools/arch/arm64/include/asm/cputype.h arch/arm64/include/asm/cputype.h > --- tools/arch/arm64/include/asm/cputype.h 2022-03-25 15:29:41.185173403 -0300 > +++ arch/arm64/include/asm/cputype.h 2022-03-22 17:52:10.881311839 -0300 > @@ -170,7 +170,7 @@ > > #ifndef __ASSEMBLY__ > > -#include "sysreg.h" > +#include > > #define read_cpuid(reg) read_sysreg_s(SYS_ ## reg) > > ⬢[acme@toolbox perf]$ > > > I'll add the entry together with the waiver for this specific > difference. Thank you! It looks like it's been missed several times: % find tools/arch/arm64 -type f tools/arch/arm64/include/uapi/asm/unistd.h tools/arch/arm64/include/uapi/asm/bpf_perf_event.h tools/arch/arm64/include/uapi/asm/kvm.h tools/arch/arm64/include/uapi/asm/mman.h tools/arch/arm64/include/uapi/asm/perf_regs.h tools/arch/arm64/include/uapi/asm/bitsperlong.h tools/arch/arm64/include/asm/barrier.h tools/arch/arm64/include/asm/cputype.h tools/arch/arm64/include/asm/sysreg.h % grep arm64 tools/perf/check-headers.sh arch/arm64/include/uapi/asm/perf_regs.h arch/arm64/include/uapi/asm/kvm.h arch/arm64/include/uapi/asm/unistd.h Thanks, Ali