Skip to contentSkip to conversation

arm64/stacktrace: Export save_stack_trace_regs()

PATCH Applied William Cohen 2 participants 2 messages Mar 1, 2019 – Mar 19, 2019 arm64

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 e27c7fa015d6.

---
 arch/arm64/kernel/stacktrace.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm64/kernel/stacktrace.c +1 -0
index 1a29f2695ff2..d908b5e9e949 100644
@@ -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)
Signature · 1 line
2.20.1
maintainer Applied
#1 lore raw
Quoted 8 lines · William Cohen

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.

Queued for 5.1-rc2. Thanks.

Signature · 1 line
Catalin