[LTP] [PATCH] proc01: handle EOPNOTSUPP if !hugepages_supported()

Jan Stancek jstancek@redhat.com
Tue Jun 7 18:49:32 CEST 2016





----- Original Message -----
> From: "Cyril Hrubis" <chrubis@suse.cz>
> To: "Jan Stancek" <jstancek@redhat.com>
> Cc: ltp@lists.linux.it
> Sent: Tuesday, 7 June, 2016 6:10:50 PM
> Subject: Re: [LTP] [PATCH] proc01: handle EOPNOTSUPP if !hugepages_supported()
> 
> Hi!
> > ---
> >  testcases/kernel/fs/proc/proc01.c | 2 ++
> >  1 file changed, 2 insertions(+)
> > 
> > diff --git a/testcases/kernel/fs/proc/proc01.c
> > b/testcases/kernel/fs/proc/proc01.c
> > index 2825b51dff95..409d6f9e32fe 100644
> > --- a/testcases/kernel/fs/proc/proc01.c
> > +++ b/testcases/kernel/fs/proc/proc01.c
> > @@ -108,6 +108,8 @@ static const struct mapping known_issues[] = {
> >  	{"read", "/proc/fs/nfsd/.getfd", EINVAL},
> >  	{"read", "/proc/self/net/rpc/use-gss-proxy", EAGAIN},
> >  	{"read", "/proc/sys/net/ipv6/conf/*/stable_secret", EIO},
> > +	{"read", "/proc/sys/vm/nr_hugepages", EOPNOTSUPP},
> > +	{"read", "/proc/sys/vm/nr_overcommit_hugepages", EOPNOTSUPP},
> >  	{"", "", 0}
> 
> Looking at my bugzilla it suggests:
> 
> + {"read", "/proc/sys/vm/nr_hugepages_mempolicy", EOPNOTSUPP}
> 
> as well.

You're right. I didn't see this one on s390, because it's compiled
with CONFIG_NUMA=n. I added nr_hugepages_mempolicy as well and pushed.

Regards,
Jan

> 
> --
> Cyril Hrubis
> chrubis@suse.cz
> 


More information about the ltp mailing list