aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorUros Bizjak <ubizjak@gmail.com>2023-11-05 22:34:36 +0100
committerIngo Molnar <mingo@kernel.org>2023-11-30 20:06:17 +0100
commit17bce3b2ae2d52e8c5c12274ce4c3a631ce9e66b (patch)
tree64fed2ccae63192f4ff0dd193e9fbbc8b2d9a4fc /tools/perf/scripts/python/export-to-sqlite.py
parent43bda69ed9e3b86d0ba5ff9256e437d50074d7d5 (diff)
x86/callthunks: Handle %rip-relative relocations in call thunk template
Contrary to alternatives, relocations are currently not supported in call thunk templates. Re-use the existing infrastructure from alternative.c to allow %rip-relative relocations when copying call thunk template from its storage location. The patch allows unification of ASM_INCREMENT_CALL_DEPTH, which already uses PER_CPU_VAR macro, with INCREMENT_CALL_DEPTH, used in call thunk template, which is currently limited to use absolute address. Reuse existing relocation infrastructure from alternative.c., as suggested by Peter Zijlstra. Signed-off-by: Uros Bizjak <ubizjak@gmail.com> Signed-off-by: Ingo Molnar <mingo@kernel.org> Link: https://lore.kernel.org/r/20231105213731.1878100-3-ubizjak@gmail.com
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions