• Home
  • Raw
  • Download

Lines Matching refs:size

116 	return (unsigned long)layout->size;  in __mod_tree_size()
178 if (mod->init_layout.size) in mod_tree_insert()
184 if (mod->init_layout.size) in mod_tree_remove_init()
231 static void __mod_update_bounds(void *base, unsigned int size) in __mod_update_bounds() argument
234 unsigned long max = min + size; in __mod_update_bounds()
244 __mod_update_bounds(mod->core_layout.base, mod->core_layout.size); in mod_update_bounds()
245 if (mod->init_layout.size) in mod_update_bounds()
246 __mod_update_bounds(mod->init_layout.base, mod->init_layout.size); in mod_update_bounds()
677 const void *from, unsigned long size) in percpu_modcopy() argument
682 memcpy(per_cpu_ptr(mod->percpu, cpu), from, size); in percpu_modcopy()
753 const void *from, unsigned long size) in percpu_modcopy() argument
756 BUG_ON(size != 0); in percpu_modcopy()
1231 return sprintf(buffer, "%u\n", mk->mod->core_layout.size); in show_coresize()
1240 return sprintf(buffer, "%u\n", mk->mod->init_layout.size); in show_initsize()
1538 unsigned int nloaded = 0, i, size[2]; in add_sect_attrs() local
1547 size[0] = ALIGN(struct_size(sect_attrs, attrs, nloaded), in add_sect_attrs()
1549 size[1] = (nloaded + 1) * sizeof(sect_attrs->grp.attrs[0]); in add_sect_attrs()
1550 sect_attrs = kzalloc(size[0] + size[1], GFP_KERNEL); in add_sect_attrs()
1556 sect_attrs->grp.attrs = (void *)sect_attrs + size[0]; in add_sect_attrs()
1668 nattr->size = info->sechdrs[i].sh_size; in add_notes_attrs()
1990 BUG_ON((unsigned long)layout->size & (PAGE_SIZE-1)); in frob_writable_data()
1992 (layout->size - layout->ro_after_init_size) >> PAGE_SHIFT); in frob_writable_data()
2099 unsigned int size, symndx; in copy_module_elf() local
2102 size = sizeof(*mod->klp_info); in copy_module_elf()
2103 mod->klp_info = kmalloc(size, GFP_KERNEL); in copy_module_elf()
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()
2113 mod->klp_info->sechdrs = kmemdup(info->sechdrs, size, GFP_KERNEL); in copy_module_elf()
2120 size = info->sechdrs[info->hdr->e_shstrndx].sh_size; in copy_module_elf()
2121 mod->klp_info->secstrings = kmemdup(info->secstrings, size, GFP_KERNEL); in copy_module_elf()
2235 lockdep_free_key_range(mod->core_layout.base, mod->core_layout.size); in free_module()
2405 static long get_offset(struct module *mod, unsigned int *size, in get_offset() argument
2410 *size += arch_mod_section_prepend(mod, section); in get_offset()
2411 ret = ALIGN(*size, sechdr->sh_addralign ?: 1); in get_offset()
2412 *size = ret + sechdr->sh_size; in get_offset()
2448 s->sh_entsize = get_offset(mod, &mod->core_layout.size, s, i); in layout_sections()
2453 mod->core_layout.size = debug_align(mod->core_layout.size); in layout_sections()
2454 mod->core_layout.text_size = mod->core_layout.size; in layout_sections()
2457 mod->core_layout.size = debug_align(mod->core_layout.size); in layout_sections()
2458 mod->core_layout.ro_size = mod->core_layout.size; in layout_sections()
2461 mod->core_layout.size = debug_align(mod->core_layout.size); in layout_sections()
2462 mod->core_layout.ro_after_init_size = mod->core_layout.size; in layout_sections()
2465 mod->core_layout.size = debug_align(mod->core_layout.size); in layout_sections()
2481 s->sh_entsize = (get_offset(mod, &mod->init_layout.size, s, i) in layout_sections()
2487 mod->init_layout.size = debug_align(mod->init_layout.size); in layout_sections()
2488 mod->init_layout.text_size = mod->init_layout.size; in layout_sections()
2491 mod->init_layout.size = debug_align(mod->init_layout.size); in layout_sections()
2492 mod->init_layout.ro_size = mod->init_layout.size; in layout_sections()
2502 mod->init_layout.size = debug_align(mod->init_layout.size); in layout_sections()
2547 unsigned long size = infosec->sh_size; in get_next_modinfo() local
2556 size -= prev - modinfo; in get_next_modinfo()
2557 modinfo = next_string(prev, &size); in get_next_modinfo()
2560 for (p = modinfo; p; p = next_string(p, &size)) { in get_next_modinfo()
2700 symsect->sh_entsize = get_offset(mod, &mod->init_layout.size, symsect, in layout_symtab()
2718 info->symoffs = ALIGN(mod->core_layout.size, symsect->sh_addralign ?: 1); in layout_symtab()
2719 info->stroffs = mod->core_layout.size = info->symoffs + ndst * sizeof(Elf_Sym); in layout_symtab()
2720 mod->core_layout.size += strtab_size; in layout_symtab()
2721 info->core_typeoffs = mod->core_layout.size; in layout_symtab()
2722 mod->core_layout.size += ndst * sizeof(char); in layout_symtab()
2723 mod->core_layout.size = debug_align(mod->core_layout.size); in layout_symtab()
2727 strsect->sh_entsize = get_offset(mod, &mod->init_layout.size, strsect, in layout_symtab()
2732 mod->init_layout.size = ALIGN(mod->init_layout.size, in layout_symtab()
2734 info->mod_kallsyms_init_off = mod->init_layout.size; in layout_symtab()
2735 mod->init_layout.size += sizeof(struct mod_kallsyms); in layout_symtab()
2736 info->init_typeoffs = mod->init_layout.size; in layout_symtab()
2737 mod->init_layout.size += nsrc * sizeof(char); in layout_symtab()
2738 mod->init_layout.size = debug_align(mod->init_layout.size); in layout_symtab()
2809 void * __weak module_alloc(unsigned long size) in module_alloc() argument
2811 return vmalloc_exec(size); in module_alloc()
3259 ptr = module_alloc(mod->core_layout.size); in move_module()
3269 memset(ptr, 0, mod->core_layout.size); in move_module()
3272 if (mod->init_layout.size) { in move_module()
3273 ptr = module_alloc(mod->init_layout.size); in move_module()
3285 memset(ptr, 0, mod->init_layout.size); in move_module()
3373 + mod->init_layout.size); in flush_module_icache()
3375 (unsigned long)mod->core_layout.base + mod->core_layout.size); in flush_module_icache()
3626 mod->init_layout.size); in do_init_module()
3639 mod->init_layout.size = 0; in do_init_module()
3977 lockdep_free_key_range(mod->core_layout.base, mod->core_layout.size); in load_module()
4008 loff_t size; in SYSCALL_DEFINE3() local
4022 err = kernel_read_file_from_fd(fd, &hdr, &size, INT_MAX, in SYSCALL_DEFINE3()
4027 info.len = size; in SYSCALL_DEFINE3()
4032 static inline int within(unsigned long addr, void *start, unsigned long size) in within() argument
4034 return ((void *)addr >= start && (void *)addr < start + size); in within()
4061 unsigned long *size, in find_kallsyms_symbol() argument
4102 if (size) in find_kallsyms_symbol()
4103 *size = nextval - bestval; in find_kallsyms_symbol()
4119 unsigned long *size, in module_address_lookup() argument
4133 ret = find_kallsyms_symbol(mod, addr, size, offset); in module_address_lookup()
4170 int lookup_module_symbol_attrs(unsigned long addr, unsigned long *size, in lookup_module_symbol_attrs() argument
4182 sym = find_kallsyms_symbol(mod, addr, size, offset); in lookup_module_symbol_attrs()
4373 mod->name, mod->init_layout.size + mod->core_layout.size); in m_show()