Skip to content

Commit c82fd1e

Browse files
wcohenctmarinas
authored andcommitted
arm64/stacktrace: Export save_stack_trace_regs()
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 e27c7fa. Signed-off-by: William Cohen <wcohen@redhat.com> Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 3dbcea5 commit c82fd1e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

arch/arm64/kernel/stacktrace.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ void save_stack_trace_regs(struct pt_regs *regs, struct stack_trace *trace)
143143
if (trace->nr_entries < trace->max_entries)
144144
trace->entries[trace->nr_entries++] = ULONG_MAX;
145145
}
146+
EXPORT_SYMBOL_GPL(save_stack_trace_regs);
146147

147148
static noinline void __save_stack_trace(struct task_struct *tsk,
148149
struct stack_trace *trace, unsigned int nosched)

0 commit comments

Comments
 (0)