Song Liu <song@xxxxxxxxxx> writes: > This helper will be used to calculate the size of the trampoline before > allocating the memory. > > arch_prepare_bpf_trampoline() for arm64 and riscv64 can use > arch_bpf_trampoline_size() to check the trampoline fits in the image. > > OTOH, arch_prepare_bpf_trampoline() for s390 has to call the JIT process > twice, so it cannot use arch_bpf_trampoline_size(). > > Signed-off-by: Song Liu <song@xxxxxxxxxx> > Acked-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx> > Tested-by: Ilya Leoshkevich <iii@xxxxxxxxxxxxx> # on s390x Apologies for the slow turn-around: Acked-by: Björn Töpel <bjorn@xxxxxxxxxxxx> Tested-by: Björn Töpel <bjorn@xxxxxxxxxxxx> # on riscv