From: Benjamin Tissoires <bentiss@kernel.org>
To: Alexei Starovoitov <ast@kernel.org>,
Daniel Borkmann <daniel@iogearbox.net>,
Andrii Nakryiko <andrii@kernel.org>,
Martin KaFai Lau <martin.lau@linux.dev>,
Eduard Zingerman <eddyz87@gmail.com>, Song Liu <song@kernel.org>,
Yonghong Song <yonghong.song@linux.dev>,
John Fastabend <john.fastabend@gmail.com>,
KP Singh <kpsingh@kernel.org>,
Stanislav Fomichev <sdf@google.com>, Hao Luo <haoluo@google.com>,
Jiri Olsa <jolsa@kernel.org>, Mykola Lysenko <mykolal@fb.com>,
Shuah Khan <shuah@kernel.org>
Cc: Benjamin Tissoires <bentiss@kernel.org>,
bpf@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org
Subject: [PATCH bpf-next v5 5/6] tools: sync include/uapi/linux/bpf.h
Date: Fri, 22 Mar 2024 15:56:25 +0100 [thread overview]
Message-ID: <20240322-hid-bpf-sleepable-v5-5-179c7b59eaaa@kernel.org> (raw)
In-Reply-To: <20240322-hid-bpf-sleepable-v5-0-179c7b59eaaa@kernel.org>
cp include/uapi/linux/bpf.h tools/include/uapi/linux/bpf.h
Signed-off-by: Benjamin Tissoires <bentiss@kernel.org>
---
no changes in v5
new in v4
---
tools/include/uapi/linux/bpf.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
index 3c42b9f1bada..b90def29d796 100644
--- a/tools/include/uapi/linux/bpf.h
+++ b/tools/include/uapi/linux/bpf.h
@@ -7461,10 +7461,14 @@ struct bpf_core_relo {
* - BPF_F_TIMER_ABS: Timeout passed is absolute time, by default it is
* relative to current time.
* - BPF_F_TIMER_CPU_PIN: Timer will be pinned to the CPU of the caller.
+ * - BPF_F_TIMER_SLEEPABLE: Timer will run in a sleepable context, with
+ * no guarantees of ordering nor timing (consider this as being just
+ * offloaded immediately).
*/
enum {
BPF_F_TIMER_ABS = (1ULL << 0),
BPF_F_TIMER_CPU_PIN = (1ULL << 1),
+ BPF_F_TIMER_SLEEPABLE = (1ULL << 2),
};
/* BPF numbers iterator state */
--
2.44.0
next prev parent reply other threads:[~2024-03-22 14:56 UTC|newest]
Thread overview: 27+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-22 14:56 [PATCH bpf-next v5 0/6] sleepable bpf_timer (was: allow HID-BPF to do device IOs) Benjamin Tissoires
2024-03-22 14:56 ` [PATCH bpf-next v5 1/6] bpf/helpers: introduce sleepable bpf_timers Benjamin Tissoires
2024-03-25 0:45 ` Alexei Starovoitov
2024-03-27 17:02 ` Benjamin Tissoires
2024-04-03 18:50 ` Alexei Starovoitov
2024-04-04 1:01 ` Alexei Starovoitov
2024-04-04 2:43 ` Alexei Starovoitov
2024-04-04 15:26 ` Benjamin Tissoires
2024-04-04 16:40 ` Alexei Starovoitov
2024-04-04 17:56 ` Benjamin Tissoires
2024-04-04 18:29 ` Alexei Starovoitov
2024-04-05 15:46 ` Benjamin Tissoires
2024-04-05 16:07 ` Alexei Starovoitov
2024-03-22 14:56 ` [PATCH bpf-next v5 2/6] bpf/verifier: add bpf_timer as a kfunc capable type Benjamin Tissoires
2024-03-22 16:30 ` Kumar Kartikeya Dwivedi
2024-03-24 3:53 ` Alexei Starovoitov
2024-03-24 4:00 ` Kumar Kartikeya Dwivedi
2024-03-24 4:37 ` Alexei Starovoitov
2024-03-24 4:56 ` Kumar Kartikeya Dwivedi
2024-03-24 22:13 ` Alexei Starovoitov
2024-03-25 8:42 ` Benjamin Tissoires
2024-03-22 14:56 ` [PATCH bpf-next v5 3/6] bpf/helpers: introduce bpf_timer_set_sleepable_cb() kfunc Benjamin Tissoires
2024-03-22 16:50 ` Kumar Kartikeya Dwivedi
2024-03-22 14:56 ` [PATCH bpf-next v5 4/6] bpf/helpers: mark the callback of bpf_timer_set_sleepable_cb() as sleepable Benjamin Tissoires
2024-03-22 14:56 ` Benjamin Tissoires [this message]
2024-03-22 14:56 ` [PATCH bpf-next v5 6/6] selftests/bpf: add sleepable timer tests Benjamin Tissoires
2024-03-22 16:13 ` [PATCH bpf-next v5b " bentiss
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=20240322-hid-bpf-sleepable-v5-5-179c7b59eaaa@kernel.org \
--to=bentiss@kernel.org \
--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=linux-kselftest@vger.kernel.org \
--cc=martin.lau@linux.dev \
--cc=mykolal@fb.com \
--cc=sdf@google.com \
--cc=shuah@kernel.org \
--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