netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/5] bpf trampoline for arm64
@ 2022-04-13  5:49 Xu Kuohai
  2022-04-13  5:49 ` [PATCH bpf-next 1/5] arm64: ftrace: Add ftrace direct call support Xu Kuohai
                   ` (5 more replies)
  0 siblings, 6 replies; 9+ messages in thread
From: Xu Kuohai @ 2022-04-13  5:49 UTC (permalink / raw)
  To: bpf, linux-arm-kernel, linux-kernel, netdev, linux-kselftest
  Cc: Will Deacon, Steven Rostedt, Daniel Borkmann, Alexei Starovoitov,
	Zi Shen Lim, Andrii Nakryiko, Martin KaFai Lau, Song Liu,
	Yonghong Song, John Fastabend, KP Singh, x86, hpa, Shuah Khan,
	Mark Rutland, Ard Biesheuvel, Pasha Tatashin, Peter Collingbourne,
	Daniel Kiss, Sudeep Holla, Steven Price, Marc Zyngier, Mark Brown,
	Kumar Kartikeya Dwivedi, Delyan Kratunov

Add bpf trampoline support for arm64. Most of the logic is the same as
x86.

Tested on qemu, result:
 #55 fentry_fexit:OK
 #56 fentry_test:OK
 #58 fexit_sleep:OK
 #59 fexit_stress:OK
 #60 fexit_test:OK
 #67 get_func_args_test:OK
 #68 get_func_ip_test:OK
 #101 modify_return:OK

Xu Kuohai (5):
  arm64: ftrace: Add ftrace direct call support
  bpf: Move is_valid_bpf_tramp_flags() to the public trampoline code
  bpf, arm64: Impelment bpf_arch_text_poke() for arm64
  bpf, arm64: bpf trampoline for arm64
  selftests/bpf: Fix trivial typo in fentry_fexit.c

 arch/arm64/Kconfig                            |   2 +
 arch/arm64/include/asm/ftrace.h               |  10 +
 arch/arm64/kernel/asm-offsets.c               |   1 +
 arch/arm64/kernel/entry-ftrace.S              |  18 +-
 arch/arm64/net/bpf_jit.h                      |  14 +-
 arch/arm64/net/bpf_jit_comp.c                 | 390 +++++++++++++++++-
 arch/x86/net/bpf_jit_comp.c                   |  20 -
 include/linux/bpf.h                           |   5 +
 kernel/bpf/bpf_struct_ops.c                   |   4 +-
 kernel/bpf/trampoline.c                       |  36 +-
 .../selftests/bpf/prog_tests/fentry_fexit.c   |   4 +-
 11 files changed, 470 insertions(+), 34 deletions(-)

-- 
2.30.2


^ permalink raw reply	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2022-04-14  6:35 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-04-13  5:49 [PATCH bpf-next 0/5] bpf trampoline for arm64 Xu Kuohai
2022-04-13  5:49 ` [PATCH bpf-next 1/5] arm64: ftrace: Add ftrace direct call support Xu Kuohai
2022-04-14  5:58   ` Song Liu
2022-04-14  6:35     ` Xu Kuohai
2022-04-13  5:49 ` [PATCH bpf-next 2/5] bpf: Move is_valid_bpf_tramp_flags() to the public trampoline code Xu Kuohai
2022-04-13  5:49 ` [PATCH bpf-next 3/5] bpf, arm64: Impelment bpf_arch_text_poke() for arm64 Xu Kuohai
2022-04-13  5:49 ` [PATCH bpf-next 4/5] bpf, arm64: bpf trampoline " Xu Kuohai
2022-04-13  5:49 ` [PATCH bpf-next 5/5] selftests/bpf: Fix trivial typo in fentry_fexit.c Xu Kuohai
2022-04-13 18:34 ` [PATCH bpf-next 0/5] bpf trampoline for arm64 Toke Høiland-Jørgensen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).