Received: by 2002:a05:6a10:a0d1:0:0:0:0 with SMTP id j17csp437328pxa; Wed, 19 Aug 2020 05:50:59 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxyweP7buaf+iiqx5HcNwK/PGqipOTQN1WqS53hmTSMC2RgWIKn3alCXmBkn12g0pwTNqZe X-Received: by 2002:a17:906:e10e:: with SMTP id gj14mr26255649ejb.218.1597841458885; Wed, 19 Aug 2020 05:50:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1597841458; cv=none; d=google.com; s=arc-20160816; b=OdJKblxLetZ5TfAx/ufSzAXWSDbMX5dZB6DFTLtrEpAZPXPHEUsCXEm8Z/NZEfGV7P Et/MqfM3qzCjuUpKOLiuY+3o5pb9qXAYa4v4Y+T4VBax74ewMIZl7NDrZmZGk32cNxnW LBAF74pY1a7Fleey4hmeRWycTNYj7+d8WnP1hJbyB7nmgIWzIS8jF/HHz3l68OOq5KLV E3c4HHPxmdOmGEPDOxMUXLslgarSd1vkXKGMCJ2Iwd17VV9Qhc1eXoZCxErsariM22LU ySSh/gsQMDYprxo2kY8ZS7o7NpAhrlYPM88zWwlfq+oTp3GMMOSkjEebx+M8MRPsB2TN ANYQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=CD6af7raH1HFSgQgEtjXU7osG1MY5H9tDQ3IcDSTq8s=; b=Ob2gO5i829XHiFJnKwTpFPoqhD3oU3lNTmALkCRS94Td7jsWfKfIaAkdWju6Vb2aXO qFyGYcZd5ZmkWj8RECjqrfZA8uuqDNbLMmoeJIwy0guPhx1e45cZLQJ5eowyfS9B68sf qPvMqUSGUeGCh6PJYUhKOn3DdgXmC1DZ5jO5A/2lCxwo0PXjTEG+Mo68U93GUnnjYzZw 17weCy3v5+N6Nz0TgLgCQ8zi5VaSesriB5d29FstCow9eoTThSEHv8aRTE++rxVmnwKE SAHiadAQprly744mkax07g26XxDoFk7OhEjBz3kQH3aXzeDtluj8BE8XvHzqXU4YAHYE dgVA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="VX/GTRhn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dm22si18876594ejc.191.2020.08.19.05.50.34; Wed, 19 Aug 2020 05:50:58 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b="VX/GTRhn"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728090AbgHSMuE (ORCPT + 99 others); Wed, 19 Aug 2020 08:50:04 -0400 Received: from mail.kernel.org ([198.145.29.99]:36520 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727022AbgHSMuD (ORCPT ); Wed, 19 Aug 2020 08:50:03 -0400 Received: from localhost (fw-tnat.cambridge.arm.com [217.140.96.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id AA259206B5; Wed, 19 Aug 2020 12:50:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1597841403; bh=P21DRI9STOTIFsWr47hmn9m9qjEUq3E/mYyBNBX8UOI=; h=From:To:Cc:Subject:Date:From; b=VX/GTRhnbdHthYMlFoowaeaJCyFs+EBVlWF99bP8AhPZLOBEK1WOGMNhyY9dXHqXN CtGoGN/iCs+UoniA4UCGRxKlli9kYwyLxlS7vs01lj9Gq8h/16d7C8LeB2Z71/clIq o3AHykiyne4ca6lefsjcb017pUBn2gJ60W5h8hq4= From: Mark Brown To: Catalin Marinas , Will Deacon , Vasily Gorbik , Heiko Carstens , Borislav Petkov , Thomas Gleixner , "H. Peter Anvin" Cc: Christian Borntraeger , Ingo Molnar , Jiri Slaby , x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Miroslav Benes , Mark Brown Subject: [PATCH v2 0/3] arm64: Convert to ARCH_STACKWALK Date: Wed, 19 Aug 2020 13:49:10 +0100 Message-Id: <20200819124913.37261-1-broonie@kernel.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This series updates the arm64 stacktrace code to use the newer and much simpler arch_stack_walk() interface, the main benefit being a single entry point to the arch code with no need for the arch code to worry about skipping frames. Along the way I noticed that the reliable parameter to the arch_stack_walk() callback appears to be redundant so there's also a patch here removing that from the existing code to simplify the interface. This is preparatory work for implementing reliable stack trace for arm64. v2: Rebase onto v5.9-rc1. Mark Brown (3): stacktrace: Remove reliable argument from arch_stack_walk() callback arm64: stacktrace: Make stack walk callback consistent with generic code arm64: stacktrace: Convert to ARCH_STACKWALK arch/arm64/Kconfig | 1 + arch/arm64/include/asm/stacktrace.h | 2 +- arch/arm64/kernel/perf_callchain.c | 6 +-- arch/arm64/kernel/return_address.c | 8 +-- arch/arm64/kernel/stacktrace.c | 84 ++++------------------------- arch/s390/kernel/stacktrace.c | 4 +- arch/x86/kernel/stacktrace.c | 10 ++-- include/linux/stacktrace.h | 5 +- kernel/stacktrace.c | 8 ++- 9 files changed, 30 insertions(+), 98 deletions(-) -- 2.20.1