Home
last modified time | relevance | path

Searched refs:hdr (Results 1 – 16 of 16) sorted by relevance

/kernel/bpf/
Dringbuf.c374 struct bpf_ringbuf_hdr *hdr) in bpf_ringbuf_rec_pg_off() argument
376 return ((void *)hdr - (void *)rb) >> PAGE_SHIFT; in bpf_ringbuf_rec_pg_off()
383 bpf_ringbuf_restore_from_rec(struct bpf_ringbuf_hdr *hdr) in bpf_ringbuf_restore_from_rec() argument
385 unsigned long addr = (unsigned long)(void *)hdr; in bpf_ringbuf_restore_from_rec()
386 unsigned long off = (unsigned long)hdr->pg_off << PAGE_SHIFT; in bpf_ringbuf_restore_from_rec()
395 struct bpf_ringbuf_hdr *hdr; in __bpf_ringbuf_reserve() local
424 hdr = (void *)rb->data + (prod_pos & rb->mask); in __bpf_ringbuf_reserve()
425 pg_off = bpf_ringbuf_rec_pg_off(rb, hdr); in __bpf_ringbuf_reserve()
426 hdr->len = size | BPF_RINGBUF_BUSY_BIT; in __bpf_ringbuf_reserve()
427 hdr->pg_off = pg_off; in __bpf_ringbuf_reserve()
[all …]
Dcore.c918 void bpf_prog_pack_free(struct bpf_binary_header *hdr) in bpf_prog_pack_free() argument
925 if (hdr->size > BPF_PROG_PACK_SIZE) { in bpf_prog_pack_free()
926 module_memfree(hdr); in bpf_prog_pack_free()
931 if ((void *)hdr >= tmp->ptr && (tmp->ptr + BPF_PROG_PACK_SIZE) > (void *)hdr) { in bpf_prog_pack_free()
940 nbits = BPF_PROG_SIZE_TO_NBITS(hdr->size); in bpf_prog_pack_free()
941 pos = ((unsigned long)hdr - (unsigned long)pack->ptr) >> BPF_PROG_CHUNK_SHIFT; in bpf_prog_pack_free()
943 WARN_ONCE(bpf_arch_text_invalidate(hdr, hdr->size), in bpf_prog_pack_free()
1014 struct bpf_binary_header *hdr; in bpf_jit_binary_alloc() local
1024 size = round_up(proglen + sizeof(*hdr) + 128, PAGE_SIZE); in bpf_jit_binary_alloc()
1028 hdr = bpf_jit_alloc_exec(size); in bpf_jit_binary_alloc()
[all …]
Dbtf.c232 struct btf_header hdr; member
736 return offset < btf->hdr.str_len; in btf_name_offset_valid()
755 if (offset < btf->hdr.str_len) in btf_str_by_offset()
1526 const struct btf_header *hdr; in btf_verifier_log_hdr() local
1533 hdr = &btf->hdr; in btf_verifier_log_hdr()
1534 __btf_verifier_log(log, "magic: 0x%x\n", hdr->magic); in btf_verifier_log_hdr()
1535 __btf_verifier_log(log, "version: %u\n", hdr->version); in btf_verifier_log_hdr()
1536 __btf_verifier_log(log, "flags: 0x%x\n", hdr->flags); in btf_verifier_log_hdr()
1537 __btf_verifier_log(log, "hdr_len: %u\n", hdr->hdr_len); in btf_verifier_log_hdr()
1538 __btf_verifier_log(log, "type_off: %u\n", hdr->type_off); in btf_verifier_log_hdr()
[all …]
/kernel/module/
Dmain.c185 for (i = 1; i < info->hdr->e_shnum; i++) { in find_sec()
220 for (i = 1; i < info->hdr->e_shnum; i++) { in find_any_sec()
1365 ignore_undef_symbol(info->hdr->e_machine, name))) in simplify_symbols()
1399 for (i = 1; i < info->hdr->e_shnum; i++) { in apply_relocations()
1403 if (infosec >= info->hdr->e_shnum) in apply_relocations()
1479 for (i = 0; i < info->hdr->e_shnum; i++) in layout_sections()
1484 for (i = 0; i < info->hdr->e_shnum; ++i) { in layout_sections()
1519 for (i = 0; i < info->hdr->e_shnum; ++i) { in layout_sections()
1600 char *modinfo = (char *)info->hdr + infosec->sh_offset; in get_next_modinfo()
1702 if (info->len < sizeof(*(info->hdr))) { in elf_validity_check()
[all …]
Dlivepatch.c29 size = sizeof(mod->klp_info->hdr); in copy_module_elf()
30 memcpy(&mod->klp_info->hdr, info->hdr, size); in copy_module_elf()
33 size = sizeof(*info->sechdrs) * info->hdr->e_shnum; in copy_module_elf()
41 size = info->sechdrs[info->hdr->e_shstrndx].sh_size; in copy_module_elf()
Ddecompress.c225 info->hdr = vmap(info->pages, info->used_pages, VM_MAP, PAGE_KERNEL); in module_decompress()
226 if (!info->hdr) { in module_decompress()
243 if (info->hdr) in module_decompress_cleanup()
244 vunmap(info->hdr); in module_decompress_cleanup()
Dsysfs.c80 for (i = 0; i < info->hdr->e_shnum; i++) in add_sect_attrs()
97 for (i = 0; i < info->hdr->e_shnum; i++) { in add_sect_attrs()
184 for (i = 0; i < info->hdr->e_shnum; i++) in add_notes_attrs()
199 for (loaded = i = 0; i < info->hdr->e_shnum; ++i) { in add_notes_attrs()
Dstrict_rwx.c125 int module_enforce_rwx_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_enforce_rwx_sections() argument
134 for (i = 0; i < hdr->e_shnum; i++) { in module_enforce_rwx_sections()
Dkallsyms.c123 src = (void *)info->hdr + symsect->sh_offset; in layout_symtab()
129 is_core_symbol(src + i, info->sechdrs, info->hdr->e_shnum, in layout_symtab()
200 is_core_symbol(src + i, info->sechdrs, info->hdr->e_shnum, in add_kallsyms()
227 for (i = 0; i < info->hdr->e_shnum; i++) { in init_build_id()
Dinternal.h61 Elf_Ehdr *hdr; member
225 int module_enforce_rwx_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs,
Ddebug_kmemleak.c20 for (i = 1; i < info->hdr->e_shnum; i++) { in kmemleak_load_module()
Dsigning.c82 const void *mod = info->hdr; in module_sig_check()
/kernel/
Dcfi.c48 void module_cfi_finalize(const Elf_Ehdr *hdr, const Elf_Shdr *sechdrs, in module_cfi_finalize() argument
57 secstrings = (char *)hdr + sechdrs[hdr->e_shstrndx].sh_offset; in module_cfi_finalize()
59 for (i = 1; i < hdr->e_shnum; i++) { in module_cfi_finalize()
Dseccomp.c2395 struct ctl_table_header *hdr; in seccomp_sysctl_init() local
2397 hdr = register_sysctl_paths(seccomp_sysctl_path, seccomp_sysctl_table); in seccomp_sysctl_init()
2398 if (!hdr) in seccomp_sysctl_init()
2401 kmemleak_not_leak(hdr); in seccomp_sysctl_init()
/kernel/bpf/preload/iterators/
Diterators.bpf.c37 struct btf_header hdr; member
71 if (name_off >= btf->hdr.str_len) in get_name()
/kernel/livepatch/
Dcore.c771 for (i = 1; i < info->hdr.e_shnum; i++) { in klp_apply_object_relocs()