Lines Matching refs:fd
52 using fdtrack_callback_t = bool (*)(int fd, const char* const* function_names,
91 FdEntry* GetFdEntry(int fd) { in GetFdEntry() argument
92 if (fd >= 0 && fd < static_cast<int>(kFdTableSize)) { in GetFdEntry()
93 return &stack_traces[fd]; in GetFdEntry()
100 if (FdEntry* entry = GetFdEntry(event->fd); entry) { in fd_hook()
106 if (FdEntry* entry = GetFdEntry(event->fd); entry) { in fd_hook()
116 for (int fd = 0; fd < static_cast<int>(stack_traces.size()); ++fd) { in fdtrack_iterate() local
119 FdEntry* entry = GetFdEntry(fd); in fdtrack_iterate()
125 async_safe_format_log(ANDROID_LOG_WARN, "fdtrack", "fd %d locked, skipping", fd); in fdtrack_iterate()
133 async_safe_format_log(ANDROID_LOG_WARN, "fdtrack", "fd %d missing frames: size = %zu", fd, in fdtrack_iterate()
146 bool should_continue = callback(fd, function_names, function_offsets, in fdtrack_iterate()
167 [](int fd, const char* const* function_names, const uint64_t* function_offsets, size_t count, in fdtrack_dump()
169 uint64_t fdsan_owner = android_fdsan_get_owner_tag(fd); in fdtrack_dump()
171 async_safe_format_log(ANDROID_LOG_INFO, "fdtrack", "fd %d: (owner = 0x%" PRIx64 ")", fd, in fdtrack_dump()
174 async_safe_format_log(ANDROID_LOG_INFO, "fdtrack", "fd %d: (unowned)", fd); in fdtrack_dump()