/openbmc/linux/arch/powerpc/net/ |
H A D | bpf_jit_comp.c | 46 u32 proglen; member 57 u32 proglen; in bpf_int_jit_compile() local 102 proglen = jit_data->proglen; in bpf_int_jit_compile() 156 proglen = cgctx.idx * 4; in bpf_int_jit_compile() 157 alloclen = proglen + FUNCTION_DESCR_SIZE + fixup_len + extable_len; in bpf_int_jit_compile() 166 fp->aux->extable = (void *)image + FUNCTION_DESCR_SIZE + proglen + fixup_len; in bpf_int_jit_compile() 186 proglen - (cgctx.idx * 4), cgctx.seen); in bpf_int_jit_compile() 194 bpf_jit_dump(flen, proglen, pass, code_base); in bpf_int_jit_compile() 204 fp->jited_len = proglen + FUNCTION_DESCR_SIZE; in bpf_int_jit_compile() 217 jit_data->proglen = proglen; in bpf_int_jit_compile()
|
/openbmc/linux/tools/bpf/ |
H A D | bpf_jit_disasm.c | 178 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()
|
/openbmc/linux/arch/sparc/net/ |
H A D | bpf_jit_comp_32.c | 346 proglen += 64; in bpf_jit_compile() 347 addrs[i] = proglen; in bpf_jit_compile() 355 proglen = 0; 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() 733 if (proglen != oldproglen) in bpf_jit_compile() 735 proglen, oldproglen); in bpf_jit_compile() 738 if (proglen == oldproglen) { in bpf_jit_compile() 739 image = module_alloc(proglen); in bpf_jit_compile() [all …]
|
/openbmc/linux/arch/x86/net/ |
H A D | bpf_jit_comp.c | 1086 int ilen, proglen = 0; in do_jit() local 1104 proglen += ilen; in do_jit() 1105 addrs[0] = proglen; in do_jit() 1986 proglen += ilen; in do_jit() 1987 addrs[i] = proglen; in do_jit() 1995 return proglen; in do_jit() 2747 int proglen; member 2818 proglen += 64; in bpf_int_jit_compile() 2819 addrs[i] = proglen; in bpf_int_jit_compile() 2834 if (proglen <= 0) { in bpf_int_jit_compile() [all …]
|
H A D | bpf_jit_comp32.c | 1667 int proglen = 0; in do_jit() local 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 2559 proglen += 64; in bpf_int_jit_compile() 2560 addrs[i] = proglen; in bpf_int_jit_compile() 2562 ctx.cleanup_addr = proglen; in bpf_int_jit_compile() 2572 if (proglen <= 0) { in bpf_int_jit_compile() 2596 oldproglen = proglen; in bpf_int_jit_compile() [all …]
|
/openbmc/linux/include/linux/ |
H A D | filter.h | 793 static inline unsigned int bpf_prog_size(unsigned int proglen) in bpf_prog_size() argument 796 offsetof(struct bpf_prog, insns[proglen])); in bpf_prog_size() 1023 bpf_jit_binary_alloc(unsigned int proglen, u8 **image_ptr, 1044 bpf_jit_binary_pack_alloc(unsigned int proglen, u8 **ro_image, 1065 static inline void bpf_jit_dump(unsigned int flen, unsigned int proglen, in bpf_jit_dump() argument 1069 proglen, pass, image, current->comm, task_pid_nr(current)); in bpf_jit_dump() 1073 16, 1, image, proglen, false); in bpf_jit_dump()
|
/openbmc/linux/kernel/bpf/ |
H A D | core.c | 1032 bpf_jit_binary_alloc(unsigned int proglen, u8 **image_ptr, in bpf_jit_binary_alloc() argument 1046 size = round_up(proglen + sizeof(*hdr) + 128, PAGE_SIZE); in bpf_jit_binary_alloc() 1060 hole = min_t(unsigned int, size - (proglen + sizeof(*hdr)), in bpf_jit_binary_alloc() 1087 bpf_jit_binary_pack_alloc(unsigned int proglen, u8 **image_ptr, in bpf_jit_binary_pack_alloc() argument 1100 size = round_up(proglen + sizeof(*ro_header) + 16, BPF_PROG_CHUNK_SIZE); in bpf_jit_binary_pack_alloc() 1122 hole = min_t(unsigned int, size - (proglen + sizeof(*ro_header)), in bpf_jit_binary_pack_alloc()
|
/openbmc/linux/Documentation/networking/ |
H A D | filter.rst | 530 [ 3389.935842] flen=6 proglen=70 pass=3 image=ffffffffa0069c8f
|