bpf: Add bpf_probe_write_user BPF helper to be called in tracers
[muen/linux.git] / include / uapi / linux / bpf.h
index 2b7076f5b5ad3465d7f30ba898771621acbd13a5..da218fec605657ee415f8ad71a95d8851330a9de 100644 (file)
@@ -365,6 +365,16 @@ enum bpf_func_id {
         */
        BPF_FUNC_get_current_task,
 
+       /**
+        * bpf_probe_write_user(void *dst, void *src, int len)
+        * safely attempt to write to a location
+        * @dst: destination address in userspace
+        * @src: source address on stack
+        * @len: number of bytes to copy
+        * Return: 0 on success or negative error
+        */
+       BPF_FUNC_probe_write_user,
+
        __BPF_FUNC_MAX_ID,
 };