Re: [PATCH 2/2] mm: Generate events when tasks change their memory
From: Pavel Emelyanov <hidden>
Date: 2012-12-04 05:05:42
From: Pavel Emelyanov <hidden>
Date: 2012-12-04 05:05:42
On 12/04/2012 03:42 AM, Xiao Guangrong wrote:
On 12/01/2012 01:55 AM, Pavel Emelyanov wrote:quoted
case MADV_DOTRACE: + /* + * Protect pages to be read-only and force tasks to generate + * #PFs on modification. + * + * It should be done before issuing trace-on event. Otherwise + * we're leaving a short window after the 'on' event when tasks + * can still modify pages. + */ + change_protection(vma, start, end, + vm_get_page_prot(vma->vm_flags & ~VM_READ), + vma_wants_writenotify(vma));Should be VM_WRITE?
Ooops! Yes, sure. I guess I accidentally broke it while cleaning/splitting patch :( -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>