Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 4 of 4) sorted by relevance

/scripts/
Drecordmcount.c50 static struct stat sb; /* Remember .st_size, etc. */ variable
73 munmap(file_map, sb.st_size); in mmap_cleanup()
91 file_ptr = file_map + (sb.st_size - offset); in ulseek()
176 sb.st_size = 0; in mmap_file()
183 if (fstat(fd_map, &sb) < 0) { in mmap_file()
187 if (!S_ISREG(sb.st_mode)) { in mmap_file()
191 file_map = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_PRIVATE, in mmap_file()
195 file_map = umalloc(sb.st_size); in mmap_file()
200 if (read(fd_map, file_map, sb.st_size) != sb.st_size) { in mmap_file()
212 file_end = file_map + sb.st_size; in mmap_file()
[all …]
Dkallsyms.c697 const struct sym_entry *sb = *(const struct sym_entry **)b; in compare_symbols() local
701 if (sa->addr > sb->addr) in compare_symbols()
703 if (sa->addr < sb->addr) in compare_symbols()
708 wb = (sb->sym[0] == 'w') || (sb->sym[0] == 'W'); in compare_symbols()
714 wb = may_be_linker_script_provide_symbol(sb); in compare_symbols()
720 wb = strspn(sym_name(sb), "_"); in compare_symbols()
725 return sa->start_pos - sb->start_pos; in compare_symbols()
Dsorttable.c74 struct stat sb; in mmap_file() local
82 if (fstat(fd, &sb) < 0) { in mmap_file()
86 if (!S_ISREG(sb.st_mode)) { in mmap_file()
91 addr = mmap(0, sb.st_size, PROT_READ|PROT_WRITE, MAP_SHARED, fd, 0); in mmap_file()
97 *size = sb.st_size; in mmap_file()
Drecordmcount.h282 shstr->sh_offset = _w(sb.st_size); in append_func()
283 t += sb.st_size; in append_func()
290 if (ulseek(sb.st_size, SEEK_SET) < 0) in append_func()