diff options
author | Peter Zijlstra <[email protected]> | 2022-03-08 16:30:32 +0100 |
---|---|---|
committer | Peter Zijlstra <[email protected]> | 2022-03-15 10:32:38 +0100 |
commit | cc66bb91457827f62e2b6cb2518666820f0a6c48 (patch) | |
tree | dcb636aca2a74467522c1d1b6896aa6c530cbac8 /tools/perf/scripts/python/net_dropmonitor.py | |
parent | e52fc2cf3f662828cc0d51c4b73bed73ad275fce (diff) |
x86/ibt,kprobes: Cure sym+0 equals fentry woes
In order to allow kprobes to skip the ENDBR instructions at sym+0 for
X86_KERNEL_IBT builds, change _kprobe_addr() to take an architecture
callback to inspect the function at hand and modify the offset if
needed.
This streamlines the existing interface to cover more cases and
require less hooks. Once PowerPC gets fully converted there will only
be the one arch hook.
Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: Masami Hiramatsu <[email protected]>
Acked-by: Josh Poimboeuf <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions