Searched refs:sock_filter (Results 1 – 11 of 11) sorted by relevance
/tools/include/uapi/linux/ |
D | filter.h | 24 struct sock_filter { /* Filter block */ struct 33 struct sock_filter *filter; argument
|
/tools/testing/selftests/net/ |
D | psock_lib.h | 50 struct sock_filter bpf_filter[] = { in pair_udp_setfilter() 66 bpf_prog.len = sizeof(bpf_filter) / sizeof(struct sock_filter); in pair_udp_setfilter()
|
D | toeplitz.c | 287 struct sock_filter filter[] = { in __set_filter() 300 prog.len = sizeof(filter) / sizeof(struct sock_filter); in __set_filter() 323 struct sock_filter filter[] = { in set_filter_null() 329 prog.len = sizeof(filter) / sizeof(struct sock_filter); in set_filter_null()
|
D | psock_fanout.c | 113 struct sock_filter bpf_filter[] = { in sock_fanout_set_cbpf() 120 bpf_prog.len = sizeof(bpf_filter) / sizeof(struct sock_filter); in sock_fanout_set_cbpf()
|
D | reuseport_bpf_cpu.c | 79 struct sock_filter code[] = { in attach_bpf()
|
D | reuseport_bpf.c | 135 struct sock_filter code[] = { in attach_cbpf() 348 struct sock_filter ccode[] = {{ BPF_RET | BPF_A, 0, 0, 0 }}; in test_filter_no_reuseport()
|
D | gro.c | 122 struct sock_filter filter[] = { in setup_sock_filter()
|
/tools/testing/selftests/seccomp/ |
D | seccomp_bpf.c | 380 struct sock_filter filter[] = { in TEST() 411 struct sock_filter allow[] = { in TEST() 414 struct sock_filter *filter; in TEST() 448 struct sock_filter allow[] = { in TEST() 451 struct sock_filter *filter; in TEST() 486 struct sock_filter filter[] = { in TEST() 509 struct sock_filter filter[] = { in TEST() 534 struct sock_filter filter[] = { in TEST() 552 struct sock_filter filter[] = { in TEST() 570 struct sock_filter filter[] = { in TEST() [all …]
|
D | seccomp_benchmark.c | 124 struct sock_filter bitmap_filter[] = { in main() 132 struct sock_filter filter[] = { in main()
|
/tools/bpf/ |
D | bpf_dbg.c | 131 static struct sock_filter bpf_image[BPF_MAXINSNS + 1]; 216 static void bpf_disasm(const struct sock_filter f, unsigned int i) in bpf_disasm() 438 static void bpf_dump_curr(struct bpf_regs *r, struct sock_filter *f) in bpf_dump_curr() 480 static void bpf_disasm_all(const struct sock_filter *f, unsigned int len) in bpf_disasm_all() 488 static void bpf_dump_all(const struct sock_filter *f, unsigned int len) in bpf_dump_all() 498 static bool bpf_runnable(struct sock_filter *f, unsigned int len) in bpf_runnable() 632 static void bpf_single_step(struct bpf_regs *r, struct sock_filter *f, in bpf_single_step() 854 static bool bpf_handle_breakpoint(struct bpf_regs *r, struct sock_filter *f, in bpf_handle_breakpoint() 866 static int bpf_run_all(struct sock_filter *f, uint16_t bpf_len, uint8_t *pkt, in bpf_run_all() 886 static int bpf_run_stepping(struct sock_filter *f, uint16_t bpf_len, in bpf_run_stepping() [all …]
|
D | bpf_exp.y | 468 static struct sock_filter out[BPF_MAXINSNS];
|