Home
last modified time | relevance | path

Searched refs:inode (Results 1 – 25 of 38) sorted by relevance

12

/system/iorap/src/inode2filename/
Dinode.h86 size_t inode; // ino_t = inode member
94 inode == rhs.inode;
102 constexpr Inode(size_t device_major, size_t device_minor, size_t inode) in Inode()
103 : device_major{device_major}, device_minor{device_minor}, inode{inode} { in Inode()
106 static constexpr Inode FromDeviceAndInode(dev_t dev, ino_t inode) { in FromDeviceAndInode()
107 return Inode{major(dev), minor(dev), static_cast<size_t>(inode)}; in FromDeviceAndInode()
115 return static_cast<ino_t>(inode); in GetInode()
119 inline std::ostream& operator<<(std::ostream& os, const Inode& inode) {
120 os << inode.device_major << ":" << inode.device_minor << ":" << inode.inode;
134 result_type const h1 = std::hash<size_t>{}(s.inode);
Dinode_result.h41 Inode inode; member
46 static InodeResult makeSuccess(Inode inode, std::string filename) { in makeSuccess()
47 return InodeResult{inode, std::move(filename)}; in makeSuccess()
50 static InodeResult makeFailure(Inode inode, int err_no) { in makeFailure()
51 return InodeResult{inode, iorap::unexpected{err_no}}; in makeFailure()
59 if (inode == other.inode) {
Dsearch_directories.cc139 for (const Inode& inode : list) { in OfList() local
140 map->insert({inode.inode, inode}); in OfList()
148 ValueRange FindInodeList(ino_t inode) { in FindInodeList()
149 auto range = set_.equal_range(inode); in FindInodeList()
165 const Inode& inode = pair.second; in FindAndRemoveInodeInList() local
166 if (inode.inode != stat_buf.st_ino) { in FindAndRemoveInodeInList()
171 makedev(static_cast<int>(inode.device_major), static_cast<int>(inode.device_minor)); in FindAndRemoveInodeInList()
176 LOG(VERBOSE) << "InodeSet:FindAndRemoveInodeInList matched ino: " << inode.inode in FindAndRemoveInodeInList()
186 Inode inode = found->second; in FindAndRemoveInodeInList() local
187 LOG(VERBOSE) << "InodeSet:FindAndRemoveInodeInList *success* inode+device " << inode; in FindAndRemoveInodeInList()
[all …]
Dinode.cc48 if (!ParseUint(lst_pair[1], &out->inode)) { in Parse()
73 if (!ParseUint(lst[2], &out->inode)) { in Parse()
Dmain.cc385 << result.inode in main()
389 stream << "K " << result.inode << " " << result.data.value(); in main()
401 const Inode& inode = result.inode; in main() local
402 fout << inode.GetDevice() << " " in main()
403 << inode.GetInode() in main()
415 << result.inode in main()
419 stream << "E " << result.inode << " " << result.data.error() << std::endl; in main()
Ddata_source.cc146 Inode inode = Inode::FromDeviceAndInode(static_cast<dev_t>(device_number), in EmitInodes() local
149 LOG(VERBOSE) << "TextCacheDataSource (on_next) " << inode << "->" << value_filename; in EmitInodes()
150 dest.on_next(InodeResult::makeSuccess(inode, value_filename)); in EmitInodes()
Dinode_result.cc49 os << result.inode << ","; in operator <<()
Dout_of_process_inode_resolver.cc154 Inode inode; in ParseFromLine() local
157 if (!Inode::Parse(inode_s, /*out*/&inode, /*out*/&inode_parse_error_msg)) { in ParseFromLine()
169 return InodeResult::makeFailure(inode, error_code); in ParseFromLine()
184 return InodeResult::makeSuccess(inode, file_name); in ParseFromLine()
/system/core/libappfuse/include/libappfuse/
DFuseAppLoop.h34 virtual void OnLookup(uint64_t unique, uint64_t inode) = 0;
35 virtual void OnGetAttr(uint64_t unique, uint64_t inode) = 0;
36 virtual void OnFsync(uint64_t unique, uint64_t inode) = 0;
37 virtual void OnWrite(uint64_t unique, uint64_t inode, uint64_t offset, uint32_t size,
39 virtual void OnRead(uint64_t unique, uint64_t inode, uint64_t offset, uint32_t size) = 0;
40 virtual void OnOpen(uint64_t unique, uint64_t inode) = 0;
41 virtual void OnRelease(uint64_t unique, uint64_t inode) = 0;
53 bool ReplyLookup(uint64_t unique, uint64_t inode, int64_t size);
54 bool ReplyGetAttr(uint64_t unique, uint64_t inode, int64_t size, int mode);
/system/memory/libmeminfo/libdmabufinfo/
Ddmabufinfo.cpp54 uint64_t* count, uint64_t* size, uint64_t* inode, bool* is_dmabuf_file, in ReadDmaBufFdInfo() argument
99 *inode = strtoull(c, nullptr, 10); in ReadDmaBufFdInfo()
144 uint64_t inode = -1; in ReadDmaBufFdRefs() local
147 auto fdinfo_result = ReadDmaBufFdInfo(pid, fd, &name, &exporter, &count, &size, &inode, in ReadDmaBufFdRefs()
166 if (inode == static_cast<uint64_t>(-1)) { in ReadDmaBufFdRefs()
180 inode = sb.st_ino; in ReadDmaBufFdRefs()
186 [&inode](const DmaBuffer& dbuf) { return dbuf.inode() == inode; }); in ReadDmaBufFdRefs()
195 DmaBuffer& db = dmabufs->emplace_back(inode, size, count, exporter, name); in ReadDmaBufFdRefs()
225 [&mapinfo](const DmaBuffer& dbuf) { return dbuf.inode() == mapinfo.inode; }); in ReadDmaBufMapRefs()
234 if (!ReadBufferExporter(mapinfo.inode, &exporter, dmabuf_sysfs_path)) { in ReadDmaBufMapRefs()
[all …]
Ddmabufinfo_test.cpp214 EXPECT_EQ(dmabufs[0].inode(), 22069UL); in TEST()
223 EXPECT_EQ(dmabufs[1].inode(), 19834UL); in TEST()
268 EXPECT_EQ(buf_info.inode, 74831UL); in TEST_F()
308 void AddFdInfo(unsigned int inode, unsigned int size, bool is_dmabuf) { in AddFdInfo() argument
313 inode, (is_dmabuf) ? dmabuf_fdinfo.c_str() : ""); in AddFdInfo()
319 void AddSysfsDmaBufStats(unsigned int inode, unsigned int size, unsigned int mmap_count) { in AddSysfsDmaBufStats() argument
320 auto buffer_path = dmabuf_sysfs_path / android::base::StringPrintf("%u", inode); in AddSysfsDmaBufStats()
335 std::string CreateMapEntry(unsigned int inode, unsigned int size, bool is_dmabuf) { in CreateMapEntry() argument
337 inode, (is_dmabuf) ? "/dmabuf:" : "/not/dmabuf/"); in CreateMapEntry()
374 [](const DmaBuffer& dmabuf) { return dmabuf.inode() == 2; }); in TEST_F()
[all …]
Ddmabuf_sysfs_stats.cpp48 bool ReadBufferExporter(unsigned int inode, std::string* exporter, in ReadBufferExporter() argument
51 ::android::base::StringPrintf("%s/%u/exporter_name", dmabuf_sysfs_path.c_str(), inode); in ReadBufferExporter()
77 if (!android::base::ParseUint(dent->d_name, &info.inode)) { in GetDmabufSysfsStats()
/system/core/libappfuse/tests/
DFuseAppLoopTest.cc37 uint64_t inode; member
45 void OnGetAttr(uint64_t seq, uint64_t inode) override { in OnGetAttr() argument
46 EXPECT_NE(FUSE_ROOT_ID, static_cast<int>(inode)); in OnGetAttr()
47 EXPECT_TRUE(loop->ReplyGetAttr(seq, inode, kTestFileSize, S_IFREG | 0777)); in OnGetAttr()
50 void OnLookup(uint64_t unique, uint64_t inode) override { in OnLookup() argument
51 EXPECT_NE(FUSE_ROOT_ID, static_cast<int>(inode)); in OnLookup()
52 EXPECT_TRUE(loop->ReplyLookup(unique, inode, kTestFileSize)); in OnLookup()
55 void OnFsync(uint64_t seq, uint64_t inode) override { in OnFsync() argument
56 requests.push_back({.code = FUSE_FSYNC, .inode = inode}); in OnFsync()
60 void OnWrite(uint64_t seq, uint64_t inode, uint64_t offset ATTRIBUTE_UNUSED, in OnWrite() argument
[all …]
/system/libprocinfo/include/procinfo/
Dprocess_map.h38 ino_t inode; member
42 MapInfo(uint64_t start, uint64_t end, uint16_t flags, uint64_t pgoff, ino_t inode, in MapInfo()
48 inode(inode), in MapInfo()
57 inode(params.inode), in MapInfo()
64 ino_t inode, const char* name, bool shared)> MapInfoParamsCallback;
93 uint64_t& pgoff, ino_t& inode, char** name, bool& shared, char** next_line) { in ParseMapsFileLine() argument
160 inode = strtoull(p, &end, 10); in ParseMapsFileLine()
180 ino_t inode; in ReadMapFileContent() local
188 inode, &name, shared, &next_line); in ReadMapFileContent()
194 callback(start_addr, end_addr, flags, pgoff, inode, name, shared); in ReadMapFileContent()
[all …]
/system/extras/boottime_tools/io_analysis/
Dcheck_file_read.py129 def __init__(self, open_time, file_name, process_name, inode, flags): argument
131 self.inode = inode
158 self.inode)
176 def __init__(self, process_name, pid, time, dev, inode, lblk, pblk, len, fevent): argument
181 self.inode = inode
265 inode = int(match.group(6))
277 fevent = files.get(inode)
279 fevent = FileEvent(time, file_name, process_name, inode, flag)
280 files[inode] = fevent
289 inode = int(match.group(5))
[all …]
/system/libprocinfo/
Dprocess_map_test.cpp40 ASSERT_EQ(maps[0].inode, 10267643UL); in TEST()
46 ASSERT_EQ(maps[876].inode, 2407UL); in TEST()
52 ASSERT_EQ(maps[1260].inode, 10266154UL); in TEST()
73 TestMapInfo(uint64_t start, uint64_t end, uint16_t flags, uint64_t pgoff, ino_t inode, in TestMapInfo()
75 : start(start), end(end), flags(flags), pgoff(pgoff), inode(inode), isShared(isShared) { in TestMapInfo()
82 ino_t inode = 0; member
95 auto callback = [&](uint64_t start, uint64_t end, uint16_t flags, uint64_t pgoff, ino_t inode, in VerifyReadMapFileAsyncSafe()
103 saved.inode = inode; in VerifyReadMapFileAsyncSafe()
133 EXPECT_EQ(expected.inode, saved.inode); in VerifyReadMapFileAsyncSafe()
/system/core/libappfuse/
DFuseAppLoop.cc47 const uint64_t inode = static_cast<uint64_t>(atol(buffer->request.lookup_name)); in HandleLookUp() local
48 if (inode == 0 || inode == LONG_MAX) { in HandleLookUp()
53 callback->OnLookup(buffer->request.header.unique, inode); in HandleLookUp()
154 bool FuseAppLoop::ReplyLookup(uint64_t unique, uint64_t inode, int64_t size) { in ReplyLookup() argument
157 response.entry_out.nodeid = inode; in ReplyLookup()
160 response.entry_out.attr.ino = inode; in ReplyLookup()
166 bool FuseAppLoop::ReplyGetAttr(uint64_t unique, uint64_t inode, int64_t size, int mode) { in ReplyGetAttr() argument
171 response.attr_out.attr.ino = inode; in ReplyGetAttr()
/system/extras/ext4_utils/include/ext4_utils/
Dext4.h31 #define EXT4_ERROR_INODE(inode, fmt, a...) ext4_error_inode(__func__, (inode), (fmt), ##a); argument
68 struct inode* inode; member
317 #define EXT4_INODE_SET_XTIME(xtime, inode, raw_inode) \ argument
319 (raw_inode)->xtime = cpu_to_le32((inode)->xtime.tv_sec); \
320 if (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime##_extra)) \
321 (raw_inode)->xtime##_extra = ext4_encode_extra_time(&(inode)->xtime); \
330 #define EXT4_INODE_GET_XTIME(xtime, inode, raw_inode) \ argument
332 (inode)->xtime.tv_sec = (signed)le32_to_cpu((raw_inode)->xtime); \
333 if (EXT4_FITS_IN_INODE(raw_inode, EXT4_I(inode), xtime##_extra)) \
334 ext4_decode_extra_time(&(inode)->xtime, (raw_inode)->xtime##_extra); \
[all …]
/system/memory/libmeminfo/include/meminfo/
Dmeminfo.h83 uint64_t inode; member
86 Vma() : start(0), end(0), offset(0), flags(0), name(""), inode(0), is_shared(false) {} in Vma()
89 : start(s), end(e), offset(off), flags(f), name(n), inode(iNode), is_shared(is_shared) {} in Vma()
/system/memory/libmeminfo/libdmabufinfo/tools/
Ddmabuf_dump.cpp88 static_cast<uintmax_t>(buf.inode()), buf.size() / 1024, buf.fdrefs().size(), in PrintDmaBufTable()
142 pid_to_inodes[pid].insert(buf.inode()); in PrintDmaBufPerProcess()
152 inode_to_dmabuf[buf.inode()] = buf; in PrintDmaBufPerProcess()
162 for (auto& inode : inodes) { in PrintDmaBufPerProcess() local
163 DmaBuffer& buf = inode_to_dmabuf[inode]; in PrintDmaBufPerProcess()
167 proc_pss / 1024, buf.pids().size(), static_cast<uintmax_t>(buf.inode())); in PrintDmaBufPerProcess()
235 printf("%16u |%16u | %16s \n", buf.inode, buf.size, buf.exp_name.c_str()); in DumpDmabufSysfsStats()
/system/memory/libmeminfo/libdmabufinfo/include/dmabufinfo/
Ddmabufinfo.h32 DmaBuffer(ino_t inode, uint64_t size, uint64_t count, const std::string& exporter, in DmaBuffer()
34 : inode_(inode), size_(size), count_(count), exporter_(exporter), name_(name) { in DmaBuffer()
56 ino_t inode() const { return inode_; } in inode() function
68 return (inode_ == rhs.inode()) && (size_ == rhs.size()) && (name_ == rhs.name()) &&
Ddmabuf_sysfs_stats.h33 unsigned int inode; member
84 bool ReadBufferExporter(unsigned int inode, std::string* exporter,
/system/extras/pagecache/
Dpagecache.py27 def add_page(self, device_number, inode, offset): argument
29 if (device_number, inode) in self._inode_to_filename:
30 filename, filesize = self._inode_to_filename[(device_number, inode)]
41 def remove_page(self, device_number, inode, offset): argument
42 if (device_number, inode) in self._inode_to_filename:
43 filename, filesize = self._inode_to_filename[(device_number, inode)]
238 inode = int(m.group(4), 16)
242 pagecache_stats.add_page(device_number, inode, m.group(4))
244 pagecache_stats.remove_page(device_number, inode, m.group(4))
/system/memory/libmeminfo/
Dlibmeminfo_test.cpp407 EXPECT_EQ(vmas[0].inode, 0); in TEST()
408 EXPECT_EQ(vmas[1].inode, 3165); in TEST()
409 EXPECT_EQ(vmas[2].inode, 0); in TEST()
410 EXPECT_EQ(vmas[3].inode, 1947); in TEST()
411 EXPECT_EQ(vmas[4].inode, 1537); in TEST()
412 EXPECT_EQ(vmas[5].inode, 0); in TEST()
551 EXPECT_EQ(vmas[0].inode, 0); in TEST()
552 EXPECT_EQ(vmas[1].inode, 3165); in TEST()
553 EXPECT_EQ(vmas[2].inode, 0); in TEST()
554 EXPECT_EQ(vmas[3].inode, 1947); in TEST()
[all …]
Dprocmeminfo.cpp228 uint64_t pgoff, ino_t inode, const char* name, bool shared) { in ForEachVmaFromMaps() argument
234 vma.inode = inode; in ForEachVmaFromMaps()
325 mapinfo.inode, mapinfo.shared)); in ReadMaps()
523 vma.inode = mapinfo.inode; in ForEachVmaFromFile()

12