aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorArd Biesheuvel <[email protected]>2017-06-06 17:00:22 +0000
committerWill Deacon <[email protected]>2017-06-07 11:52:02 +0100
commite71a4e1bebaf7fd990efbdc04b38e5526914f0f1 (patch)
tree0f8906d0ba3979cd8020dd896aa6d764afb360df /tools/perf/scripts/python
parentf8af0b364e249eef0c71200826563947cd74267e (diff)
arm64: ftrace: add support for far branches to dynamic ftrace
Currently, dynamic ftrace support in the arm64 kernel assumes that all core kernel code is within range of ordinary branch instructions that occur in module code, which is usually the case, but is no longer guaranteed now that we have support for module PLTs and address space randomization. Since on arm64, all patching of branch instructions involves function calls to the same entry point [ftrace_caller()], we can emit the modules with a trampoline that has unlimited range, and patch both the trampoline itself and the branch instruction to redirect the call via the trampoline. Signed-off-by: Ard Biesheuvel <[email protected]> [will: minor clarification to smp_wmb() comment] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions