mirror of
https://github.com/netdata/libbpf.git
synced 2026-03-22 09:19:06 +08:00
sync: auto-generate latest BPF helpers
Latest changes to BPF helper definitions.
This commit is contained in:
committed by
Andrii Nakryiko
parent
30e2c16571
commit
182e9dde0d
@@ -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;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user