Searched refs:sb (Results 1 – 4 of 4) sorted by relevance
/scripts/ |
D | recordmcount.c | 48 static struct stat sb; /* Remember .st_size, etc. */ variable 71 munmap(file_map, sb.st_size); in mmap_cleanup() 89 file_ptr = file_map + (sb.st_size - offset); in ulseek() 170 sb.st_size = 0; in mmap_file() 177 if (fstat(fd_map, &sb) < 0) { in mmap_file() 181 if (!S_ISREG(sb.st_mode)) { in mmap_file() 185 file_map = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_PRIVATE, in mmap_file() 189 file_map = umalloc(sb.st_size); in mmap_file() 194 if (read(fd_map, file_map, sb.st_size) != sb.st_size) { in mmap_file() 206 file_end = file_map + sb.st_size; in mmap_file() [all …]
|
D | kallsyms.c | 676 const struct sym_entry *sb; in compare_symbols() local 680 sb = b; in compare_symbols() 683 if (sa->addr > sb->addr) in compare_symbols() 685 if (sa->addr < sb->addr) in compare_symbols() 690 wb = (sb->sym[0] == 'w') || (sb->sym[0] == 'W'); in compare_symbols() 696 wb = may_be_linker_script_provide_symbol(sb); in compare_symbols() 702 wb = prefix_underscores_count((const char *)sb->sym + 1); in compare_symbols() 707 return sa->start_pos - sb->start_pos; in compare_symbols()
|
D | sortextable.c | 57 static struct stat sb; /* Remember .st_size, etc. */ variable 72 munmap(ehdr_curr, sb.st_size); in cleanup() 94 if (fd_map < 0 || fstat(fd_map, &sb) < 0) { in mmap_file() 98 if (!S_ISREG(sb.st_mode)) { in mmap_file() 102 addr = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_SHARED, in mmap_file()
|
D | recordmcount.h | 199 shstr->sh_offset = _w(sb.st_size); in append_func() 200 t += sb.st_size; in append_func() 205 if (ulseek(sb.st_size, SEEK_SET) < 0) in append_func()
|