Home Home > GIT Browse > SLE12-SP4
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohannes Thumshirn <jthumshirn@suse.de>2019-05-24 10:30:55 +0200
committerJohannes Thumshirn <jthumshirn@suse.de>2019-05-24 10:30:55 +0200
commit24645bb2af71194288712f13f6e10747cde1bc4d (patch)
tree1b4d5eed875c22741e71fcf47532d15715e47440
parentab601a52786481156bcca12e18cd0a899bf99e02 (diff)
parent47a499be5eb073f47f846e06a1c254f22d2cce81 (diff)
Merge remote-tracking branch 'origin/SLE15' into SLE12-SP4SLE12-SP4
Merge branch 'SLE15' into SLE12-SP4
-rw-r--r--patches.fixes/arm64-Export-save_stack_trace_tsk.patch35
-rw-r--r--series.conf1
2 files changed, 36 insertions, 0 deletions
diff --git a/patches.fixes/arm64-Export-save_stack_trace_tsk.patch b/patches.fixes/arm64-Export-save_stack_trace_tsk.patch
new file mode 100644
index 0000000000..ee7d0279e0
--- /dev/null
+++ b/patches.fixes/arm64-Export-save_stack_trace_tsk.patch
@@ -0,0 +1,35 @@
+From: Dustin Brown <dustinb@codeaurora.org>
+Date: Tue, 13 Jun 2017 11:40:56 -0700
+Subject: [PATCH] arm64: Export save_stack_trace_tsk()
+Git-commit: e27c7fa015d61c8be6a2c32b2144aad2ae6ec975
+Patch-mainline: v4.13
+References: jsc#SLE-4214
+
+The kernel watchdog is a great debugging tool for finding tasks that
+consume a disproportionate amount of CPU time in contiguous chunks. One
+can imagine building a similar watchdog for arbitrary driver threads
+using save_stack_trace_tsk() and print_stack_trace(). However, this is
+not viable for dynamically loaded driver modules on ARM platforms
+because save_stack_trace_tsk() is not exported for those architectures.
+Export save_stack_trace_tsk() for the ARM64 architecture to align with
+x86 and support various debugging use cases such as arbitrary driver
+thread watchdog timers.
+
+Signed-off-by: Dustin Brown <dustinb@codeaurora.org>
+Signed-off-by: Will Deacon <will.deacon@arm.com>
+Acked-by: NeilBrown <neilb@suse.com>
+
+---
+ arch/arm64/kernel/stacktrace.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+--- a/arch/arm64/kernel/stacktrace.c
++++ b/arch/arm64/kernel/stacktrace.c
+@@ -175,6 +175,7 @@ void save_stack_trace_tsk(struct task_st
+
+ put_task_stack(tsk);
+ }
++EXPORT_SYMBOL_GPL(save_stack_trace_tsk);
+
+ void save_stack_trace(struct stack_trace *trace)
+ {
diff --git a/series.conf b/series.conf
index bfab8cd5db..84d7ad9a9e 100644
--- a/series.conf
+++ b/series.conf
@@ -2306,6 +2306,7 @@
patches.drivers/0001-ARM64-PCI-Set-root-bus-NUMA-node-on-ACPI-systems.patch
patches.suse/arm64-kernel-restrict-dev-mem-read-calls-to-linear-r.patch
patches.drivers/0001-ACPI-IORT-Remove-iort_node_match.patch
+ patches.fixes/arm64-Export-save_stack_trace_tsk.patch
patches.arch/arm64-drivers-char-kmem-disable-on-arm64.patch
patches.suse/0001-fs-proc-kcore-use-kcore_list-type-to-check-for-vmall.patch
patches.suse/0002-arm64-mm-select-CONFIG_ARCH_PROC_KCORE_TEXT.patch