diff options
| author | Lingutla Chandrasekhar <clingutla@codeaurora.org> | 2017-08-05 14:26:56 +0530 |
|---|---|---|
| committer | Gerrit - the friendly Code Review server <code-review@localhost> | 2017-09-01 02:51:08 -0700 |
| commit | af5a88a343145f4e2235a2cda97cb0494a07b9b6 (patch) | |
| tree | 4c7735187f15207111183c4e48f0dec95d8148db /include | |
| parent | 285229fa976cb9ffe5147cc4b363748c999160f9 (diff) | |
soc: qcom: dump current task stack and task_struct for minidump
Register the current stack and task_struct of all cpus to
the minidump table on panic.
Change-Id: I6906721f8c734dbf8142dc49e80dc730530f028c
Signed-off-by: Lingutla Chandrasekhar <clingutla@codeaurora.org>
Diffstat (limited to 'include')
| -rw-r--r-- | include/soc/qcom/minidump.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/soc/qcom/minidump.h b/include/soc/qcom/minidump.h index 5eb18cb1a365..d5970cfef643 100644 --- a/include/soc/qcom/minidump.h +++ b/include/soc/qcom/minidump.h @@ -39,11 +39,16 @@ struct md_region { extern int msm_minidump_add_region(const struct md_region *entry); /* Sets to true, if minidump table is initialized */ extern bool minidump_enabled; +extern void dump_stack_minidump(u64 sp); #else static inline int msm_minidump_add_region(const struct md_region *entry) { /* Return quietly, if minidump is not supported */ return 0; } + +static inline void dump_stack_minidump(u64 sp) {} #endif + + #endif |
