[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190501065623.2599923-1-yhs@fb.com>
Date: Tue, 30 Apr 2019 23:56:23 -0700
From: Yonghong Song <yhs@...com>
To: <bpf@...r.kernel.org>, <netdev@...r.kernel.org>
CC: Alexei Starovoitov <ast@...com>,
Daniel Borkmann <daniel@...earbox.net>, <kernel-team@...com>,
Peter Zijlstra <peterz@...radead.org>,
Yonghong Song <yhs@...com>
Subject: [RFC PATCH bpf-next 2/3] tools/bpf: sync bpf uapi header bpf.h
sync bpf uapi header bpf.h to tools directory.
Signed-off-by: Yonghong Song <yhs@...com>
---
tools/include/uapi/linux/bpf.h | 15 ++++++++++++++-
1 file changed, 14 insertions(+), 1 deletion(-)
diff --git a/tools/include/uapi/linux/bpf.h b/tools/include/uapi/linux/bpf.h
index 72336bac7573..e3e824848335 100644
--- a/tools/include/uapi/linux/bpf.h
+++ b/tools/include/uapi/linux/bpf.h
@@ -2667,6 +2667,18 @@ union bpf_attr {
* 0 on success.
*
* **-ENOENT** if the bpf-local-storage cannot be found.
+ *
+ * int bpf_send_signal(u32 pid, u32 sig)
+ * Description
+ * Send signal *sig* to *pid*.
+ * Return
+ * 0 on success or successfully queued.
+ *
+ * **-ENOENT** if *pid* cannot be found.
+ *
+ * **-EBUSY** if work queue under nmi is full.
+ *
+ * Other negative values for actual signal sending errors.
*/
#define __BPF_FUNC_MAPPER(FN) \
FN(unspec), \
@@ -2777,7 +2789,8 @@ union bpf_attr {
FN(strtol), \
FN(strtoul), \
FN(sk_storage_get), \
- FN(sk_storage_delete),
+ FN(sk_storage_delete), \
+ FN(send_signal),
/* integer value in 'imm' field of BPF_CALL instruction selects which helper
* function eBPF program intends to call
--
2.17.1
Powered by blists - more mailing lists