Home
last modified time | relevance | path

Searched refs:proglen (Results 1 – 8 of 8) sorted by relevance

/Linux-v5.15/arch/powerpc/net/
Dbpf_jit_comp.c79 u32 proglen; member
90 u32 proglen; in bpf_int_jit_compile() local
133 proglen = jit_data->proglen; in bpf_int_jit_compile()
134 alloclen = proglen + FUNCTION_DESCR_SIZE; in bpf_int_jit_compile()
180 proglen = cgctx.idx * 4; in bpf_int_jit_compile()
181 alloclen = proglen + FUNCTION_DESCR_SIZE; in bpf_int_jit_compile()
222 proglen - (cgctx.idx * 4), cgctx.seen); in bpf_int_jit_compile()
231 bpf_jit_dump(flen, proglen, pass, code_base); in bpf_int_jit_compile()
254 jit_data->proglen = proglen; in bpf_int_jit_compile()
/Linux-v5.15/tools/bpf/
Dbpf_jit_disasm.c175 unsigned int proglen; in get_last_jit_image() local
204 &flen, &proglen, &pass, &base); in get_last_jit_image()
209 if (proglen > 1000000) { in get_last_jit_image()
210 printf("proglen of %d too big, stopping\n", proglen); in get_last_jit_image()
214 image = malloc(proglen); in get_last_jit_image()
219 memset(image, 0, proglen); in get_last_jit_image()
222 while ((ptr = strtok(tmp, "\n")) != NULL && ulen < proglen) { in get_last_jit_image()
236 if (ulen >= proglen) in get_last_jit_image()
242 assert(ulen == proglen); in get_last_jit_image()
244 proglen, pass, flen); in get_last_jit_image()
/Linux-v5.15/arch/sparc/net/
Dbpf_jit_comp_32.c328 unsigned int cleanup_addr, proglen, oldproglen = 0; in bpf_jit_compile() local
345 for (proglen = 0, i = 0; i < flen; i++) { in bpf_jit_compile()
346 proglen += 64; in bpf_jit_compile()
347 addrs[i] = proglen; in bpf_jit_compile()
349 cleanup_addr = proglen; /* epilogue address */ in bpf_jit_compile()
355 proglen = 0; in bpf_jit_compile()
713 if (unlikely(proglen + ilen > oldproglen)) { in bpf_jit_compile()
719 memcpy(image + proglen, temp, ilen); in bpf_jit_compile()
721 proglen += ilen; in bpf_jit_compile()
722 addrs[i] = proglen; in bpf_jit_compile()
[all …]
/Linux-v5.15/arch/x86/net/
Dbpf_jit_comp.c893 int ilen, proglen = 0; in do_jit() local
910 memcpy(image + proglen, temp, ilen); in do_jit()
911 proglen += ilen; in do_jit()
912 addrs[0] = proglen; in do_jit()
1294 u8 *_insn = image + proglen + (start_of_ldx - temp); in do_jit()
1665 ctx->cleanup_addr = proglen; in do_jit()
1697 if (unlikely(proglen + ilen > oldproglen || in do_jit()
1698 proglen + ilen != addrs[i])) { in do_jit()
1702 memcpy(image + proglen, temp, ilen); in do_jit()
1704 proglen += ilen; in do_jit()
[all …]
Dbpf_jit_comp32.c1651 int proglen = 0; in do_jit() local
2455 ctx->cleanup_addr = proglen; in do_jit()
2486 if (unlikely(proglen + ilen > oldproglen || in do_jit()
2487 proglen + ilen != addrs[i])) { in do_jit()
2491 memcpy(image + proglen, temp, ilen); in do_jit()
2493 proglen += ilen; in do_jit()
2494 addrs[i] = proglen; in do_jit()
2497 return proglen; in do_jit()
2509 int proglen, oldproglen = 0; in bpf_int_jit_compile() local
2542 for (proglen = 0, i = 0; i < prog->len; i++) { in bpf_int_jit_compile()
[all …]
/Linux-v5.15/include/linux/
Dfilter.h825 static inline unsigned int bpf_prog_size(unsigned int proglen) in bpf_prog_size() argument
828 offsetof(struct bpf_prog, insns[proglen])); in bpf_prog_size()
1059 bpf_jit_binary_alloc(unsigned int proglen, u8 **image_ptr,
1078 static inline void bpf_jit_dump(unsigned int flen, unsigned int proglen, in bpf_jit_dump() argument
1082 proglen, pass, image, current->comm, task_pid_nr(current)); in bpf_jit_dump()
1086 16, 1, image, proglen, false); in bpf_jit_dump()
/Linux-v5.15/kernel/bpf/
Dcore.c857 bpf_jit_binary_alloc(unsigned int proglen, u8 **image_ptr, in bpf_jit_binary_alloc() argument
871 size = round_up(proglen + sizeof(*hdr) + 128, PAGE_SIZE); in bpf_jit_binary_alloc()
886 hole = min_t(unsigned int, size - (proglen + sizeof(*hdr)), in bpf_jit_binary_alloc()
/Linux-v5.15/Documentation/networking/
Dfilter.rst523 [ 3389.935842] flen=6 proglen=70 pass=3 image=ffffffffa0069c8f