Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp732173ybh; Wed, 15 Jul 2020 13:45:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzEsowJH8yZyQQbdej3GCyJF0YZIxBt6ZHiIjgjDsTrI5zMyB8ddTOdzs4zrMO8audF99HK X-Received: by 2002:a17:906:7283:: with SMTP id b3mr745740ejl.163.1594845927640; Wed, 15 Jul 2020 13:45:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594845927; cv=none; d=google.com; s=arc-20160816; b=srmYjj68tgfZspJI6YCg4c85AN7b6ig5dvUcIotzpZxNqWw8yLPNdW0CYVhDJj4q+f 43dgua4TBz0jgkPQfe5at9TtchO6WUxVcFxGuD//DZJqlCj8p8A0lAbY2xWpQFFajHqs i1R/2nZVDRTPKlocHDdvwEohXjOCQPNiCePnVwy0IHIuqzRoAapGxdp3PymPXldwG8bF 4HDjtEqn9NLPOQmw/Hvy6z0aJ4DAFle0AmvPJY5DJ9WJGQAex74u/h1MwV1Ml0aiovy9 +WMk0yyyx8gjLeUd998VI/1yImT/MnC04Lifep49lScDexA50nijSlv+Cy/0alvGp7I1 NZHA== 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=oWaUfmKUbrqbv10oO07Tu80I6WSyWJgIzk1rO0rWcEo=; b=PQqeSSkgZbeuije6ZDSieLs+yQ4MCSKvpcrSHXbl9FkP3UsYa4ALK264l+c8zAQFX8 AhBgDDI7fmC1E0TS3YhbzjIDRF4qS6go6bBp3EkUIirWNE0KJGvp8Gsn3ZDZGH4Nn0Co GmPhptwU3hRZp20JpYVrT4KBvUvUepRpT//vw/WU7gI7mXiJCqmMNv+fWiMUGH7pbAOd l5eUpgc4mUpi+2kb/ju4a6+xOOt0Pkas+ZJPpJsFi4etAy2XD+p+2J7GAESAveqn9ZP4 InsXj2r17hXrEXI5A0mE7nUJbiLA0Pr4NjJqu4Ej8Meprm8jU0zk58quTziBLOIFRwHp wWSw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Rd1HgCn+; 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 n26si1852538ejs.214.2020.07.15.13.45.04; Wed, 15 Jul 2020 13:45:27 -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=Rd1HgCn+; 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 S1726941AbgGOUoz (ORCPT + 99 others); Wed, 15 Jul 2020 16:44:55 -0400 Received: from mail.kernel.org ([198.145.29.99]:37536 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725917AbgGOUox (ORCPT ); Wed, 15 Jul 2020 16:44:53 -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 15E342065F; Wed, 15 Jul 2020 20:44:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594845893; bh=lSC8kgUvJWuaUKxsKjBjCdclZg7uZic1lS/dXUaF4qU=; h=From:To:Cc:Subject:Date:From; b=Rd1HgCn+i2GELxHAvY1++7DeYlnlASEqXe0kXTtOIoywbloM3mdxRmiKeaJJxZAun XEKJqSmapHsBZF0OgNqGHOTzbq9DYdcdD+x+JsHtRGnpksIXE4GskpmC2Kod73ecwk mMAB8jTtYGl/WH2yrOysvfXAtJ6OPjQ4zgOBq5hY= From: Mark Brown To: Catalin Marinas , Will Deacon , Heiko Carstens , Vasily Gorbik , Thomas Gleixner , Borislav Petkov , "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, Mark Brown Subject: [PATCH 0/3] arm64: Convert to ARCH_STACKWALK Date: Wed, 15 Jul 2020 21:28:18 +0100 Message-Id: <20200715202821.12220-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 now be redundant so there's also a patch here removing that from the existing code to simplify the interface. This depends on 0de674afe83cb2367 (arm64: stacktrace: Move export for save_stack_trace_tsk()) due to the code that was fixed there being removed. 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