diff options
author | Yonghong Song <yonghong.song@linux.dev> | 2024-11-12 08:39:17 -0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-11-12 16:26:24 -0800 |
commit | f4b21ed0b9d6c9fe155451a1fb3531fb44b0afa8 (patch) | |
tree | 55525aa9db8b64605b76e2f110776181ebc15487 /tools/testing/selftests/bpf/prog_tests/recursive_attach.c | |
parent | e00931c02568dc6ac76f94b1ab471de05e6fdfe8 (diff) |
bpf, x86: Avoid repeated usage of bpf_prog->aux->stack_depth
Refactor the code to avoid repeated usage of bpf_prog->aux->stack_depth
in do_jit() func. If the private stack is used, the stack_depth will be
0 for that prog. Refactoring make it easy to adjust stack_depth.
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20241112163917.2224189-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursive_attach.c')
0 files changed, 0 insertions, 0 deletions