Received: by 2002:ac2:464d:0:0:0:0:0 with SMTP id s13csp1995706lfo; Sat, 28 May 2022 13:06:46 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoRCE0DebbyNtSl1AN+BaVvWoTvWZzClE62YKZn/xJ/xI2B4sz1bb5d1alUf/wTt/RnHzF X-Received: by 2002:a17:90a:a096:b0:1df:58d7:5b20 with SMTP id r22-20020a17090aa09600b001df58d75b20mr14730860pjp.212.1653768406543; Sat, 28 May 2022 13:06:46 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653768406; cv=none; d=google.com; s=arc-20160816; b=sS/1sWEX8mkCDQbIMtE7vi8KjSNuhKWAe4Zbkmju4p/o20hvI1NXqdh3HII4sm88DQ OuaeFC99rv1oWIFfcaKFVT0bdtVMovd9dYdiBxM/6mPeDz2TaUlLOe8vgFZoFpXJUJfz 4mPzpIEfEgnqZh0fpBJBHs++S4Xke4QbswFpFVxX1YiaWdWktwCOdJAZSpOtrRRkpjLK 94TV21CiLUxCxAit2ESKKfa9omfxbH4Afy4ZIfGOa9bJrm0nh00hh/5tu8CNi2TgRvrP fdgqRJ5qCe3HQWwCiBNmzaao3RcHNkuCpMR5nhiBcebuwCQERHWtTdRqmUfpepAfIjaa ElQw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=nyaS7W4ddbMGpUEkMXd4qvvJDn/QCzpN4h4+DeSRTG4=; b=aKyW7BZnRqyv4WoEu8N7I2kjn4cbknKXq7aGcLN964VZqqq/jUbGn70fHkjZVivUJo Uk7f2CaK40/xPyEZQvUl79Sgy0fVNyNWAjywKSFyOZx77C/EQNDg70ob/5tJWnzxhnxh AoBi9Ee1PByPrPMSc/8Dl7mESCJ+QBJ7NttpuXjPhEaOaQ60zEoTsR56BNUlKsBiSGT9 ipgSWRvhvway873uxnt6DBVPZaj4DzJTp3wglV2qyem1mpEMATOhwUQDDO89MK1zQ3AW YBBspOdDmO1RW2fEp/EYgih9xFxYF8auGUT+YgieUp3XffJz1Llj8QgU2SIkzAxitLHN PLLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="j8y6/wrg"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [23.128.96.19]) by mx.google.com with ESMTPS id c15-20020a631c4f000000b003c61ee0c7f6si10161246pgm.552.2022.05.28.13.06.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 28 May 2022 13:06:46 -0700 (PDT) Received-SPF: softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) client-ip=23.128.96.19; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b="j8y6/wrg"; spf=softfail (google.com: domain of transitioning linux-kernel-owner@vger.kernel.org does not designate 23.128.96.19 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id AEE364B1CE; Sat, 28 May 2022 12:22:01 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1350324AbiE0QIu (ORCPT + 99 others); Fri, 27 May 2022 12:08:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51120 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349586AbiE0QIt (ORCPT ); Fri, 27 May 2022 12:08:49 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 747B01498FA; Fri, 27 May 2022 09:08:48 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 1024F61DCE; Fri, 27 May 2022 16:08:48 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 466E1C385A9; Fri, 27 May 2022 16:08:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1653667727; bh=OlBI8wVCIAxvvfasLZa9UH7nUKu5dc9htrYEpiULe6M=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=j8y6/wrgqMG5Oat+epe7h7DytEaI14sZ2BQgUoEE4PpE+UZoDrLkh1p0wzQnlS+Rn hl/EJzYILmBt5XtutCUugflcd316cr3XKq8rns0GY/VXwsxaS4gCRxFLAxN+ft3wum 9vOfyJmi4YXWzAK88Dmd6Vs1RYhzTrk9XXXQPkzoX8xK2Hdzu/39EM+xb52mQUqSon bR2sn31VpNjPTWq7gKVfKS1lmhokpmpXAOKTg7nf1dHoa7KXNZHvQNNerAJyCseEDc PbDMhTsXYsKqKTJF8WJyO7rhFY6I2X6yRRjJtRP6IsuBgO1KeMFan/5fCW0cGgTdAn Ixih7UrR73guQ== Received: by quaco.ghostprotocols.net (Postfix, from userid 1000) id CFB2D4036D; Fri, 27 May 2022 13:08:43 -0300 (-03) Date: Fri, 27 May 2022 13:08:43 -0300 From: Arnaldo Carvalho de Melo To: Leo Yan Cc: James Clark , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, broonie@kernel.org, german.gomez@arm.com, John Garry , Will Deacon , Mathieu Poirier , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-doc@vger.kernel.org Subject: Re: [PATCH v1 4/6] perf tools: Use dynamic register set for Dwarf unwind Message-ID: References: <20220509144257.1623063-1-james.clark@arm.com> <20220509144257.1623063-5-james.clark@arm.com> <20220527061854.GA829807@leoy-ThinkPad-X240s> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20220527061854.GA829807@leoy-ThinkPad-X240s> X-Url: http://acmel.wordpress.com X-Spam-Status: No, score=-3.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,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 Em Fri, May 27, 2022 at 02:18:54PM +0800, Leo Yan escreveu: > On Thu, May 26, 2022 at 03:19:54PM -0300, Arnaldo Carvalho de Melo wrote: > > [...] > > > Too old to support? > > > > 69 7.19 ubuntu:16.04-x-arm64 : FAIL gcc version 5.4.0 20160609 (Ubuntu/Linaro 5.4.0-6ubuntu1~16.04.9) > > arch/arm64/util/perf_regs.c: In function 'arch__user_reg_mask': > > arch/arm64/util/perf_regs.c:151:28: error: 'HWCAP_SVE' undeclared (first use in this function) > > if (getauxval(AT_HWCAP) & HWCAP_SVE) > > ^ > > arch/arm64/util/perf_regs.c:151:28: note: each undeclared identifier is reported only once for each function it appears in > > /git/perf-5.18.0/tools/build/Makefile.build:139: recipe for target 'util' failed > > make[5]: *** [util] Error 2 > > /git/perf-5.18.0/tools/build/Makefile.build:139: recipe for target 'arm64' failed > > make[4]: *** [arm64] Error 2 > > /git/perf-5.18.0/tools/build/Makefile.build:139: recipe for target 'arch' failed > > make[3]: *** [arch] Error 2 > > > > > > ⬢[acme@toolbox perf]$ find . -name "*.h" | xargs grep -w HWCAP_SVE > > ./arch/arm64/include/uapi/asm/hwcap.h:#define HWCAP_SVE (1 << 22) > > ⬢[acme@toolbox perf]$ > > I tested aarch64 GCC-7.4.1 which doesn't support HWCAP_SVE, but > aarch64 GCC-8.3.0 and GCC-9.4.0 support it. > > Either we can add below code: > > #ifndef HWCAP_SVE > #define HWCAP_SVE (1 << 22) > #endif > > Or directly include header file <.../asm/hwcap.h>. > > Not sure which method is preferred. Maybe the first approach can be > de-couple with Linux kernel code? Lets go KISS and just define it if not present, as you suggested above, will test now. - Arnaldo