Hi
We observed that LTP test cases are failing when run on some of the distros
Problem Statement:
I observed that test cases mbind01.c and get_mempolicy01.c are failing during call to get_mempolicy() with error -EINVAL.
In the kernel code the error comes from
----------------------------------------------------------------
SYSCALL_DEFINE5(get_mempolicy, int __user *, policy,
unsigned long __user *, nmask, unsigned long, maxnode,
unsigned long, addr, unsigned long, flags)
{
int err;
int uninitialized_var(pval);
nodemask_t nodes;
if (nmask != NULL && maxnode < MAX_NUMNODES)
return -EINVAL;
<== in the kernel code,
MAX_NUMNODES comes to 512
----------------------------------------------------------------
Analysis:
When kernel config option 'configure maximum number of SMP processors and NUMA node' is set MAX_NUMNODES will be initialized to 512 and any call to get_mempolicy() with maxnode value less than that cause the test to fail.
----------------------------------------------------------------
Fix:
increase the default maxnode value in the test case to reflect this value. maxnode value comes from numaif.h and this patch increase the value to 512 from earlier 128.
Note:
I will submit it in the format, once the patch is accepted
Thanks
Yeehaw
------------------------------------------------------------------------------ Come build with us! The BlackBerry(R) Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9 - 12, 2009. Register now! http://p.sf.net/sfu/devconference
_______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list