diff options
author | KP Singh <kpsingh@google.com> | 2020-03-04 20:18:48 +0100 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-03-04 13:41:05 -0800 |
commit | 7e639208e88d60abf83d48dfda4c0ad325a77b58 (patch) | |
tree | 77a39fcd235e0282cd23fb6890d488384540685e /kernel/bpf/trampoline.c | |
parent | 88fd9e5352fe05f7fe57778293aebd4cd106960b (diff) | |
download | linux-7e639208e88d60abf83d48dfda4c0ad325a77b58.tar.gz linux-7e639208e88d60abf83d48dfda4c0ad325a77b58.tar.bz2 linux-7e639208e88d60abf83d48dfda4c0ad325a77b58.zip |
bpf: JIT helpers for fmod_ret progs
* Split the invoke_bpf program to prepare for special handling of
fmod_ret programs introduced in a subsequent patch.
* Move the definition of emit_cond_near_jump and emit_nops as they are
needed for fmod_ret.
* Refactor branch target alignment into its own generic helper function
i.e. emit_align.
Signed-off-by: KP Singh <kpsingh@google.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20200304191853.1529-3-kpsingh@chromium.org
Diffstat (limited to 'kernel/bpf/trampoline.c')
0 files changed, 0 insertions, 0 deletions