sync: auto-generate latest BPF helpers

Latest changes to BPF helper definitions.
This commit is contained in:
Andrii Nakryiko
2020-12-16 22:38:00 -08:00
committed by Andrii Nakryiko
parent 30e2c16571
commit 182e9dde0d

View File

@@ -34,6 +34,8 @@ struct xdp_md;
struct path;
struct btf_ptr;
struct inode;
struct socket;
struct file;
/*
* bpf_map_lookup_elem
@@ -3717,4 +3719,16 @@ static __u64 (*bpf_ktime_get_coarse_ns)(void) = (void *) 160;
*/
static long (*bpf_ima_inode_hash)(struct inode *inode, void *dst, __u32 size) = (void *) 161;
/*
* bpf_sock_from_file
*
* If the given file represents a socket, returns the associated
* socket.
*
* Returns
* A pointer to a struct socket on success or NULL if the file is
* not a socket.
*/
static struct socket *(*bpf_sock_from_file)(struct file *file) = (void *) 162;