/system/core/adb/ |
D | fdevent.cpp | 59 fdevent* fde; member 62 explicit PollNode(fdevent* fde) : fde(fde) { in PollNode() 64 pollfd.fd = fde->fd; in PollNode() 97 static std::string dump_fde(const fdevent* fde) { in dump_fde() argument 99 if (fde->state & FDE_ACTIVE) { in dump_fde() 102 if (fde->state & FDE_PENDING) { in dump_fde() 105 if (fde->state & FDE_CREATED) { in dump_fde() 108 if (fde->state & FDE_READ) { in dump_fde() 111 if (fde->state & FDE_WRITE) { in dump_fde() 114 if (fde->state & FDE_ERROR) { in dump_fde() [all …]
|
D | fdevent.h | 58 void fdevent_destroy(fdevent *fde); 62 void fdevent_install(fdevent *fde, int fd, fd_func func, void *arg); 71 void fdevent_set(fdevent *fde, unsigned events); 72 void fdevent_add(fdevent *fde, unsigned events); 73 void fdevent_del(fdevent *fde, unsigned events); 75 void fdevent_set_timeout(fdevent *fde, int64_t timeout_ms);
|
D | jdwp_service.cpp | 139 this->fde = fdevent_create(socket, jdwp_process_event, this); in JdwpProcess() 141 if (!this->fde) { in JdwpProcess() 145 this->fde->state |= FDE_DONT_CLOSE; in JdwpProcess() 148 fdevent_add(this->fde, FDE_READ); in JdwpProcess() 158 if (this->fde) { in ~JdwpProcess() 159 fdevent_destroy(this->fde); in ~JdwpProcess() 160 this->fde = nullptr; in ~JdwpProcess() 179 fdevent* fde = nullptr; member 318 fdevent_del(proc->fde, FDE_WRITE); in jdwp_process_event() 345 fdevent_add(proc->fde, FDE_WRITE); in create_jdwp_connection_fd() [all …]
|
D | fdevent_test.cpp | 140 fdevent fde; member 148 fdevent_remove(&arg->fde); in InvalidFdEventCallback() 160 fdevent_install(&read_arg.fde, INVALID_READ_FD, InvalidFdEventCallback, &read_arg); in InvalidFdThreadFunc() 161 fdevent_add(&read_arg.fde, FDE_READ); in InvalidFdThreadFunc() 167 fdevent_install(&write_arg.fde, INVALID_WRITE_FD, InvalidFdEventCallback, &write_arg); in InvalidFdThreadFunc() 168 fdevent_add(&write_arg.fde, FDE_WRITE); in InvalidFdThreadFunc()
|
D | adb_listeners.cpp | 44 fdevent fde; member in alistener 62 fdevent_remove(&fde); in ~alistener() 224 fdevent_install(&listener->fde, listener->fd, ss_listener_event_func, listener.get()); in install_listener() 226 fdevent_install(&listener->fde, listener->fd, listener_event_func, listener.get()); in install_listener() 228 fdevent_set(&listener->fde, FDE_READ); in install_listener()
|
D | sockets.cpp | 174 fdevent_add(&s->fde, FDE_WRITE); in local_socket_enqueue() 182 fdevent_add(&s->fde, FDE_READ); in local_socket_ready() 190 D("LS(%d): destroying fde.fd=%d", s->id, s->fde.fd); in local_socket_destroy() 195 fdevent_remove(&s->fde); in local_socket_destroy() 243 fdevent_del(&s->fde, FDE_READ); in local_socket_close() 247 CHECK_EQ(FDE_WRITE, s->fde.state & FDE_WRITE); in local_socket_close() 303 fdevent_del(&s->fde, FDE_WRITE); in local_socket_event_func() 334 s->fde.force_eof); in local_socket_event_func() 364 fdevent_del(&s->fde, FDE_READ); in local_socket_event_func() 368 if ((s->fde.force_eof && !r) || is_eof) { in local_socket_event_func() [all …]
|
D | socket.h | 65 fdevent fde; member
|
/system/core/libunwindstack/tests/ |
D | DwarfSectionTest.cpp | 76 DwarfFde fde{}; in TEST_F() local 77 fde.pc_end = 0x500; in TEST_F() 81 EXPECT_CALL(mock_section, GetFdeFromOffset(::testing::_)).WillOnce(::testing::Return(&fde)); in TEST_F() 90 DwarfFde fde{}; in TEST_F() local 91 fde.pc_end = 0x2000; in TEST_F() 95 EXPECT_CALL(mock_section, GetFdeFromOffset(::testing::_)).WillOnce(::testing::Return(&fde)); in TEST_F() 98 ASSERT_EQ(&fde, mock_section.GetFdeFromPc(0x1000)); in TEST_F() 113 DwarfFde fde{}; in TEST_F() local 114 fde.pc_end = 0x2000; in TEST_F() 115 fde.cie = nullptr; in TEST_F() [all …]
|
D | DwarfEhFrameTest.cpp | 337 const DwarfFde* fde = this->eh_frame_->GetFdeFromOffset(0x14000); in TYPED_TEST_P() local 338 ASSERT_TRUE(fde != nullptr); in TYPED_TEST_P() 339 EXPECT_EQ(0x14010U, fde->cfa_instructions_offset); in TYPED_TEST_P() 340 EXPECT_EQ(0x14024U, fde->cfa_instructions_end); in TYPED_TEST_P() 341 EXPECT_EQ(0x1d00cU, fde->pc_start); in TYPED_TEST_P() 342 EXPECT_EQ(0x1d10cU, fde->pc_end); in TYPED_TEST_P() 343 EXPECT_EQ(0xf000U, fde->cie_offset); in TYPED_TEST_P() 344 EXPECT_EQ(0U, fde->lsda_address); in TYPED_TEST_P() 346 ASSERT_TRUE(fde->cie != nullptr); in TYPED_TEST_P() 347 EXPECT_EQ(1U, fde->cie->version); in TYPED_TEST_P() [all …]
|
D | DwarfDebugFrameTest.cpp | 386 const DwarfFde* fde = this->debug_frame_->GetFdeFromOffset(0x14000); in TYPED_TEST_P() local 387 ASSERT_TRUE(fde != nullptr); in TYPED_TEST_P() 388 EXPECT_EQ(0x14010U, fde->cfa_instructions_offset); in TYPED_TEST_P() 389 EXPECT_EQ(0x14024U, fde->cfa_instructions_end); in TYPED_TEST_P() 390 EXPECT_EQ(0x9000U, fde->pc_start); in TYPED_TEST_P() 391 EXPECT_EQ(0x9100U, fde->pc_end); in TYPED_TEST_P() 392 EXPECT_EQ(0xf000U, fde->cie_offset); in TYPED_TEST_P() 393 EXPECT_EQ(0U, fde->lsda_address); in TYPED_TEST_P() 395 ASSERT_TRUE(fde->cie != nullptr); in TYPED_TEST_P() 396 EXPECT_EQ(1U, fde->cie->version); in TYPED_TEST_P() [all …]
|
D | DwarfSectionImplTest.cpp | 60 void TestSetCachedFdeEntry(uint64_t offset, const DwarfFde& fde) { in TestSetCachedFdeEntry() argument 61 this->fde_entries_[offset] = fde; in TestSetCachedFdeEntry() 629 const DwarfFde* fde = this->section_->GetFdeFromOffset(0x4000); in TYPED_TEST_P() local 630 ASSERT_TRUE(fde != nullptr); in TYPED_TEST_P() 631 ASSERT_TRUE(fde->cie != nullptr); in TYPED_TEST_P() 632 EXPECT_EQ(0x4010U, fde->cfa_instructions_offset); in TYPED_TEST_P() 633 EXPECT_EQ(0x4024U, fde->cfa_instructions_end); in TYPED_TEST_P() 634 EXPECT_EQ(0x5000U, fde->pc_start); in TYPED_TEST_P() 635 EXPECT_EQ(0x5100U, fde->pc_end); in TYPED_TEST_P() 636 EXPECT_EQ(0x8000U, fde->cie_offset); in TYPED_TEST_P() [all …]
|
/system/core/libunwindstack/ |
D | DwarfSection.cpp | 41 const DwarfFde* fde = GetFdeFromOffset(fde_offset); in GetFdeFromPc() local 43 if (pc < fde->pc_end) { in GetFdeFromPc() 44 return fde; in GetFdeFromPc() 52 const DwarfFde* fde = GetFdeFromPc(pc); in Step() local 53 if (fde == nullptr || fde->cie == nullptr) { in Step() 60 if (!GetCfaLocationInfo(pc, fde, &loc_regs)) { in Step() 65 return Eval(fde->cie, process_memory, loc_regs, regs); in Step() 404 DwarfFde* fde = &fde_entries_[offset]; in GetFdeFromOffset() local 406 if (!FillInFde(fde)) { in GetFdeFromOffset() 410 return fde; in GetFdeFromOffset() [all …]
|
D | DwarfCfa.h | 69 DwarfCfa(DwarfMemory* memory, const DwarfFde* fde) : memory_(memory), fde_(fde) {} in DwarfCfa() argument
|
/system/core/libunwindstack/tools/ |
D | unwind_info.cpp | 86 for (const DwarfFde* fde : *section) { in DumpDwarfSection() 89 if (fde->pc_start == fde->pc_end) { in DumpDwarfSection() 92 printf("\n PC 0x%" PRIx64, fde->pc_start + load_bias); in DumpDwarfSection() 95 if (interface->GetFunctionName(fde->pc_start + load_bias, &name, &func_offset) && in DumpDwarfSection() 100 if (!section->Log(2, UINT64_MAX, load_bias, fde)) { in DumpDwarfSection() 101 printf("Failed to process cfa information for entry at 0x%" PRIx64 "\n", fde->pc_start); in DumpDwarfSection()
|
/system/core/libunwindstack/include/unwindstack/ |
D | DwarfSection.h | 83 virtual bool Log(uint8_t indent, uint64_t pc, uint64_t load_bias, const DwarfFde* fde) = 0; 91 virtual bool GetCfaLocationInfo(uint64_t pc, const DwarfFde* fde, dwarf_loc_regs_t* loc_regs) = 0; 128 bool FillInFde(DwarfFde* fde); 130 bool GetCfaLocationInfo(uint64_t pc, const DwarfFde* fde, dwarf_loc_regs_t* loc_regs) override; 132 bool Log(uint8_t indent, uint64_t pc, uint64_t load_bias, const DwarfFde* fde) override;
|
/system/core/sdcard/ |
D | fuse.cpp | 1200 struct fuse_dirent *fde = (struct fuse_dirent*) buffer; in handle_readdir() local 1214 fde->ino = FUSE_UNKNOWN_INO; in handle_readdir() 1216 fde->off = req->offset + 1; in handle_readdir() 1217 fde->type = de->d_type; in handle_readdir() 1218 fde->namelen = strlen(de->d_name); in handle_readdir() 1219 memcpy(fde->name, de->d_name, fde->namelen + 1); in handle_readdir() 1220 fuse_reply(fuse, hdr->unique, fde, in handle_readdir() 1221 FUSE_DIRENT_ALIGN(sizeof(struct fuse_dirent) + fde->namelen)); in handle_readdir()
|