forked from rubenslte/android_kernel_samsung_msm8226
wcnss: Expose dump stack functionality
Add changes to expose dump stack functionality which can be used by driver to dump stack information when it requires CR Fixed: 943322 Change-Id: I0fde7142dea2c18daf6b1fb0c5ee4bb8a31a6be0 Signed-off-by: Padma, Santhosh Kumar <skpadma@codeaurora.org> Signed-off-by: Pradosh Das <prados@codeaurora.org>
This commit is contained in:
committed by
Francescodario Cuzzocrea
parent
452229af85
commit
c34f0288dd
@@ -2697,6 +2697,16 @@ void wcnss_flush_work(struct work_struct *work)
|
||||
}
|
||||
EXPORT_SYMBOL(wcnss_flush_work);
|
||||
|
||||
/* wlan prop driver cannot invoke show_stack
|
||||
* function directly, so to invoke this function it
|
||||
* call wcnss_dump_stack function
|
||||
*/
|
||||
void wcnss_dump_stack(struct task_struct *task)
|
||||
{
|
||||
show_stack(task, NULL);
|
||||
}
|
||||
EXPORT_SYMBOL(wcnss_dump_stack);
|
||||
|
||||
/* wlan prop driver cannot invoke cancel_delayed_work_sync
|
||||
* function directly, so to invoke this function it call
|
||||
* wcnss_flush_delayed_work function
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
#define _WCNSS_WLAN_H_
|
||||
|
||||
#include <linux/device.h>
|
||||
#include <linux/sched.h>
|
||||
|
||||
enum wcnss_opcode {
|
||||
WCNSS_WLAN_SWITCH_OFF = 0,
|
||||
@@ -94,6 +95,7 @@ int wcnss_wlan_iris_xo_mode(void);
|
||||
void wcnss_flush_work(struct work_struct *work);
|
||||
void wcnss_flush_delayed_work(struct delayed_work *dwork);
|
||||
int wcnss_get_iris_name(char *iris_version);
|
||||
void wcnss_dump_stack(struct task_struct *task);
|
||||
|
||||
#ifdef CONFIG_WCNSS_REGISTER_DUMP_ON_BITE
|
||||
void wcnss_log_debug_regs_on_bite(void);
|
||||
|
||||
Reference in New Issue
Block a user