Home
last modified time | relevance | path

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

/kernel/bpf/
Dbtf.c208 struct btf_header hdr; member
526 offset < btf->hdr.str_len; in btf_name_offset_valid()
578 else if (offset < btf->hdr.str_len) in __btf_name_by_offset()
586 if (offset < btf->hdr.str_len) in btf_name_by_offset()
800 const struct btf_header *hdr; in btf_verifier_log_hdr() local
805 hdr = &btf->hdr; in btf_verifier_log_hdr()
806 __btf_verifier_log(log, "magic: 0x%x\n", hdr->magic); in btf_verifier_log_hdr()
807 __btf_verifier_log(log, "version: %u\n", hdr->version); in btf_verifier_log_hdr()
808 __btf_verifier_log(log, "flags: 0x%x\n", hdr->flags); in btf_verifier_log_hdr()
809 __btf_verifier_log(log, "hdr_len: %u\n", hdr->hdr_len); in btf_verifier_log_hdr()
[all …]
Dcore.c531 const struct bpf_binary_header *hdr = bpf_jit_binary_hdr(prog); in bpf_get_prog_addr_region() local
532 unsigned long addr = (unsigned long)hdr; in bpf_get_prog_addr_region()
537 *symbol_end = addr + hdr->pages * PAGE_SIZE; in bpf_get_prog_addr_region()
808 struct bpf_binary_header *hdr; in bpf_jit_binary_alloc() local
815 size = round_up(proglen + sizeof(*hdr) + 128, PAGE_SIZE); in bpf_jit_binary_alloc()
820 hdr = bpf_jit_alloc_exec(size); in bpf_jit_binary_alloc()
821 if (!hdr) { in bpf_jit_binary_alloc()
827 bpf_fill_ill_insns(hdr, size); in bpf_jit_binary_alloc()
829 bpf_jit_set_header_magic(hdr); in bpf_jit_binary_alloc()
830 hdr->pages = pages; in bpf_jit_binary_alloc()
[all …]
/kernel/
Dmodule.c347 for (i = 1; i < info->hdr->e_shnum; i++) { in find_sec()
1544 for (i = 0; i < info->hdr->e_shnum; i++) in add_sect_attrs()
1561 for (i = 0; i < info->hdr->e_shnum; i++) { in add_sect_attrs()
1646 for (i = 0; i < info->hdr->e_shnum; i++) in add_notes_attrs()
1661 for (loaded = i = 0; i < info->hdr->e_shnum; ++i) { in add_notes_attrs()
2108 size = sizeof(mod->klp_info->hdr); in copy_module_elf()
2109 memcpy(&mod->klp_info->hdr, info->hdr, size); in copy_module_elf()
2112 size = sizeof(*info->sechdrs) * info->hdr->e_shnum; in copy_module_elf()
2120 size = info->sechdrs[info->hdr->e_shstrndx].sh_size; in copy_module_elf()
2369 for (i = 1; i < info->hdr->e_shnum; i++) { in apply_relocations()
[all …]
Dmodule-internal.h15 Elf_Ehdr *hdr; member
Dseccomp.c1800 struct ctl_table_header *hdr; in seccomp_sysctl_init() local
1802 hdr = register_sysctl_paths(seccomp_sysctl_path, seccomp_sysctl_table); in seccomp_sysctl_init()
1803 if (!hdr) in seccomp_sysctl_init()
1806 kmemleak_not_leak(hdr); in seccomp_sysctl_init()
Dsysctl.c1994 struct ctl_table_header *hdr; in sysctl_init() local
1996 hdr = register_sysctl_table(sysctl_base_table); in sysctl_init()
1997 kmemleak_not_leak(hdr); in sysctl_init()
/kernel/livepatch/
Dcore.c262 for (i = 1; i < pmod->klp_info->hdr.e_shnum; i++) { in klp_write_object_relocations()