mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-20 16:13:15 +00:00
stacktrace: Export stack_trace_save_tsk
The bcachefs module wants it, and there doesn't seem to be any reason it shouldn't be exported like the other functions. Signed-off-by: Christopher James Halse Rogers <raof@ubuntu.com> Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
parent
771eb4fe8b
commit
7d672f4094
1 changed files with 2 additions and 0 deletions
|
@ -151,6 +151,7 @@ unsigned int stack_trace_save_tsk(struct task_struct *tsk, unsigned long *store,
|
||||||
put_task_stack(tsk);
|
put_task_stack(tsk);
|
||||||
return c.len;
|
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
|
* stack_trace_save_regs - Save a stack trace based on pt_regs into a storage array
|
||||||
|
@ -301,6 +302,7 @@ unsigned int stack_trace_save_tsk(struct task_struct *task,
|
||||||
save_stack_trace_tsk(task, &trace);
|
save_stack_trace_tsk(task, &trace);
|
||||||
return trace.nr_entries;
|
return trace.nr_entries;
|
||||||
}
|
}
|
||||||
|
EXPORT_SYMBOL_GPL(stack_trace_save_tsk);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* stack_trace_save_regs - Save a stack trace based on pt_regs into a storage array
|
* stack_trace_save_regs - Save a stack trace based on pt_regs into a storage array
|
||||||
|
|
Loading…
Add table
Reference in a new issue