Skip to contentSkip to conversation

lockdep stacktrace support

PATCH New Benjamin Herrenschmidt 1 participant 1 message Apr 17, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 lockdep stacktrace support

From: Christoph Hellwig <[email protected]>

I recently tried to work on lockdep for powerpc. I have preliminary version of the stacktrace code, but had to give up on trace irqflags support because I'm not that knowledgeable on lowlevel ppc details.

Maybe someone more faimilar with the code wants to give it another try?

My stacktrace code is below:

---
 arch/powerpc/Kconfig             |    4 +++
 arch/powerpc/kernel/Makefile     |    1 
 arch/powerpc/kernel/stacktrace.c |   47 +++++++++++++++++++++++++++++++++++++++
 3 files changed, 52 insertions(+)
arch/powerpc/Kconfig +4 -0
@@ -49,6 +49,10 @@ config IRQ_PER_CPU
 	bool
 	default y
 
+config STACKTRACE_SUPPORT
+	bool
+	default y
+
 config RWSEM_GENERIC_SPINLOCK
 	bool
 
arch/powerpc/kernel/Makefile +1 -0
Index: linux-work/arch/powerpc/kernel/Makefile
===================================================================
@@ -67,6 +67,7 @@ obj-$(CONFIG_BOOTX_TEXT)	+= btext.o
 obj-$(CONFIG_SMP)		+= smp.o
 obj-$(CONFIG_KPROBES)		+= kprobes.o
 obj-$(CONFIG_PPC_UDBG_16550)	+= legacy_serial.o udbg_16550.o
+obj-$(CONFIG_STACKTRACE)	+= stacktrace.o
 
 pci64-$(CONFIG_PPC64)		+= pci_dn.o isa-bridge.o
 obj-$(CONFIG_PCI)		+= pci_$(CONFIG_WORD_SIZE).o $(pci64-y) \
arch/powerpc/kernel/stacktrace.c new file +47 -0

47 lines not on this page · raw message