diff options
author | Leon Hwang <hffilwlqm@gmail.com> | 2024-01-04 22:22:23 +0800 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2024-01-04 20:22:10 -0800 |
commit | 00bc8988807985e32f5103f1ac099baf593bd8a3 (patch) | |
tree | d649b54630cb71b10e84e48ebb281a36a0253ac0 /tools/testing/selftests/bpf/prog_tests/recursive_attach.c | |
parent | 61a40c12496a763fdb95edc08d59f816a594a87a (diff) |
bpf, x86: Use emit_nops to replace memcpy x86_nops
Move emit_nops() before emit_prologue() and replace
memcpy(prog, x86_nops[5], X86_PATCH_SIZE) with emit_nops(&prog, X86_PATCH_SIZE).
Signed-off-by: Leon Hwang <hffilwlqm@gmail.com>
Link: https://lore.kernel.org/r/20240104142226.87869-2-hffilwlqm@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/testing/selftests/bpf/prog_tests/recursive_attach.c')
0 files changed, 0 insertions, 0 deletions