Re: [PATCH v4 2/9] liblockdep: Wrap kernel/lockdep.c to allow usage from userspace

2013-05-29 Thread Peter Zijlstra
On Tue, May 28, 2013 at 03:30:35PM -0400, Sasha Levin wrote: > On 05/22/2013 05:17 AM, Peter Zijlstra wrote: > > On Wed, May 15, 2013 at 11:15:34PM -0400, Sasha Levin wrote: > >> --- /dev/null > >> +++ b/tools/lib/lockdep/uinclude/linux/lockdep.h > >> @@ -0,0 +1,55 @@ > >> +#ifndef _LIBLOCKDEP_LOCK

Re: [PATCH v4 2/9] liblockdep: Wrap kernel/lockdep.c to allow usage from userspace

2013-05-28 Thread Sasha Levin
On 05/22/2013 05:17 AM, Peter Zijlstra wrote: > On Wed, May 15, 2013 at 11:15:34PM -0400, Sasha Levin wrote: >> --- /dev/null >> +++ b/tools/lib/lockdep/uinclude/linux/lockdep.h >> @@ -0,0 +1,55 @@ >> +#ifndef _LIBLOCKDEP_LOCKDEP_H_ >> +#define _LIBLOCKDEP_LOCKDEP_H_ >> + >> +#include >> +#include

Re: [PATCH v4 2/9] liblockdep: Wrap kernel/lockdep.c to allow usage from userspace

2013-05-22 Thread Peter Zijlstra
On Wed, May 15, 2013 at 11:15:34PM -0400, Sasha Levin wrote: > --- /dev/null > +++ b/tools/lib/lockdep/uinclude/linux/lockdep.h > @@ -0,0 +1,55 @@ > +#ifndef _LIBLOCKDEP_LOCKDEP_H_ > +#define _LIBLOCKDEP_LOCKDEP_H_ > + > +#include > +#include > +#include > +#include > +#include > + > + > +#def

Re: [PATCH v4 2/9] liblockdep: Wrap kernel/lockdep.c to allow usage from userspace

2013-05-22 Thread Peter Zijlstra
On Wed, May 15, 2013 at 11:15:34PM -0400, Sasha Levin wrote: > kernel/lockdep.c deals with validating locking scenarios for > various architectures supported by the kernel. There isn't > anything kernel specific going on in lockdep, and when we > compare userspace to other architectures that don't

[PATCH v4 2/9] liblockdep: Wrap kernel/lockdep.c to allow usage from userspace

2013-05-15 Thread Sasha Levin
kernel/lockdep.c deals with validating locking scenarios for various architectures supported by the kernel. There isn't anything kernel specific going on in lockdep, and when we compare userspace to other architectures that don't have to deal with irqs such as s390, they become all too similar. We