Home
last modified time | relevance | path

Searched refs:bpf_prog_size (Results 1 – 6 of 6) sorted by relevance

/linux-6.1.9/net/core/
Dfilter.c1207 u32 filter_size = bpf_prog_size(fp->prog->len); in sk_filter_uncharge()
1218 u32 filter_size = bpf_prog_size(fp->prog->len); in __sk_filter_charge()
1275 fp = bpf_prog_realloc(old_fp, bpf_prog_size(new_len), 0); in bpf_migrate_filter()
1370 fp = bpf_prog_alloc(bpf_prog_size(fprog->len), 0); in bpf_prog_create()
1417 fp = bpf_prog_alloc(bpf_prog_size(fprog->len), 0); in bpf_prog_create_from_user()
1495 prog = bpf_prog_alloc(bpf_prog_size(fprog->len), 0); in __get_filter()
1554 if (bpf_prog_size(prog->len) > READ_ONCE(sysctl_optmem_max)) in sk_reuseport_attach_filter()
1621 if (bpf_prog_size(prog->len) > READ_ONCE(sysctl_optmem_max)) { in sk_reuseport_attach_bpf()
/linux-6.1.9/include/linux/
Dfilter.h798 static inline unsigned int bpf_prog_size(unsigned int proglen) in bpf_prog_size() function
/linux-6.1.9/kernel/bpf/
Dcore.c478 prog_adj = bpf_prog_realloc(prog, bpf_prog_size(insn_adj_cnt), in bpf_patch_insn_single()
Dsyscall.c2549 prog = bpf_prog_alloc(bpf_prog_size(attr->insn_cnt), GFP_USER); in bpf_prog_load()
Dverifier.c13693 func[i] = bpf_prog_alloc_no_stats(bpf_prog_size(len), GFP_USER); in jit_subprogs()
/linux-6.1.9/lib/
Dtest_bpf.c14481 fp = bpf_prog_alloc(bpf_prog_size(flen), 0); in generate_filter()
15083 fp = bpf_prog_alloc(bpf_prog_size(len), 0); in prepare_tail_call_tests()