Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp716914imb; Fri, 1 Mar 2019 12:03:03 -0800 (PST) X-Google-Smtp-Source: APXvYqwD5ifDxRHxRbuVP9t3lrrBVRRy1OBk0MvCqlCFuGq2bKyWg/A2nJepPNlVCyNMbfbd4b0f X-Received: by 2002:a63:e310:: with SMTP id f16mr6331207pgh.93.1551470583657; Fri, 01 Mar 2019 12:03:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551470583; cv=none; d=google.com; s=arc-20160816; b=sbeFuKqWFQIbVxQHesIdwvCPoHcN4HjbYzSq5LJGhAFLE7SSGPFlK1ivHL3WshKtLe XI7pr6G9pfcDvuGAXdRkrfVGRwlKOLZQotFnsUCH14VqYmCr8hI50YujcvIFUcOVKR9k pHWlPe19+g83cIQP5LikVc1tiYkcsQTsG77gsifOjtPb3K5Vpgpv0L+2Huy1wG9SShdu dr81It6NKhA9M8L582iMCzjSxsw/i5Ma2Epf/7+FK6udfjCKYwts6ESfXJPP088TVR+i 9SIgTx0jEuZ5f31i38nAEoY+QsoYNdNfykyFXNlI43U3uF+5gAOSYIUdWO4Djr8mXGJZ FC1w== 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; bh=MG33cjNxCVVd8ng2RzYaadNC4Ouk2AlGNqHfFL/Q4B8=; b=q178TPpGhXastyNB7cKN/2dcZaGHNCNSK5C14HSzMCvGfXQexiO9Pv9BCfL0rnKvBh 0ST17vrTMj/5Dhr/KU4dk4vtfo3oqU62JfxDi0laaqB2nhZiU5rci2ccdecMfOtNvHrL UsCIGaqXwuTuBjMFm/Te5rBaZNPF56exxerllIMRjIEkoBm/pO5BD00MbjWYR8QVlMLD +qZmEsl3hOh9yUOpXJppqMDt+y6O4Ovb7QJyhESb1i6n4lMWr/6F4iPxyplox1FAyCTK IBvq9JyU1XwkR5lSDXJxYa4rrTP32hTArDcLipQJ6OsANqAp2gnzvOc+t0EtfVNnoyMX COew== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c20si16448049pgl.595.2019.03.01.12.02.42; Fri, 01 Mar 2019 12:03:03 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726007AbfCAUAq (ORCPT + 99 others); Fri, 1 Mar 2019 15:00:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:35554 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725862AbfCAUAp (ORCPT ); Fri, 1 Mar 2019 15:00:45 -0500 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 9856CA0A21; Fri, 1 Mar 2019 20:00:45 +0000 (UTC) Received: from cervelo.rdu.redhat.com (dhcp129-79.rdu.redhat.com [10.13.129.79]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3700E19C58; Fri, 1 Mar 2019 20:00:45 +0000 (UTC) From: William Cohen To: catalin.marinas@arm.com, will.deacon@arm.com, linux-kernel@vger.kernel.org Cc: William Cohen Subject: [PATCH] arm64/stacktrace: Export save_stack_trace_regs() Date: Fri, 1 Mar 2019 15:00:41 -0500 Message-Id: <20190301200041.31305-1-wcohen@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.28]); Fri, 01 Mar 2019 20:00:45 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The ARM64 implements the save_stack_trace_regs function, but it is unusable for any diagnostic tooling compiled as a kernel module due the missing EXPORT_SYMBOL_GPL for the function. Export save_stack_trace_regs() to align with other architectures such as s390, openrisc, and powerpc. This is similar to the ARM64 export of save_stack_trace_tsk() added in git commit e27c7fa015d6. Signed-off-by: William Cohen --- arch/arm64/kernel/stacktrace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/stacktrace.c b/arch/arm64/kernel/stacktrace.c index 1a29f2695ff2..d908b5e9e949 100644 --- a/arch/arm64/kernel/stacktrace.c +++ b/arch/arm64/kernel/stacktrace.c @@ -143,6 +143,7 @@ void save_stack_trace_regs(struct pt_regs *regs, struct stack_trace *trace) if (trace->nr_entries < trace->max_entries) trace->entries[trace->nr_entries++] = ULONG_MAX; } +EXPORT_SYMBOL_GPL(save_stack_trace_regs); static noinline void __save_stack_trace(struct task_struct *tsk, struct stack_trace *trace, unsigned int nosched) -- 2.20.1