KSM test case fixes - mmap10
PATCH 3/4 KSM test case fixes - mmap10
If the option for (-s) is selected then checking whether ksm related directory exists in sysfs or not.
mmap10_2:
Before patch:
...
mmap10 0 TINFO : add to KSM regions. mmap10 0 TINFO : use /dev/zero. mmap10 0 TINFO : start tests. mmap10 1 TBROK : madvise: errno=EINVAL(22): Invalid argument mmap10 2 TBROK : Remaining cases broken
...
After patch:
...
mmap10 1 TCONF : KSM configuration is not enabled mmap10 2 TCONF : Remaining cases not appropriate for configuration
...
mmap10_3, mmap10_4, mmap10_5:
Before patch:
...
mmap10 0 TINFO : add to KSM regions. mmap10 0 TINFO : use anonymous pages. mmap10 0 TINFO : start tests. mmap10 1 TBROK : madvise: errno=EINVAL(22): Invalid argument mmap10 2 TBROK : Remaining cases broken
...
After patch:
...
mmap10 1 TCONF : KSM configuration is not enabled mmap10 2 TCONF : Remaining cases not appropriate for configuration
...
Signed-off-by Nageswara R Sastry <[email protected]>
Signature · 2 lines
Regards R.Nageswara Sastry
testcases/kernel/syscalls/mmap/mmap10.c +5 -0
@@ -94,6 +94,11 @@ int main(int argc, char *argv[])if (opt_ksm) { +char *fname ="/sys/kernel/mm/ksm/" ; + +if (access ( fname,F_OK ) ==-1 ) { +tst_brkm (TCONF ,NULL ,"KSM configuration is not enabled" ); + }#ifdef HAVE_MADV_MERGEABLE tst_resm (TINFO ,"add to KSM regions." );#else
------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE! Finally, a world-class log management solution at an even better price-free! And you'll get a free "Love Thy Logs" t-shirt when you download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list