Home
last modified time | relevance | path

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

/Linux-v6.1/arch/powerpc/net/
Dbpf_jit_comp.c114 u32 proglen; member
125 u32 proglen; in bpf_int_jit_compile() local
170 proglen = jit_data->proglen; in bpf_int_jit_compile()
222 proglen = cgctx.idx * 4; in bpf_int_jit_compile()
223 alloclen = proglen + FUNCTION_DESCR_SIZE + fixup_len + extable_len; in bpf_int_jit_compile()
232 fp->aux->extable = (void *)image + FUNCTION_DESCR_SIZE + proglen + fixup_len; in bpf_int_jit_compile()
268 proglen - (cgctx.idx * 4), cgctx.seen); in bpf_int_jit_compile()
277 bpf_jit_dump(flen, proglen, pass, code_base); in bpf_int_jit_compile()
287 fp->jited_len = proglen + FUNCTION_DESCR_SIZE; in bpf_int_jit_compile()
300 jit_data->proglen = proglen; in bpf_int_jit_compile()
/Linux-v6.1/tools/bpf/
Dbpf_jit_disasm.c178 unsigned int proglen; in get_last_jit_image() local
207 &flen, &proglen, &pass, &base); in get_last_jit_image()
212 if (proglen > 1000000) { in get_last_jit_image()
213 printf("proglen of %d too big, stopping\n", proglen); in get_last_jit_image()
217 image = malloc(proglen); in get_last_jit_image()
222 memset(image, 0, proglen); in get_last_jit_image()
225 while ((ptr = strtok(tmp, "\n")) != NULL && ulen < proglen) { in get_last_jit_image()
239 if (ulen >= proglen) in get_last_jit_image()
245 assert(ulen == proglen); in get_last_jit_image()
247 proglen, pass, flen); in get_last_jit_image()
/Linux-v6.1/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-v6.1/arch/x86/net/
Dbpf_jit_comp.c907 int ilen, proglen = 0; in do_jit() local
924 memcpy(rw_image + proglen, temp, ilen); in do_jit()
925 proglen += ilen; in do_jit()
926 addrs[0] = proglen; in do_jit()
1333 u8 *_insn = image + proglen + (start_of_ldx - temp); in do_jit()
1702 ctx->cleanup_addr = proglen; in do_jit()
1734 if (unlikely(proglen + ilen > oldproglen || in do_jit()
1735 proglen + ilen != addrs[i])) { in do_jit()
1739 memcpy(rw_image + proglen, temp, ilen); in do_jit()
1741 proglen += ilen; in do_jit()
[all …]
Dbpf_jit_comp32.c1667 int proglen = 0; in do_jit() local
2471 ctx->cleanup_addr = proglen; in do_jit()
2502 if (unlikely(proglen + ilen > oldproglen || in do_jit()
2503 proglen + ilen != addrs[i])) { in do_jit()
2507 memcpy(image + proglen, temp, ilen); in do_jit()
2509 proglen += ilen; in do_jit()
2510 addrs[i] = proglen; in do_jit()
2513 return proglen; in do_jit()
2525 int proglen, oldproglen = 0; in bpf_int_jit_compile() local
2558 for (proglen = 0, i = 0; i < prog->len; i++) { in bpf_int_jit_compile()
[all …]
/Linux-v6.1/include/linux/
Dfilter.h798 static inline unsigned int bpf_prog_size(unsigned int proglen) in bpf_prog_size() argument
801 offsetof(struct bpf_prog, insns[proglen])); in bpf_prog_size()
1029 bpf_jit_binary_alloc(unsigned int proglen, u8 **image_ptr,
1050 bpf_jit_binary_pack_alloc(unsigned int proglen, u8 **ro_image,
1071 static inline void bpf_jit_dump(unsigned int flen, unsigned int proglen, in bpf_jit_dump() argument
1075 proglen, pass, image, current->comm, task_pid_nr(current)); in bpf_jit_dump()
1079 16, 1, image, proglen, false); in bpf_jit_dump()
/Linux-v6.1/kernel/bpf/
Dcore.c1005 bpf_jit_binary_alloc(unsigned int proglen, u8 **image_ptr, in bpf_jit_binary_alloc() argument
1019 size = round_up(proglen + sizeof(*hdr) + 128, PAGE_SIZE); in bpf_jit_binary_alloc()
1033 hole = min_t(unsigned int, size - (proglen + sizeof(*hdr)), in bpf_jit_binary_alloc()
1060 bpf_jit_binary_pack_alloc(unsigned int proglen, u8 **image_ptr, in bpf_jit_binary_pack_alloc() argument
1073 size = round_up(proglen + sizeof(*ro_header) + 16, BPF_PROG_CHUNK_SIZE); in bpf_jit_binary_pack_alloc()
1095 hole = min_t(unsigned int, size - (proglen + sizeof(*ro_header)), in bpf_jit_binary_pack_alloc()
/Linux-v6.1/Documentation/networking/
Dfilter.rst530 [ 3389.935842] flen=6 proglen=70 pass=3 image=ffffffffa0069c8f