diff options
author | Puranjay Mohan <puranjay@kernel.org> | 2024-07-08 11:47:58 +0000 |
---|---|---|
committer | Daniel Borkmann <daniel@iogearbox.net> | 2024-07-08 15:44:08 +0200 |
commit | a5912c37faf723c0812a6a2c9dd18ffbd34a233b (patch) | |
tree | 03cb7edb8f866105dad4b46de6a812839a732c0e /kernel/bpf/task_iter.c | |
parent | fd8db07705c55a995c42b1e71afc42faad675b0b (diff) |
riscv, bpf: Optimize stack usage of trampoline
When BPF_TRAMP_F_CALL_ORIG is not set, stack space for passing arguments
on stack doesn't need to be reserved because the original function is
not called.
Only reserve space for stacked arguments when BPF_TRAMP_F_CALL_ORIG is
set.
Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Pu Lehui <pulehui@huawei.com>
Link: https://lore.kernel.org/bpf/20240708114758.64414-1-puranjay@kernel.org
Diffstat (limited to 'kernel/bpf/task_iter.c')
0 files changed, 0 insertions, 0 deletions