]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - tools/include/uapi/linux/bpf.h
tools/bpf: sync include/uapi/linux/bpf.h
[linux.git] / tools / include / uapi / linux / bpf.h
index 2940a9854f6d8e493518ca894e0c9c630ae4ab7a..86f7c438d40f725107521c1fac8b0f038954d695 100644 (file)
@@ -14,6 +14,7 @@
 /* Extended instruction set based on top of classic BPF */
 
 /* instruction classes */
+#define BPF_JMP32      0x06    /* jmp mode in word width */
 #define BPF_ALU64      0x07    /* alu mode in double word width */
 
 /* ld/ldx fields */
@@ -2421,7 +2422,9 @@ union bpf_attr {
        FN(map_peek_elem),              \
        FN(msg_push_data),              \
        FN(msg_pop_data),               \
-       FN(rc_pointer_rel),
+       FN(rc_pointer_rel),             \
+       FN(spin_lock),                  \
+       FN(spin_unlock),
 
 /* integer value in 'imm' field of BPF_CALL instruction selects which helper
  * function eBPF program intends to call
@@ -3055,4 +3058,7 @@ struct bpf_line_info {
        __u32   line_col;
 };
 
+struct bpf_spin_lock {
+       __u32   val;
+};
 #endif /* _UAPI__LINUX_BPF_H__ */