aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorChristophe Leroy <[email protected]>2021-06-09 11:34:30 +1000
committerMichael Ellerman <[email protected]>2021-06-21 21:13:21 +1000
commit4d1755b6a762149ae022a32fb2bbeefb6680baa6 (patch)
tree82268f7aadf1ece46b4f60be174877b8273f8d49 /tools/perf/scripts/python
parentc35717c71e983ed55d61e523cbd11a798429bc82 (diff)
powerpc/mm: implement set_memory_attr()
In addition to the set_memory_xx() functions which allows to change the memory attributes of not (yet) used memory regions, implement a set_memory_attr() function to: - set the final memory protection after init on currently used kernel regions. - enable/disable kernel memory regions in the scope of DEBUG_PAGEALLOC. Unlike the set_memory_xx() which can act in three step as the regions are unused, this function must modify 'on the fly' as the kernel is executing from them. At the moment only PPC32 will use it and changing page attributes on the fly is not an issue. Reported-by: kbuild test robot <[email protected]> [ruscur: cast "data" to unsigned long instead of int] Signed-off-by: Christophe Leroy <[email protected]> Signed-off-by: Russell Currey <[email protected]> Signed-off-by: Jordan Niethe <[email protected]> Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions