summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAbhishek Singh <absingh@codeaurora.org>2016-02-22 11:32:12 +0530
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:21:25 -0700
commit86af6dc34ef4c61fb65ebf57534211546a3e678d (patch)
tree849c3f9962ba3510ab8da8ccf1ff4fca917185d5
parentdaf3c7ce2200ce9f0c3c73f1b03039382515d3e3 (diff)
cnss: Expose dump stack functionality
Add changes to expose dump stack functionality which can be used by driver to dump stack information when it requires. CRs-Fixed: 979886 Change-Id: Ib929ad0a510b996ac54d17afd2957ea487c62851 Signed-off-by: Abhishek Singh <absingh@codeaurora.org>
-rw-r--r--drivers/net/wireless/cnss/cnss_common.c12
-rw-r--r--include/net/cnss.h1
2 files changed, 12 insertions, 1 deletions
diff --git a/drivers/net/wireless/cnss/cnss_common.c b/drivers/net/wireless/cnss/cnss_common.c
index 2e41e3061244..346ac07f6db5 100644
--- a/drivers/net/wireless/cnss/cnss_common.c
+++ b/drivers/net/wireless/cnss/cnss_common.c
@@ -1,4 +1,4 @@
-/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
+/* Copyright (c) 2015-2016, The Linux Foundation. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 and
@@ -103,3 +103,13 @@ int cnss_set_cpus_allowed_ptr(struct task_struct *task, ulong cpu)
return set_cpus_allowed_ptr(task, cpumask_of(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
+ */
+void cnss_dump_stack(struct task_struct *task)
+{
+ show_stack(task, NULL);
+}
+EXPORT_SYMBOL(cnss_dump_stack);
diff --git a/include/net/cnss.h b/include/net/cnss.h
index d0753eb960b4..cfda3cdfa128 100644
--- a/include/net/cnss.h
+++ b/include/net/cnss.h
@@ -196,6 +196,7 @@ enum {
CNSS_RESET_LEVEL_MAX
};
extern int cnss_get_restart_level(void);
+extern void cnss_dump_stack(struct task_struct *task);
#ifdef CONFIG_CNSS_SDIO
struct cnss_sdio_wlan_driver {