diff options
author | 2024-11-12 08:39:12 -0800 | |
---|---|---|
committer | 2024-11-12 16:26:24 -0800 | |
commit | e00931c02568dc6ac76f94b1ab471de05e6fdfe8 (patch) | |
tree | e9188ef5d443331afcabf783b80ba238aff0f748 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | bpf: Find eligible subprogs for private stack support (diff) | |
download | wireguard-linux-e00931c02568dc6ac76f94b1ab471de05e6fdfe8.tar.xz wireguard-linux-e00931c02568dc6ac76f94b1ab471de05e6fdfe8.zip |
bpf: Enable private stack for eligible subprogs
If private stack is used by any subprog, set that subprog
prog->aux->jits_use_priv_stack to be true so later jit can allocate
private stack for that subprog properly.
Also set env->prog->aux->jits_use_priv_stack to be true if
any subprog uses private stack. This is a use case for a
single main prog (no subprogs) to use private stack, and
also a use case for later struct-ops progs where
env->prog->aux->jits_use_priv_stack will enable recursion
check if any subprog uses private stack.
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Link: https://lore.kernel.org/r/20241112163912.2224007-1-yonghong.song@linux.dev
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions