ANDROID: stacktrace: export stack_trace_save_tsk/regs
Export stack_trace_save_tsk and stack_trace_save_regs so that modules can use it to get the stacktrace of specific tasks or pt_regs. Bug: 184317765 Signed-off-by: Sangmoon Kim <sangmoon.kim@samsung.com> Change-Id: Ice4ede172b5ef2f1cf311a28414db0d8bf929ced
This commit is contained in:
parent
6f6d8bb444
commit
09eafb2817
@ -150,6 +150,7 @@ unsigned int stack_trace_save_tsk(struct task_struct *tsk, unsigned long *store,
|
||||
put_task_stack(tsk);
|
||||
return c.len;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(stack_trace_save_tsk);
|
||||
|
||||
/**
|
||||
* stack_trace_save_regs - Save a stack trace based on pt_regs into a storage array
|
||||
@ -173,6 +174,7 @@ unsigned int stack_trace_save_regs(struct pt_regs *regs, unsigned long *store,
|
||||
arch_stack_walk(consume_entry, &c, current, regs);
|
||||
return c.len;
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(stack_trace_save_regs);
|
||||
|
||||
#ifdef CONFIG_HAVE_RELIABLE_STACKTRACE
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user