public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH bpf-next v2 0/2] bpf, x86: inline bpf_get_current_task() for x86_64
@ 2026-01-04 13:16 Menglong Dong
  2026-01-04 13:16 ` [PATCH bpf-next v2 1/2] " Menglong Dong
  2026-01-04 13:16 ` [PATCH bpf-next v2 2/2] selftests/bpf: test the jited inline of bpf_get_current_task Menglong Dong
  0 siblings, 2 replies; 7+ messages in thread
From: Menglong Dong @ 2026-01-04 13:16 UTC (permalink / raw)
  To: ast, eddyz87
  Cc: davem, dsahern, daniel, andrii, martin.lau, song, yonghong.song,
	john.fastabend, kpsingh, sdf, haoluo, jolsa, tglx, mingo, bp,
	dave.hansen, x86, hpa, netdev, bpf, linux-kernel

Inline bpf_get_current_task() and bpf_get_current_task_btf() for x86_64
to obtain better performance, and add the testcase for it.

Changes since v1:
- add the testcase
- remove the usage of const_current_task

Menglong Dong (2):
  bpf, x86: inline bpf_get_current_task() for x86_64
  selftests/bpf: test the jited inline of bpf_get_current_task

 arch/x86/net/bpf_jit_comp.c                   | 34 ++++++++++++++++++
 .../selftests/bpf/prog_tests/verifier.c       |  2 ++
 .../selftests/bpf/progs/verifier_jit_inline.c | 35 +++++++++++++++++++
 3 files changed, 71 insertions(+)
 create mode 100644 tools/testing/selftests/bpf/progs/verifier_jit_inline.c

-- 
2.52.0


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

end of thread, other threads:[~2026-01-06  1:57 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-04 13:16 [PATCH bpf-next v2 0/2] bpf, x86: inline bpf_get_current_task() for x86_64 Menglong Dong
2026-01-04 13:16 ` [PATCH bpf-next v2 1/2] " Menglong Dong
2026-01-05 17:45   ` Eduard Zingerman
2026-01-06  1:57     ` Menglong Dong
2026-01-05 18:04   ` Alexei Starovoitov
2026-01-06  1:52     ` Menglong Dong
2026-01-04 13:16 ` [PATCH bpf-next v2 2/2] selftests/bpf: test the jited inline of bpf_get_current_task Menglong Dong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox