aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/flamegraph.py
diff options
context:
space:
mode:
authorChristophe Leroy <[email protected]>2022-08-15 21:48:40 +1000
committerMichael Ellerman <[email protected]>2022-09-01 13:56:01 +1000
commit8b4bb0ad00cb347f62e76a636ce08eb179c843fc (patch)
treebf75102ea37125fa90e447d060e90fc26a6db58f /tools/perf/scripts/python/flamegraph.py
parentfd20b60aea6a37788f2f761af405b41c6c34473b (diff)
powerpc/code-patching: Speed up page mapping/unmapping
Since commit 591b4b268435 ("powerpc/code-patching: Pre-map patch area") the patch area is premapped so intermediate page tables are already allocated. Use __set_pte_at() directly instead of the heavy map_kernel_page(), at for unmapping just do a pte_clear() followed by a flush. __set_pte_at() can be used directly without the filters in set_pte_at() because we are mapping a normal page non executable. Make sure gcc knows text_poke_area is page aligned in order to optimise the flush. This change reduces by 66% the time needed to activate ftrace on an 8xx (588000 tb ticks instead of 1744000). Signed-off-by: Christophe Leroy <[email protected]> [mpe: Add ptesync needed on radix to avoid spurious fault] Signed-off-by: Michael Ellerman <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions