From: Menglong Dong <menglong8.dong@gmail.com>
To: ast@kernel.org, eddyz87@gmail.com
Cc: daniel@iogearbox.net, john.fastabend@gmail.com,
andrii@kernel.org, martin.lau@linux.dev, song@kernel.org,
yonghong.song@linux.dev, kpsingh@kernel.org, sdf@fomichev.me,
haoluo@google.com, jolsa@kernel.org, bpf@vger.kernel.org,
linux-kernel@vger.kernel.org
Subject: [PATCH bpf-next v3 0/3] bpf, x86: inline bpf_get_current_task() for x86_64
Date: Fri, 9 Jan 2026 16:26:28 +0800 [thread overview]
Message-ID: <20260109082631.246647-1-dongml2@chinatelecom.cn> (raw)
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 v2:
* implement it in the verifier with BPF_MOV64_PERCPU_REG() instead of in
x86_64 JIT (Alexei).
Changes since v1:
* add the testcase
* remove the usage of const_current_task
Menglong Dong (3):
bpf, x86: inline bpf_get_current_task() for x86_64
selftests/bpf: add TEST_TAG_KCONFIG_CHECK to test_loader
selftests/bpf: test the jited inline of bpf_get_current_task
kernel/bpf/verifier.c | 25 ++++++++++
.../selftests/bpf/prog_tests/verifier.c | 2 +
tools/testing/selftests/bpf/progs/bpf_misc.h | 3 ++
.../selftests/bpf/progs/verifier_jit_inline.c | 36 +++++++++++++++
tools/testing/selftests/bpf/test_loader.c | 46 ++++++++++++++++++-
5 files changed, 111 insertions(+), 1 deletion(-)
create mode 100644 tools/testing/selftests/bpf/progs/verifier_jit_inline.c
--
2.52.0
next reply other threads:[~2026-01-09 8:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-09 8:26 Menglong Dong [this message]
2026-01-09 8:26 ` [PATCH bpf-next v3 1/3] " Menglong Dong
2026-01-09 8:42 ` Menglong Dong
2026-01-10 3:43 ` Menglong Dong
2026-01-09 8:26 ` [PATCH bpf-next v3 2/3] selftests/bpf: add TEST_TAG_KCONFIG_CHECK to test_loader Menglong Dong
2026-01-09 8:26 ` [PATCH bpf-next v3 3/3] selftests/bpf: test the jited inline of bpf_get_current_task Menglong Dong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260109082631.246647-1-dongml2@chinatelecom.cn \
--to=menglong8.dong@gmail.com \
--cc=andrii@kernel.org \
--cc=ast@kernel.org \
--cc=bpf@vger.kernel.org \
--cc=daniel@iogearbox.net \
--cc=eddyz87@gmail.com \
--cc=haoluo@google.com \
--cc=john.fastabend@gmail.com \
--cc=jolsa@kernel.org \
--cc=kpsingh@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=martin.lau@linux.dev \
--cc=sdf@fomichev.me \
--cc=song@kernel.org \
--cc=yonghong.song@linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®