Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3910991iob; Tue, 17 May 2022 09:40:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzJjG5eXu17RO5k0c/qHl3AdziQx30FbCb2IYNyi/9ykjEGn3dtbttMqSNn17Qd/+zwAQnj X-Received: by 2002:a17:902:8608:b0:158:c532:d8b2 with SMTP id f8-20020a170902860800b00158c532d8b2mr23471302plo.46.1652805631506; Tue, 17 May 2022 09:40:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652805631; cv=none; d=google.com; s=arc-20160816; b=KTF2TAFreTv7K+i0YBoTh0tm1+u/4Ib2jPx1y5jG1iR6v73R7ByPEZI3bcLr1tzz9I 6cgdXrOcnWyvgBoVWc7kL+3TuVqh7mMRJhKN/ivlxhXq50EOtiV1OCgyUxGPppTRjuEY iOE5LaVfSzDNPtc4LJTMUvzWoohAa9RPAK39SinC3HS95whW8ruN6ZcypsubWVfFkFGF BK19t6GpwzMXcu+Cds+n44C5BRFkA0aJAHVg7izAOulljuCqEAn3ZCxEdBHpJ6jOh1XX 2Rxg3tcc5lUe05okHd/AuJdPyM8JkrP7drrx5lEBZ3WB5JjvvJJ4CxoBNhVsg2YvE1mm Lfbg== 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=vVR6zNLI+c0k/X+csgUVN8nm7PvvodORekMaxXxc1M0=; b=i8vLKc5/gjEDGEoPiOxOxOX2K55pMwImxanNs1O/0dMXeflF5piwv1RSE6iQPDpJXS i524ZeKyseHRywzHIxDF5bnxT+/KefouecrETWevO3Zv0F/pXpvxxEqgYu2L8r6sRhMF 0fFzOoAOegv+5I7jUkq5YgqmESqc5sBJdy2WV2nOnI27qA7HgHJAD8H7qpQeDEY+F/26 Y4LbZbfPxGUnvawsDYWWq5qBfnlB6DtX9Qf57Viix8SPKSm4DBoEuGBaaHa+MvkYbpib DnFqe34KPkb9Y7O8JZIy6cpEk87VNrWPaeDXwbqaxhUbdM00LDAczhm1PemErh2b6bvX yegg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=P2qf7Qtg; 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=linaro.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u5-20020a170902e80500b00161946cd293si5639139plg.44.2022.05.17.09.40.19; Tue, 17 May 2022 09:40:31 -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=@linaro.org header.s=google header.b=P2qf7Qtg; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242619AbiEQKwE (ORCPT + 99 others); Tue, 17 May 2022 06:52:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344690AbiEQKu4 (ORCPT ); Tue, 17 May 2022 06:50:56 -0400 Received: from mail-pj1-x102b.google.com (mail-pj1-x102b.google.com [IPv6:2607:f8b0:4864:20::102b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3097D36317 for ; Tue, 17 May 2022 03:50:54 -0700 (PDT) Received: by mail-pj1-x102b.google.com with SMTP id nk9-20020a17090b194900b001df2fcdc165so2098928pjb.0 for ; Tue, 17 May 2022 03:50:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=vVR6zNLI+c0k/X+csgUVN8nm7PvvodORekMaxXxc1M0=; b=P2qf7Qtgz9XAg7exjMtb8+M9Sz0eO/t+AfddkwEFhWXoNRj99c1cdjLjuh/0JEsXQQ dEsp4+DhbXW+qtdL1mcwW46guWWKLsujaG/UKrR1X03zrXbgN4RrR2vU+qzqQEJ59fQi s5vtF0YquujenckSNVmVwq36pv5QhYE5WUXR7LUOLCf8UpFsjf8nzHdAp/1BCCVygnqH IuoHakDVI4ykqxHBI9Fgp927b+FWf9Rfxjlnfz1ktQh+G+mkGGV9acXsQK8qXcDZBb3j LY1JeU3X2Ixd2FUjs7iER8Xag1kDOEv6loGhpWZNd2YECqd2RE39jSBpEiCs4GBe0pFB DSyg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=vVR6zNLI+c0k/X+csgUVN8nm7PvvodORekMaxXxc1M0=; b=P+DZnk9sPtscYyMM7drLJidcQ8BGStjxBWwKeMB6OJeVmS3lPKu4p4won6TwXMjcUB bJXiaK3Yruhs9H8JC1K/59EVQeX/nv2hv+gffRQ0DenLmNul3niwre9iyBNirIUSLAeS wWmQwyHq5U5WEObiw7YGZro5dsaFz8yZ3cNdd9mKICRZwtwbl4Xgfdqbms+3tlF16AZq 5Np6JGI2eOmhOAwh3Km80eYVFaOccFH9YFQR+m/RcZWFE/DnahNi7eFD6ZUNpkle49Vo y00qqUJsHDmTD4xh1X2B/4X9kEZcUKuOTtCqNYniw45ELPMm+AEm6YYvLwwspLsU/nrI hfRQ== X-Gm-Message-State: AOAM533V/hcO5BFU6+QTJg5gO6D0rjFmNfLSZ4X4Hltoi8TU+NZgj6vt F4FPL1+Yy9bx9LrWdZLfnJDlZg== X-Received: by 2002:a17:902:c7cd:b0:161:8b6f:73c3 with SMTP id r13-20020a170902c7cd00b001618b6f73c3mr7000127pla.156.1652784653611; Tue, 17 May 2022 03:50:53 -0700 (PDT) Received: from leoy-ThinkPad-X240s ([46.249.98.195]) by smtp.gmail.com with ESMTPSA id m6-20020a17090a858600b001df47e47d41sm1336540pjn.36.2022.05.17.03.50.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 17 May 2022 03:50:53 -0700 (PDT) Date: Tue, 17 May 2022 18:50:45 +0800 From: Leo Yan To: James Clark Cc: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, broonie@kernel.org, acme@kernel.org, german.gomez@arm.com, mathieu.poirier@linaro.org, john.garry@huawei.com, Will Deacon , Mike Leach , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel@lists.infradead.org Subject: Re: [PATCH v2 1/4] perf tools: arm64: Copy perf_regs.h from the kernel Message-ID: <20220517105045.GB153558@leoy-ThinkPad-X240s> References: <20220517102005.3022017-1-james.clark@arm.com> <20220517102005.3022017-2-james.clark@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220517102005.3022017-2-james.clark@arm.com> X-Spam-Status: No, score=1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Level: * 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, May 17, 2022 at 11:20:02AM +0100, James Clark wrote: > Get the updated header for the newly added VG register. > > Signed-off-by: James Clark Reviewed-by: Leo Yan > --- > tools/arch/arm64/include/uapi/asm/perf_regs.h | 7 ++++++- > 1 file changed, 6 insertions(+), 1 deletion(-) > > diff --git a/tools/arch/arm64/include/uapi/asm/perf_regs.h b/tools/arch/arm64/include/uapi/asm/perf_regs.h > index d54daafa89e3..fd157f46727e 100644 > --- a/tools/arch/arm64/include/uapi/asm/perf_regs.h > +++ b/tools/arch/arm64/include/uapi/asm/perf_regs.h > @@ -36,6 +36,11 @@ enum perf_event_arm_regs { > PERF_REG_ARM64_LR, > PERF_REG_ARM64_SP, > PERF_REG_ARM64_PC, > - PERF_REG_ARM64_MAX, > + > + /* Extended/pseudo registers */ > + PERF_REG_ARM64_VG = 46, // SVE Vector Granule > + > + PERF_REG_ARM64_MAX = PERF_REG_ARM64_PC + 1, > + PERF_REG_ARM64_EXTENDED_MAX = PERF_REG_ARM64_VG + 1 > }; > #endif /* _ASM_ARM64_PERF_REGS_H */ > -- > 2.28.0 >