Re: CONFIG_DEBUG_PREEMPT (was: [PATCH 04/04] Cpuset: skip rcu check ...)

From: Greg Edwards
Date: Mon Dec 19 2005 - 11:39:01 EST


On Mon, Dec 19, 2005 at 08:04:01AM -0800, Paul Jackson wrote:
| Greg - CONFIG_DEBUG_PREEMPT adds a couple of pages of assembly code
| due to various BUG checks beneath rcu_read_lock() on some hot code
| paths (which is where rcu is most popular). See the two calls
| add_preempt_count() and sub_preempt_count() in kernel/sched.c.
|
| Was this intentional to enable CONFIG_DEBUG_PREEMPT in sn2_defconfig?

It wasn't intentional at the time. I believe it was pulled in
automatically when we refreshed since we had CONFIG_PREEMPT on. That
said, it has proven itself useful in turning up some bugs.

Greg
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/