Home
last modified time | relevance | path

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

/kernel/bpf/
Dringbuf.c288 struct bpf_ringbuf_hdr *hdr) in bpf_ringbuf_rec_pg_off() argument
290 return ((void *)hdr - (void *)rb) >> PAGE_SHIFT; in bpf_ringbuf_rec_pg_off()
297 bpf_ringbuf_restore_from_rec(struct bpf_ringbuf_hdr *hdr) in bpf_ringbuf_restore_from_rec() argument
299 unsigned long addr = (unsigned long)(void *)hdr; in bpf_ringbuf_restore_from_rec()
300 unsigned long off = (unsigned long)hdr->pg_off << PAGE_SHIFT; in bpf_ringbuf_restore_from_rec()
309 struct bpf_ringbuf_hdr *hdr; in __bpf_ringbuf_reserve() local
338 hdr = (void *)rb->data + (prod_pos & rb->mask); in __bpf_ringbuf_reserve()
339 pg_off = bpf_ringbuf_rec_pg_off(rb, hdr); in __bpf_ringbuf_reserve()
340 hdr->len = size | BPF_RINGBUF_BUSY_BIT; in __bpf_ringbuf_reserve()
341 hdr->pg_off = pg_off; in __bpf_ringbuf_reserve()
[all …]
Dbtf.c208 struct btf_header hdr; member
634 return offset < btf->hdr.str_len; in btf_name_offset_valid()
653 if (offset < btf->hdr.str_len) in btf_str_by_offset()
1422 const struct btf_header *hdr; in btf_verifier_log_hdr() local
1429 hdr = &btf->hdr; in btf_verifier_log_hdr()
1430 __btf_verifier_log(log, "magic: 0x%x\n", hdr->magic); in btf_verifier_log_hdr()
1431 __btf_verifier_log(log, "version: %u\n", hdr->version); in btf_verifier_log_hdr()
1432 __btf_verifier_log(log, "flags: 0x%x\n", hdr->flags); in btf_verifier_log_hdr()
1433 __btf_verifier_log(log, "hdr_len: %u\n", hdr->hdr_len); in btf_verifier_log_hdr()
1434 __btf_verifier_log(log, "type_off: %u\n", hdr->type_off); in btf_verifier_log_hdr()
[all …]
Dcore.c542 const struct bpf_binary_header *hdr = bpf_jit_binary_hdr(prog); in bpf_prog_ksym_set_addr() local
543 unsigned long addr = (unsigned long)hdr; in bpf_prog_ksym_set_addr()
548 prog->aux->ksym.end = addr + hdr->pages * PAGE_SIZE; in bpf_prog_ksym_set_addr()
875 struct bpf_binary_header *hdr; in bpf_jit_binary_alloc() local
885 size = round_up(proglen + sizeof(*hdr) + 128, PAGE_SIZE); in bpf_jit_binary_alloc()
890 hdr = bpf_jit_alloc_exec(size); in bpf_jit_binary_alloc()
891 if (!hdr) { in bpf_jit_binary_alloc()
897 bpf_fill_ill_insns(hdr, size); in bpf_jit_binary_alloc()
899 hdr->pages = pages; in bpf_jit_binary_alloc()
900 hole = min_t(unsigned int, size - (proglen + sizeof(*hdr)), in bpf_jit_binary_alloc()
[all …]
/kernel/
Dmodule.c356 for (i = 1; i < info->hdr->e_shnum; i++) { in find_sec()
391 for (i = 1; i < info->hdr->e_shnum; i++) { in find_any_sec()
1562 for (i = 0; i < info->hdr->e_shnum; i++) in add_sect_attrs()
1579 for (i = 0; i < info->hdr->e_shnum; i++) { in add_sect_attrs()
1665 for (i = 0; i < info->hdr->e_shnum; i++) in add_notes_attrs()
1680 for (loaded = i = 0; i < info->hdr->e_shnum; ++i) { in add_notes_attrs()
2056 static int module_enforce_rwx_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_enforce_rwx_sections() argument
2062 for (i = 0; i < hdr->e_shnum; i++) { in module_enforce_rwx_sections()
2076 static int module_enforce_rwx_sections(Elf_Ehdr *hdr, Elf_Shdr *sechdrs, in module_enforce_rwx_sections() argument
2100 size = sizeof(mod->klp_info->hdr); in copy_module_elf()
[all …]
Dmodule-internal.h15 Elf_Ehdr *hdr; member
Dseccomp.c2358 struct ctl_table_header *hdr; in seccomp_sysctl_init() local
2360 hdr = register_sysctl_paths(seccomp_sysctl_path, seccomp_sysctl_table); in seccomp_sysctl_init()
2361 if (!hdr) in seccomp_sysctl_init()
2364 kmemleak_not_leak(hdr); in seccomp_sysctl_init()
Dsysctl.c3466 struct ctl_table_header *hdr; in sysctl_init() local
3468 hdr = register_sysctl_table(sysctl_base_table); in sysctl_init()
3469 kmemleak_not_leak(hdr); in 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.c753 for (i = 1; i < info->hdr.e_shnum; i++) { in klp_apply_object_relocs()