Re: [patch] x86: test case for the RODATA config option

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Arjan van de Ven <arjan@...>
Cc: <mingo@...>, <linux-kernel@...>
Date: Wednesday, January 23, 2008 - 11:27 am

> What it does is check if the rodata marking was succesful.

The only difference I see is that you check that the TLB flush works,
but for that it looks awfully incomplete. In particular if you really
wanted to test the TLB you would need to do the access test on
all online CPUs. Otherwise you have no guarantee the TLBs are
actually changed everywhere (assuming that was broken) 

Other than it is identical [modulo the kernel mapping bit on 64bit]-- you just 
toggle a different bit in the PTE,  but c_p_a() does not actually care which 
bits you toggle.



What I meant using the more extensive test in pageattr-test.c
to test a few changes in the 64bit kernel mapping too, not moving your
code. I don't think moving your code makes sense. Sorry for being unclear.

-Andi
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[patch] x86: test case for the RODATA config option, Arjan van de Ven, (Tue Jan 22, 6:44 pm)
Re: [patch] x86: test case for the RODATA config option, Arjan van de Ven, (Wed Jan 23, 10:49 am)
Re: [patch] x86: test case for the RODATA config option, Andi Kleen, (Wed Jan 23, 11:27 am)
Re: [patch] x86: test case for the RODATA config option, Arjan van de Ven, (Wed Jan 23, 12:04 pm)
Re: [patch] x86: test case for the RODATA config option, Arjan van de Ven, (Wed Jan 23, 1:49 pm)
Re: [patch] x86: test case for the RODATA config option, Arjan van de Ven, (Wed Jan 23, 1:29 am)