Lines Matching full:file_read
117 // Class File_read.
119 // A lock for the File_read static variables.
123 // The File_read static variables.
124 unsigned long long File_read::total_mapped_bytes;
125 unsigned long long File_read::current_mapped_bytes;
126 unsigned long long File_read::maximum_mapped_bytes;
128 // Class File_read::View.
130 File_read::View::~View()
145 File_read::current_mapped_bytes -= this->size_;
156 File_read::View::lock()
162 File_read::View::unlock()
169 File_read::View::is_locked()
174 // Class File_read.
176 File_read::~File_read()
192 File_read::open(const Task* task, const std::string& name)
222 File_read::open(const Task* task, const std::string& name,
241 File_read::reopen_descriptor()
258 File_read::release()
266 File_read::total_mapped_bytes += this->mapped_bytes_;
267 File_read::current_mapped_bytes += this->mapped_bytes_;
268 if (File_read::current_mapped_bytes > File_read::maximum_mapped_bytes)
269 File_read::maximum_mapped_bytes = File_read::current_mapped_bytes;
293 File_read::lock(const Task* task)
304 File_read::unlock(const Task* task)
314 File_read::is_locked() const
330 inline File_read::View*
331 File_read::find_view(off_t start, section_size_type size,
332 unsigned int byteshift, File_read::View** vshifted) const
347 off_t page = File_read::page_offset(start);
379 File_read::do_read(off_t start, section_size_type size, void* p)
426 File_read::read(off_t start, section_size_type size, void* p)
428 const File_read::View* pv = this->find_view(start, size, -1U, NULL);
443 File_read::add_view(File_read::View* v)
455 File_read::View* vold = ins.first->second;
470 File_read::View*
471 File_read::make_view(off_t start, section_size_type size,
479 off_t poff = File_read::page_offset(start);
481 section_size_type psize = File_read::pages(size + (start - poff));
520 File_read::View* v = new File_read::View(poff, psize, pbytes, byteshift,
531 File_read::View*
532 File_read::find_or_make_view(off_t offset, off_t start,
572 File_read::View* vshifted;
573 File_read::View* v = this->find_view(offset + start, size,
597 File_read::View* shifted_view =
598 new File_read::View(v->start(), v->size(), pbytes, byteshift,
615 File_read::get_view(off_t offset, off_t start, section_size_type size,
618 File_read::View* pv = this->find_or_make_view(offset, start, size,
624 File_read::get_lasting_view(off_t offset, off_t start, section_size_type size,
627 File_read::View* pv = this->find_or_make_view(offset, start, size,
639 File_read::do_readv(off_t base, const Read_multiple& rm, size_t start,
642 File_read::page_size];
643 iovec iov[File_read::max_readv_entries * 2];
700 #define GOLD_IOV_MAX (File_read::max_readv_entries * 2)
706 File_read::read_multiple(off_t base, const Read_multiple& rm)
721 if (j - i >= File_read::max_readv_entries || j - i >= iov_max / 2)
727 if (j_end_off - end_off >= File_read::page_size)
736 File_read::View* view = this->find_view(base + i_off,
768 File_read::clear_view_cache_marks()
792 File_read::clear_views(Clear_views_mode mode)
853 File_read::print_stats()
856 program_name, File_read::total_mapped_bytes);
858 program_name, File_read::maximum_mapped_bytes);
944 File_read::get_mtime()