Messages in this thread | | | Date | Thu, 10 Jan 2019 16:51:42 +0100 | From | Peter Zijlstra <> | Subject | Re: [PATCH v5 11/15] locking/lockdep: Check data structure consistency |
| |
On Mon, Dec 17, 2018 at 01:29:58PM -0800, Bart Van Assche wrote: > Debugging lockdep data structure inconsistencies is challenging. Add > disabled code that verifies data structure consistency at runtime. > > Cc: Peter Zijlstra <peterz@infradead.org> > Cc: Waiman Long <longman@redhat.com> > Cc: Johannes Berg <johannes@sipsolutions.net> > Signed-off-by: Bart Van Assche <bvanassche@acm.org> > --- > kernel/locking/lockdep.c | 183 +++++++++++++++++++++++++++++++++++++++ > 1 file changed, 183 insertions(+) > > diff --git a/kernel/locking/lockdep.c b/kernel/locking/lockdep.c > index 3a63142d4764..d411660572e1 100644 > --- a/kernel/locking/lockdep.c > +++ b/kernel/locking/lockdep.c > @@ -74,6 +74,8 @@ module_param(lock_stat, int, 0644); > #define lock_stat 0 > #endif > > +static bool check_data_structure_consistency;
Should this maybe be CONFIG_DEBUG_LOCKDEP ?
| |