Received: by 2002:a05:6602:18e:0:0:0:0 with SMTP id m14csp265105ioo; Thu, 26 May 2022 03:12:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw/QUVuRLszjZOauNkZZ5aG8QBtr0Oams8K5SGHS/xM2KPy0R3Quh2gnLJJj2KdS8kNQRdw X-Received: by 2002:a17:906:9749:b0:6f5:38d:d4d8 with SMTP id o9-20020a170906974900b006f5038dd4d8mr33606940ejy.405.1653559961438; Thu, 26 May 2022 03:12:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1653559961; cv=none; d=google.com; s=arc-20160816; b=dNP+CHTRYRgtmVSVXijtAh2G7sdiSscHI9Lf8MH1DLPG1fHtCeepYxL4KXi3JXX1Bj JZ6zCn1pclxln2klrKMohIA/rCfehMJcxFan/L1uR2iavGnbIubcSUKZwUDmxZ5G4WpW Oz/Ur7+OLuJqWxmPJ4f5fgYn/XQ69XzInTRLF5lAqqm8uakr0WTQBqQVu95llNHy25OI iRDXROvvcbEM7/vSxX9cA3ijBJRD+qKZK4ssRqTWCaYNTHxnPxK38LGly9sEmgqKV66d tl22OhqpvnU1DAY5PJLx7Euk9KS7nOKOb7qp8o3Yneb8mdWJV5RW8VFGC81xYe+bEwkT HBEQ== 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 :message-id:date:subject:cc:to:from; bh=zYNsK2N431CuSTXXfcgnjw9CI9b68k3vCOLTBOH5g+k=; b=Sy5IJwmT9oOTz5MAuKDMspyeC6xBlLmyookJDvcMUocPzkMqe2Bs+X+YLhv+Y889gG ZtYpI7jLSaRSENKXZI9fQZMIcpykWcRP4LU4WjJmiHQ1JBX5mgxRqVA+xdOLBFT40aYV AmqtwEl0Ul4NR1B7B63ZIKnp2hiuIAMlwjz816XiuxVNWze5et/algdqbsBas5D6p3yg UlLQ3eEQs/mKWezSmKixv46B3v0JcjOeAzfmDPINex3btUdrhRhpgx7mnxCkltQ73O+f v5jR8iRi3eUm37PseQYJukQZCkuSw5S2eYSSPLlPgcM9G7lLn4ihZRCWeUoe56W9CoK9 itmg== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id w12-20020a056402268c00b0042b3870fd39si1440690edd.6.2022.05.26.03.12.14; Thu, 26 May 2022 03:12:41 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245206AbiEYPlq (ORCPT + 99 others); Wed, 25 May 2022 11:41:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35076 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S245192AbiEYPlo (ORCPT ); Wed, 25 May 2022 11:41:44 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BE3C427FC8; Wed, 25 May 2022 08:41:43 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 71F221424; Wed, 25 May 2022 08:41:43 -0700 (PDT) Received: from e121896.arm.com (unknown [10.57.8.252]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 77E9A3F73D; Wed, 25 May 2022 08:41:39 -0700 (PDT) From: James Clark To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, acme@kernel.org Cc: broonie@kernel.org, german.gomez@arm.com, leo.yan@linaro.org, mathieu.poirier@linaro.org, john.garry@huawei.com, James Clark , Will Deacon , Mike Leach , Peter Zijlstra , Ingo Molnar , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , linux-arm-kernel@lists.infradead.org Subject: [PATCH v3 0/5] perf: arm64: Tools support for Dwarf unwinding through SVE functions Date: Wed, 25 May 2022 16:41:09 +0100 Message-Id: <20220525154114.718321-1-james.clark@arm.com> X-Mailer: git-send-email 2.28.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, 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 Changes since v2: * Add commit to fix header include path to use Perf's copy * Apply Leo's review tags When SVE registers are pushed onto the stack the VG register is required to unwind because the stack offsets would vary by the SVE register width at the time when the sample was taken. The patches ("[PATCH v2 0/2] perf: arm64: Kernel support for Dwarf unwinding through SVE functions") add support for sampling the VG register to the kernel and the docs. This is the patchset to add support to userspace perf. A small change is also required to libunwind or libdw depending on which unwinder is used, and these will be published later. Without these changes Perf continues to work with both libraries, although the VG register is still not used for unwinding. Thanks James James Clark (5): perf tools: arm64: Use perf's copy of kernel headers perf tools: arm64: Copy perf_regs.h from the kernel perf tools: Use dynamic register set for Dwarf unwind perf tools: arm64: Decouple Libunwind register names from Perf perf tools: arm64: Add support for VG register tools/arch/arm64/include/uapi/asm/perf_regs.h | 7 +- tools/perf/arch/arm64/util/perf_regs.c | 34 +++++++++ tools/perf/arch/arm64/util/unwind-libunwind.c | 73 +------------------ tools/perf/util/evsel.c | 2 +- tools/perf/util/libunwind/arm64.c | 2 +- tools/perf/util/perf_regs.c | 2 + 6 files changed, 46 insertions(+), 74 deletions(-) -- 2.28.0