Home
last modified time | relevance | path

Searched refs:image (Results 1 – 14 of 14) sorted by relevance

/kernel/
Dkexec_core.c145 static struct page *kimage_alloc_page(struct kimage *image,
149 int sanity_check_segment_list(struct kimage *image) in sanity_check_segment_list() argument
152 unsigned long nr_segments = image->nr_segments; in sanity_check_segment_list()
172 mstart = image->segment[i].mem; in sanity_check_segment_list()
173 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list()
191 mstart = image->segment[i].mem; in sanity_check_segment_list()
192 mend = mstart + image->segment[i].memsz; in sanity_check_segment_list()
196 pstart = image->segment[j].mem; in sanity_check_segment_list()
197 pend = pstart + image->segment[j].memsz; in sanity_check_segment_list()
210 if (image->segment[i].bufsz > image->segment[i].memsz) in sanity_check_segment_list()
[all …]
Dkexec_file.c41 static int kexec_calculate_store_digests(struct kimage *image);
51 int kexec_image_probe_default(struct kimage *image, void *buf, in kexec_image_probe_default() argument
60 image->fops = *fops; in kexec_image_probe_default()
68 void *kexec_image_load_default(struct kimage *image) in kexec_image_load_default() argument
70 if (!image->fops || !image->fops->load) in kexec_image_load_default()
73 return image->fops->load(image, image->kernel_buf, in kexec_image_load_default()
74 image->kernel_buf_len, image->initrd_buf, in kexec_image_load_default()
75 image->initrd_buf_len, image->cmdline_buf, in kexec_image_load_default()
76 image->cmdline_buf_len); in kexec_image_load_default()
79 int kexec_image_post_load_cleanup_default(struct kimage *image) in kexec_image_post_load_cleanup_default() argument
[all …]
Dkexec.c28 struct kimage *image; in kimage_alloc_init() local
39 image = do_kimage_alloc_init(); in kimage_alloc_init()
40 if (!image) in kimage_alloc_init()
43 image->start = entry; in kimage_alloc_init()
44 image->nr_segments = nr_segments; in kimage_alloc_init()
45 memcpy(image->segment, segments, nr_segments * sizeof(*segments)); in kimage_alloc_init()
49 image->control_page = crashk_res.start; in kimage_alloc_init()
50 image->type = KEXEC_TYPE_CRASH; in kimage_alloc_init()
53 ret = sanity_check_segment_list(image); in kimage_alloc_init()
63 image->control_code_page = kimage_alloc_control_pages(image, in kimage_alloc_init()
[all …]
Dkexec_internal.h8 int sanity_check_segment_list(struct kimage *image);
10 void kimage_free(struct kimage *image);
11 int kimage_load_segment(struct kimage *image, struct kexec_segment *segment);
12 void kimage_terminate(struct kimage *image);
13 int kimage_is_destination_range(struct kimage *image,
33 void kimage_file_post_load_cleanup(struct kimage *image);
37 static inline void kimage_file_post_load_cleanup(struct kimage *image) { } in kimage_file_post_load_cleanup() argument
Dkexec_elf.c388 int kexec_elf_load(struct kimage *image, struct elfhdr *ehdr, in kexec_elf_load() argument
/kernel/bpf/
Ddispatcher.c89 int __weak arch_prepare_bpf_dispatcher(void *image, void *buf, s64 *funcs, int num_funcs) in arch_prepare_bpf_dispatcher() argument
94 static int bpf_dispatcher_prepare(struct bpf_dispatcher *d, void *image, void *buf) in bpf_dispatcher_prepare() argument
103 return arch_prepare_bpf_dispatcher(image, buf, &ips[0], d->num_progs); in bpf_dispatcher_prepare()
114 new = d->num_progs ? d->image + noff : NULL; in bpf_dispatcher_update()
142 if (!d->image) { in bpf_dispatcher_change_prog()
143 d->image = bpf_prog_pack_alloc(PAGE_SIZE, bpf_jit_fill_hole_with_zero); in bpf_dispatcher_change_prog()
144 if (!d->image) in bpf_dispatcher_change_prog()
150 bpf_arch_text_copy(d->image, &size, sizeof(size)); in bpf_dispatcher_change_prog()
151 bpf_prog_pack_free((struct bpf_binary_header *)d->image); in bpf_dispatcher_change_prog()
152 d->image = NULL; in bpf_dispatcher_change_prog()
[all …]
Dbpf_struct_ops.c46 void *image; member
338 void *image, void *image_end) in bpf_struct_ops_prepare_trampoline() argument
348 return arch_prepare_bpf_trampoline(NULL, image, image_end, in bpf_struct_ops_prepare_trampoline()
363 void *image, *image_end; in bpf_struct_ops_map_update_elem() local
402 image = st_map->image; in bpf_struct_ops_map_update_elem()
403 image_end = st_map->image + PAGE_SIZE; in bpf_struct_ops_map_update_elem()
483 image, image_end); in bpf_struct_ops_map_update_elem()
487 *(void **)(kdata + moff) = image; in bpf_struct_ops_map_update_elem()
488 image += err; in bpf_struct_ops_map_update_elem()
497 set_memory_ro((long)st_map->image, 1); in bpf_struct_ops_map_update_elem()
[all …]
Dtrampoline.c285 bpf_jit_free_exec(im->image); in bpf_tramp_image_free()
384 void *image; in bpf_tramp_image_alloc() local
396 im->image = image = bpf_jit_alloc_exec(PAGE_SIZE); in bpf_tramp_image_alloc()
397 if (!image) in bpf_tramp_image_alloc()
399 set_vm_flush_reset_perms(image); in bpf_tramp_image_alloc()
408 bpf_image_ksym_add(image, ksym); in bpf_tramp_image_alloc()
412 bpf_jit_free_exec(im->image); in bpf_tramp_image_alloc()
434 err = unregister_fentry(tr, tr->cur_image->image); in bpf_trampoline_update()
470 err = arch_prepare_bpf_trampoline(im, im->image, im->image + PAGE_SIZE, in bpf_trampoline_update()
476 set_memory_ro((long)im->image, 1); in bpf_trampoline_update()
[all …]
Dcore.c1043 *image_ptr = &hdr->image[start]; in bpf_jit_binary_alloc()
1104 *image_ptr = &ro_header->image[start]; in bpf_jit_binary_pack_alloc()
1105 *rw_image = &(*rw_header)->image[start]; in bpf_jit_binary_pack_alloc()
/kernel/gcov/
DKconfig53 which are not linked to the kernel image to prevent linker errors.
/kernel/power/
DKconfig63 It creates an image which is saved in your active swap. Upon the next
65 have it detect the saved image, restore memory state from it, and
101 to-disk implementation will look for a suspended disk image.
114 suspended image to. It will simply pick the first available swap
Dswap.c112 sector_t image; member
326 swsusp_header->image = handle->first_sector; in mark_swapfiles()
988 if (!swsusp_header->image) /* how can this happen? */ in get_swap_reader()
993 offset = swsusp_header->image; in get_swap_reader()
/kernel/time/
DKconfig197 the size of the kernel image.
/kernel/trace/
DKconfig227 dynamically (will patch them out of the binary image and
231 image. When this is enabled, functions can be individually