Received: by 2002:a6b:500f:0:0:0:0:0 with SMTP id e15csp3995523iob; Tue, 17 May 2022 11:27:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwln/i8jYKCc2TO5Z6mcEg5LbLZe3aZR6JLhdGrD83CRBTfJHemeUScdorkJya/Wy2khUiq X-Received: by 2002:a17:906:2cc8:b0:6fd:d8d8:b8f3 with SMTP id r8-20020a1709062cc800b006fdd8d8b8f3mr21177683ejr.384.1652812042717; Tue, 17 May 2022 11:27:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1652812042; cv=none; d=google.com; s=arc-20160816; b=DpqwhuVgcLTx1U95tUCUUkjrb0XUkXRYSLfb8+vST1jtAauFOby0qs9jD9sNK4SOG0 4+ujRlJoLTPrlqQiRA38pVLKnnD5/wIEC7u4Ugw4/C2FD8IPFdCLq11xbY+Vbzcg/KlP PsFCL+RCROM2hNtyGrBnu3IRWavn5mM0aSVVu1FITMyPYARKwqPvHxWKXk1qchfFG7Og Yp/b8WQxkfqeTLUerLpcWcjk3M6bzBwyi2hstLAqt6FgWaqGDrqxdK+lXqMWiw2JLX3y OPP7ND+yjgiP8/o5C/GGUk3qFmsR4Rmfd81EWCg1bl7UNiDtTf8WEtvsV7fBcXzC4oK4 lfUA== 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=M6S+sp/cJFCEnCInpEmYbV3mJazqpEJ8JMF+50ZuoOo=; b=xWmXPrx5LrMu1LVHi/3KEJZGwlJmx0gDZXTOGBtCqsxaoVrgF87FOaFHVVJ0hsM2Vz EHtVPc8qs0JIu19INuYRsdsHnkLE1Z9TQuFrIQ2BAGp0yxLHeOWT9PO1HUrskQ/MCGAA bN8GJxLDJrg4Os3mQmIqLBiCyrDRolG2Jrtf1tFVcBqLIZqTH1M3kIkiVV4UTqId26EQ +Q5ZKzb/GfVk/pTX8Qg3z732B95/0x+loN3ewqjcHUdK9SPxR5tG6ZVrKxV4xTX5XDI4 gCbwrYbOdBMsy4EwNipTnDY1jmXuXX9Fdus+6aktvh9xnuqQJplOWohZDlTAmwOJlIrs 8COw== 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 y11-20020a056402358b00b00425f8164d96si27042edc.9.2022.05.17.11.26.56; Tue, 17 May 2022 11:27:22 -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 S245653AbiEQKXa (ORCPT + 99 others); Tue, 17 May 2022 06:23:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41468 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1344799AbiEQKV6 (ORCPT ); Tue, 17 May 2022 06:21:58 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id BBE7530566; Tue, 17 May 2022 03:20:16 -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 87FB41042; Tue, 17 May 2022 03:20:16 -0700 (PDT) Received: from e121896.warwick.arm.com (e121896.warwick.arm.com [10.32.33.49]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 229383F66F; Tue, 17 May 2022 03:20:14 -0700 (PDT) From: James Clark To: linux-kernel@vger.kernel.org, linux-perf-users@vger.kernel.org, broonie@kernel.org, acme@kernel.org Cc: 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 v2 0/2] perf: arm64: Tools support for Dwarf unwinding through SVE functions Date: Tue, 17 May 2022 11:20:01 +0100 Message-Id: <20220517102005.3022017-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 v1: * Split patchset into kernel side and Perf tool changes 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 (4): 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/perf_regs.c | 2 + 5 files changed, 45 insertions(+), 73 deletions(-) -- 2.28.0