1) (slower) method is to allocate a new page table entry that points to the same page but with write permission and make the modification via this new page table entrty.
2) (ftrace function tracer use) just before calling stop machine, all pages are converted back to RW, then stop machine is called and all changes are made, when stop machine finishes, the pages are put back to RO.
Copyright © 2017, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds