Lines Matching defs:image
1659 static int do_jit(struct bpf_prog *bpf_prog, int *addrs, u8 *image,
2098 image + addrs[i],
2107 jmp_offset = func - (image + addrs[i]);
2110 pr_err("unsupported BPF func %d addr %p image %p\n",
2111 imm32, func, image);
2141 emit_bpf_tail_call(&prog, image + addrs[i - 1]);
2493 if (image) {
2495 * When populating the image, assert that:
2507 memcpy(image + proglen, temp, ilen);
2528 u8 *image = NULL;
2565 * JITed image shrinks with every pass and the loop iterates
2566 * until the image stops shrinking. Very large BPF programs
2568 * pass to emit the final image.
2570 for (pass = 0; pass < 20 || image; pass++) {
2571 proglen = do_jit(prog, addrs, image, oldproglen, &ctx);
2574 image = NULL;
2580 if (image) {
2589 header = bpf_jit_binary_alloc(proglen, &image,
2601 bpf_jit_dump(prog->len, proglen, pass + 1, image);
2603 if (image) {
2605 prog->bpf_func = (void *)image;