Re: [RFC PATCH --take 2] Add TRACE_IRQFLAGS_SUPPORT, LOCKDEP_SUPPORT then enable ftrace for ia64

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Luming Yu
Date: Sunday, August 1, 2010 - 3:10 am

> Next I turned on some lockdep options under the "Kernel Hacking"

The noticeable difference is the change from SLAB to SLUB in my good
configure and
generic_defconfig, and the lockdep code seems to be accessing an invalid address
somehow from SLUB, while similar lockde invocation from SLAB seems to
be working.

I'm running a kernel (generic_defconfig)  with the following
workaround to see I can run how long until I could see another lockdep
warning

diff --git a/kernel/lockdep.c b/kernel/lockdep.c
index 5428679..1407c56 100644
--- a/kernel/lockdep.c
+++ b/kernel/lockdep.c
@@ -2306,9 +2306,13 @@ void trace_hardirqs_on_caller(unsigned long ip)

        if (unlikely(!debug_locks || current->lockdep_recursion))
                return;
-
+#if 0
        if (DEBUG_LOCKS_WARN_ON(unlikely(!early_boot_irqs_enabled)))
                return;
+#else
+       if ((unlikely(!early_boot_irqs_enabled)))
+               return;
+#endif

        if (unlikely(curr->hardirqs_enabled)) {
                /*
--
To unsubscribe from this list: send the line "unsubscribe linux-ia64" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Re: [RFC PATCH --take 2] Add TRACE_IRQFLAGS_SUPPORT, LOCKD ..., Luming Yu, (Sun Aug 1, 3:10 am)