Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp2262442pxk; Mon, 14 Sep 2020 08:43:18 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz7Ri29UpOf7w3Jh33S8plecYfHxqtW+niUyiUqVxfVWK8+8nbOldJkNlDLtkYZl/7Re2fg X-Received: by 2002:a17:906:a845:: with SMTP id dx5mr14987458ejb.543.1600098197931; Mon, 14 Sep 2020 08:43:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600098197; cv=none; d=google.com; s=arc-20160816; b=EXzPQNobhSWQGdV10U6X4OkNYBJ+FOgZNgdnV1ynV43CAgZa+3xCLzQIBwIZACYlOs a9BY5mtdIUAnbtukBoo2aSuAm48Hby5OR+iuct/w9LMNbU9TO5usLhdhLAGBQstCB7s2 P0tYZgcX8lBtYaTY0h07gTGYqNJOGyHuA0ugpqyVUzjUAfFl6HDWSlKKXY70Rp62FQjI Cla7EVgmiOLYZy8Cvyy47vXcGh3N1ITfv6PY0+FN9uUlsgm38feXpbEqrSmJkIvE0bOr zx5S/i71cW73oCsH2IE8jquRZ7lQYdzQbM1i0M7vhjvOJcD2TxT+P4E4ZgkKK3CYOqZu huHg== 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=T8+bJVKh9oNPbssjdrULnIJjacgSJzlFzPDkWdEywAw=; b=Qz8FteJDNBiKsBk8EOEdQYr+pNNV/itW/KwTZ4E/mSWeFaiYN0HZwqTC2pweRbMb9G ZzpfY7erIw3z36RxcbgiIaCW89g5FoiVax5b+072eWxzySRlOjJR2Pw9rpD82DivRk3n 6RGvRkXYL/Np52+T1PVyc7wpns2/txZ3Lcogy5uS0Pdb9NF0uf0NfN+X5IX9VMdXHvEE 1f5AuMNvio+MPaw8rydh7Azoh5soubzQ7vDfsfSzyLcFFgIwgVgMpxFr3N0QYS+Lj75G NjwKyeWVQYD9qfsZMjaoXlqOvS3EhDhHp05B14nI8E3OJjv9oemm3M7vq1mFiKX8Ad2B frhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=0sLp88Se; 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 x21si7659649eds.237.2020.09.14.08.42.55; Mon, 14 Sep 2020 08:43:17 -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=0sLp88Se; 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 S1726473AbgINPmB (ORCPT + 99 others); Mon, 14 Sep 2020 11:42:01 -0400 Received: from mail.kernel.org ([198.145.29.99]:49154 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726065AbgINPjp (ORCPT ); Mon, 14 Sep 2020 11:39:45 -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 A650520756; Mon, 14 Sep 2020 15:39:44 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1600097985; bh=1/HRpWVLm3KozpwWOHhLU5lAY+Y9eor2wMD4c3TuAOk=; h=From:To:Cc:Subject:Date:From; b=0sLp88SevaVMui3fppmWjovac2mIWKCqW/heaoZNysr/TNOkFyrx477mDq0cl7XBD WLQK1auUTfxVBFekcIw2ISS2ERAe5fjczE/IRG2oI7/pTNKz++tX2ZwTXMjvMRKFH2 NZzjzeZRq0d/xr6AnD0XOWKC9xK8uMwXiisY6k7o= From: Mark Brown To: Catalin Marinas , Will Deacon Cc: Mark Rutland , Vasily Gorbik , Heiko Carstens , Borislav Petkov , Thomas Gleixner , "H . Peter Anvin" , Christian Borntraeger , Ingo Molnar , Jiri Slaby , Miroslav Benes , x86@kernel.org, linux-arm-kernel@lists.infradead.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org, Mark Brown Subject: [PATCH v3 0/3] arm64: Convert to ARCH_STACKWALK Date: Mon, 14 Sep 2020 16:34:06 +0100 Message-Id: <20200914153409.25097-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. v3: - Rebase onto v5.9-rc3. - Fix handling of task == current. - Flip the sense of the walk_stackframe() callback. 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, 32 insertions(+), 96 deletions(-) base-commit: f75aef392f869018f78cfedf3c320a6b3fcfda6b -- 2.20.1