diff options
author | Song Liu <song@kernel.org> | 2022-02-04 21:57:38 +0300 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2022-02-08 05:13:01 +0300 |
commit | 0e06b40371682b6b70ed0302a7baec0698ada95c (patch) | |
tree | 1454520f94a7d83492bc05abda857a7a01a36550 /arch/x86/include/asm/text-patching.h | |
parent | d00c6473b1ee9050cc36d008c6d30bf0d3de0524 (diff) | |
download | linux-0e06b40371682b6b70ed0302a7baec0698ada95c.tar.xz |
x86/alternative: Introduce text_poke_copy
This will be used by BPF jit compiler to dump JITed binary to a RX huge
page, and thus allow multiple BPF programs sharing the a huge (2MB) page.
Signed-off-by: Song Liu <song@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/bpf/20220204185742.271030-6-song@kernel.org
Diffstat (limited to 'arch/x86/include/asm/text-patching.h')
-rw-r--r-- | arch/x86/include/asm/text-patching.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/include/asm/text-patching.h b/arch/x86/include/asm/text-patching.h index b7421780e4e9..4cc18ba1b75e 100644 --- a/arch/x86/include/asm/text-patching.h +++ b/arch/x86/include/asm/text-patching.h @@ -44,6 +44,7 @@ extern void text_poke_early(void *addr, const void *opcode, size_t len); extern void *text_poke(void *addr, const void *opcode, size_t len); extern void text_poke_sync(void); extern void *text_poke_kgdb(void *addr, const void *opcode, size_t len); +extern void *text_poke_copy(void *addr, const void *opcode, size_t len); extern int poke_int3_handler(struct pt_regs *regs); extern void text_poke_bp(void *addr, const void *opcode, size_t len, const void *emulate); |