Re: [PATCH v2 2/4] userfaultfd: selftest: Skip test if userfaultfd() syscall not supported

2018-08-06 Thread Mike Rapoport
On Fri, Aug 03, 2018 at 07:00:44PM -0300, Thiago Jung Bauermann wrote: > Since there's no point in doing anything in this case, immediately exit the > process. > > And take the opportunity to improve the error message. > > Before: > > # ./userfaultfd shmem 10 10 > nr_pages: 160, nr_pages_per

[PATCH v2 2/4] userfaultfd: selftest: Skip test if userfaultfd() syscall not supported

2018-08-03 Thread Thiago Jung Bauermann
Since there's no point in doing anything in this case, immediately exit the process. And take the opportunity to improve the error message. Before: # ./userfaultfd shmem 10 10 nr_pages: 160, nr_pages_per_cpu: 40 userfaultfd syscall not available in this kernel # echo $? 1 After: #