mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-05 19:31:57 -04:00
Merge "cnss: Dump stack by stack_trace_print"
This commit is contained in:
commit
73d1932874
1 changed files with 13 additions and 5 deletions
|
|
@ -242,13 +242,21 @@ int cnss_set_cpus_allowed_ptr(struct task_struct *task, ulong cpu)
|
|||
}
|
||||
EXPORT_SYMBOL(cnss_set_cpus_allowed_ptr);
|
||||
|
||||
/* wlan prop driver cannot invoke show_stack
|
||||
* function directly, so to invoke this function it
|
||||
* call wcnss_dump_stack function
|
||||
*/
|
||||
#define ENTRIES_COUNT 32
|
||||
void cnss_dump_stack(struct task_struct *task)
|
||||
{
|
||||
show_stack(task, NULL);
|
||||
const int cnss_spaces = 4;
|
||||
unsigned long cnss_entries[ENTRIES_COUNT] = {0};
|
||||
struct stack_trace cnss_trace = {
|
||||
.nr_entries = 0,
|
||||
.skip = 0,
|
||||
.entries = &cnss_entries[0],
|
||||
.max_entries = ENTRIES_COUNT,
|
||||
};
|
||||
|
||||
save_stack_trace_tsk(task, &cnss_trace);
|
||||
stack_trace_print(cnss_entries, cnss_trace.nr_entries,
|
||||
cnss_spaces);
|
||||
}
|
||||
EXPORT_SYMBOL(cnss_dump_stack);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue