Re: [PATCH 1/3] userfaultfd: selftest: cleanup help messages

2018-09-29 Thread Peter Xu
On Sat, Sep 29, 2018 at 01:28:12PM +0300, Mike Rapoport wrote: [...] > > +const char *examples = > > +"# 100MiB 9 bounces\n" > > +"./userfaultfd anon 100 9\n" > > +"\n" > > +"# 1GiB 99 bounces\n" > > +"./userfaultfd anon 1000 99\n" > > +"\n" > > +"# 10MiB-~6GiB

Re: [PATCH 1/3] userfaultfd: selftest: cleanup help messages

2018-09-29 Thread Mike Rapoport
On Sat, Sep 29, 2018 at 04:43:09PM +0800, Peter Xu wrote: > Firstly, the help in the comment region is obsolete, now we support > three parameters. Since at it, change it and move it into the help > message of the program. > > Also, the help messages dumped here and there is obsolete too. Use a

[PATCH 1/3] userfaultfd: selftest: cleanup help messages

2018-09-29 Thread Peter Xu
Firstly, the help in the comment region is obsolete, now we support three parameters. Since at it, change it and move it into the help message of the program. Also, the help messages dumped here and there is obsolete too. Use a single usage() helper. Signed-off-by: Peter Xu --- tools/testing/