summaryrefslogtreecommitdiff
path: root/tools/lib/python/kdoc/parse_data_structs.py
diff options
context:
space:
mode:
authorMenglong Dong <menglong8.dong@gmail.com>2025-11-18 20:36:32 +0800
committerAlexei Starovoitov <ast@kernel.org>2025-11-24 09:47:03 -0800
commit373f2f44c300815c5f170e89560ac361c0053dfe (patch)
tree3dad2f2bbdf4514eb78fcdafc781e03a2674183b /tools/lib/python/kdoc/parse_data_structs.py
parent47c9214dcbea9043ac20441a285c7bb5486b8b2d (diff)
bpf,x86: adjust the "jmp" mode for bpf trampoline
In the origin call case, if BPF_TRAMP_F_SKIP_FRAME is not set, it means that the trampoline is not called, but "jmp". Introduce the function bpf_trampoline_use_jmp() to check if the trampoline is in "jmp" mode. Do some adjustment on the "jmp" mode for the x86_64. The main adjustment that we make is for the stack parameter passing case, as the stack alignment logic changes in the "jmp" mode without the "rip". What's more, the location of the parameters on the stack also changes. Signed-off-by: Menglong Dong <dongml2@chinatelecom.cn> Link: https://lore.kernel.org/r/20251118123639.688444-5-dongml2@chinatelecom.cn Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/lib/python/kdoc/parse_data_structs.py')
0 files changed, 0 insertions, 0 deletions