Skip to contentSkip to conversation

KSM test case fixes - mmap10

PATCH Superseded Nageswara R Sastry 2 participants 2 messages Sep 8, 2011

v4 of 6 Superseded Latest is v6 →

lore
Share & tools
lore
#0 lore raw

PATCH v4 3/4 KSM test case fixes - mmap10

Disable mmap10 test if KSM is not configured

P.S. patch checked with 'checkpatch.pl'

Signature · 2 lines
Regards
R.Nageswara Sastry
testcases/kernel/syscalls/mmap/mmap10.c +2 -0
@@ -94,6 +94,8 @@ int main(int argc, char *argv[])
 
 	if (opt_ksm)
 	{
+		if (access(PATH_KSM, F_OK) == -1)
+			tst_brkm(TCONF, NULL, "KSM configuration is not enabled");
 #ifdef HAVE_MADV_MERGEABLE
 		tst_resm(TINFO, "add to KSM regions.");
 #else

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops? How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/

_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

#1 lore raw

Hi!

Quoted 6 lines

Disable mmap10 test if KSM is not configured

P.S. patch checked with 'checkpatch.pl'

All but this one commited. The mmap10 isn't probably including header with PATH_KSM as the compilation fails with PATH_KSM undefined.

Signature · 13 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
Doing More with Less: The Next Generation Virtual Desktop 
What are the key obstacles that have prevented many mid-market businesses
from deploying virtual desktops?   How do next-generation virtual desktops
provide companies an easier-to-deploy, easier-to-manage and more affordable
virtual desktop model.http://www.accelacomm.com/jaw/sfnl/114/51426474/
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list