Re: RFC userfaultfd ioctl decode

2016-04-22 Thread Dmitry V. Levin
On Fri, Apr 22, 2016 at 03:49:32PM +0100, Dr. David Alan Gilbert wrote: [...] > > The preferred method is to print uc.copy as a part of structure: > > > > if (entering(tcp)) { BTW, there needs to be a tprints(", ") otherwise the structure is being printed right after the name of constant, wit

Re: RFC userfaultfd ioctl decode

2016-04-22 Thread Dr. David Alan Gilbert
* Gabriel Laskar (gabr...@lse.epita.fr) wrote: > On Thu, 21 Apr 2016 14:04:33 +0100 > "Dr. David Alan Gilbert" wrote: > > > Hi, > >Please find below a decoder for the UFFDIO_COPY ioctl > > on the userfaultfd fd; but there are a few other ioctls > > in the set to decode and I thought I'd ask

Re: RFC userfaultfd ioctl decode

2016-04-22 Thread Dr. David Alan Gilbert
* Dmitry V. Levin (l...@altlinux.org) wrote: > On Thu, Apr 21, 2016 at 02:04:33PM +0100, Dr. David Alan Gilbert wrote: > [...] > > --- a/configure.ac > > +++ b/configure.ac > > @@ -420,6 +420,9 @@ AC_CHECK_HEADERS([linux/input.h], [ > > AC_CHECK_MEMBERS([struct input_absinfo.resolution],,, [#in

Re: RFC userfaultfd ioctl decode

2016-04-21 Thread Dmitry V. Levin
On Thu, Apr 21, 2016 at 02:04:33PM +0100, Dr. David Alan Gilbert wrote: [...] > --- a/configure.ac > +++ b/configure.ac > @@ -420,6 +420,9 @@ AC_CHECK_HEADERS([linux/input.h], [ > AC_CHECK_MEMBERS([struct input_absinfo.resolution],,, [#include > ]) > ]) > > +AC_CHECK_HEADERS([linux/userfa

Re: RFC userfaultfd ioctl decode

2016-04-21 Thread Dmitry V. Levin
On Thu, Apr 21, 2016 at 06:27:13PM +0200, Gabriel Laskar wrote: > On Thu, 21 Apr 2016 14:04:33 +0100 > "Dr. David Alan Gilbert" wrote: > > > Hi, > >Please find below a decoder for the UFFDIO_COPY ioctl > > on the userfaultfd fd; but there are a few other ioctls > > in the set to decode and I

Re: RFC userfaultfd ioctl decode

2016-04-21 Thread Gabriel Laskar
On Thu, 21 Apr 2016 14:04:33 +0100 "Dr. David Alan Gilbert" wrote: > Hi, >Please find below a decoder for the UFFDIO_COPY ioctl > on the userfaultfd fd; but there are a few other ioctls > in the set to decode and I thought I'd ask before doing those: > > 1) Is it basically on the right li

RFC userfaultfd ioctl decode

2016-04-21 Thread Dr. David Alan Gilbert
Hi, Please find below a decoder for the UFFDIO_COPY ioctl on the userfaultfd fd; but there are a few other ioctls in the set to decode and I thought I'd ask before doing those: 1) Is it basically on the right lines; I'm not that confident I understand the return flags on the ioctl deco