Searched refs:bpf_len (Results 1 – 3 of 3) sorted by relevance
/Linux-v4.19/tools/bpf/ |
D | bpf_dbg.c | 866 static int bpf_run_all(struct sock_filter *f, uint16_t bpf_len, uint8_t *pkt, in bpf_run_all() argument 886 static int bpf_run_stepping(struct sock_filter *f, uint16_t bpf_len, in bpf_run_stepping() argument 1007 unsigned short bpf_len, i = 0; in cmd_load_bpf() local 1013 if (sscanf(bpf_string, "%hu%c", &bpf_len, &sp) != 2 || in cmd_load_bpf() 1014 sp != separator || bpf_len > BPF_MAXINSNS || bpf_len == 0) { in cmd_load_bpf() 1021 if (i >= bpf_len) { in cmd_load_bpf() 1040 if (i != bpf_len) { in cmd_load_bpf() 1044 bpf_prog_len = bpf_len; in cmd_load_bpf()
|
/Linux-v4.19/arch/um/drivers/ |
D | vector_user.h | 94 extern int uml_vector_attach_bpf(int fd, void *bpf, int bpf_len);
|
D | vector_user.c | 545 int uml_vector_attach_bpf(int fd, void *bpf, int bpf_len) in uml_vector_attach_bpf() argument 547 int err = setsockopt(fd, SOL_SOCKET, SO_ATTACH_FILTER, bpf, bpf_len); in uml_vector_attach_bpf() 550 printk(KERN_ERR BPF_ATTACH_FAIL, bpf_len, fd, -errno); in uml_vector_attach_bpf()
|