Home
last modified time | relevance | path

Searched refs:path_id (Results 1 – 3 of 3) sorted by relevance

/system/iorap/src/prefetcher/
Dsession.cc64 std::optional<std::string_view> SessionBase::GetFilePath(size_t path_id) const { in GetFilePath()
65 auto it = path_map_.find(path_id); in GetFilePath()
73 bool SessionBase::RemoveFilePath(size_t path_id) { in RemoveFilePath() argument
74 auto it = path_map_.find(path_id); in RemoveFilePath()
83 bool SessionBase::InsertFilePath(size_t path_id, std::string file_path) { in InsertFilePath() argument
84 path_map_.insert({path_id, std::move(file_path)}); in InsertFilePath()
102 os << "path_id=" << entry.path_id << ","; in operator <<()
115 bool SessionDirect::RegisterFilePath(size_t path_id, std::string_view file_path) { in RegisterFilePath() argument
121 PLOG(ERROR) << "Failed to register file path: " << file_path << ", id=" << path_id in RegisterFilePath()
127 LOG(VERBOSE) << "RegisterFilePath path_id=" << path_id << ", file_path=" << file_path_str; in RegisterFilePath()
[all …]
Dsession.h42 virtual bool RegisterFilePath(size_t path_id, std::string_view file_path) = 0;
43 virtual bool UnregisterFilePath(size_t path_id) = 0;
48 virtual bool ReadAhead(size_t path_id, ReadAheadKind kind, size_t length, size_t offset) = 0;
52 virtual bool UnreadAhead(size_t path_id, ReadAheadKind kind, size_t length, size_t offset) = 0;
101 std::optional<std::string_view> GetFilePath(size_t path_id) const;
102 bool RemoveFilePath(size_t path_id);
103 bool InsertFilePath(size_t path_id, std::string file_path);
116 virtual bool RegisterFilePath(size_t path_id, std::string_view file_path) override;
118 virtual bool UnregisterFilePath(size_t path_id) override;
119 virtual bool ReadAhead(size_t path_id,
[all …]
Dread_ahead.cc197 static bool PerformReadAhead(std::shared_ptr<Session> session, size_t path_id, ReadAheadKind kind, … in PerformReadAhead() argument
198 return session->ReadAhead(path_id, kind, length, offset); in PerformReadAhead()
345 size_t path_id = index_entry.id(); in BeginTask() local
348 if (!session->RegisterFilePath(path_id, path_file_name)) { in BeginTask()