/developtools/profiler/device/plugins/native_daemon/src/ |
D | hook_service.cpp | 32 …: smbFd_(smbFd), eventFd_(eventFd), pid_(pid), processName_(processName), clientConfig_(clientConf… in HookService() 62 HILOG_ERROR(LOG_CORE, "ProtocolProc hook config error, pid_ = %d, size = %d", pid_, size); in ProtocolProc() 68 if (pid_ == 0) { in ProtocolProc() 70 pid_ = peerConfig; in ProtocolProc() 71 } else if (peerConfig != pid_) { in ProtocolProc() 75 CHECK_TRUE(getuid() == 0 || COMMON::CheckApplicationPermission(pid_, ""), false, in ProtocolProc() 77 …_CORE, "ProtocolProc, receive message from hook client, and send hook config to process %d", pid_); in ProtocolProc()
|
D | hook_manager.cpp | 53 if (pid_ != 0) { in CheckProcess() 57 pid_path = "/proc/" + std::to_string(pid_) + "/status"; in CheckProcess() 59 pid_ = 0; in CheckProcess() 89 pid_ = pidValue; in CheckProcessName() 90 … HILOG_INFO(LOG_CORE, "Process %s exist, pid = %d", hookConfig_.process_name().c_str(), pid_); in CheckProcessName() 94 HookManager::HookManager() : buffer_(new (std::nothrow) uint8_t[MAX_BUFFER_SIZE]), pid_(0) { } in HookManager() 195 pid_ = hookConfig_.pid(); in CreatePluginSession() 259 eventNotifier_->GetFd(), pid_, hookConfig_.process_name(), clientConfig); in CreatePluginSession() 358 if (pid_ > 0) { in StartPluginSession() 359 HILOG_INFO(LOG_CORE, "start command : send 36 signal to process %d", pid_); in StartPluginSession() [all …]
|
D | call_stack.cpp | 156 if (dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) == dynInfoProcessMap.end()) { in FindUnwindTable() 157 dynInfoProcessMap.emplace(unwindInfoPtr->thread.pid_, dsoUnwDynInfoMap {}); in FindUnwindTable() 159 dsoUnwDynInfoMap &dynFileMap = dynInfoProcessMap[unwindInfoPtr->thread.pid_]; in FindUnwindTable() 182 HLOG_ASSERT(dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) != dynInfoProcessMap.end()); in FindUnwindTable() 186 dynInfoProcessMap.at(unwindInfoPtr->thread.pid_).at(symbolsFile->filePath_); in FindUnwindTable() 247 auto process = unwindInfoPtr.callStack.porcessMemoryMap_.find(unwindInfoPtr.thread.pid_); in ReadVirtualThreadMemory() 257 unwindInfoPtr.callStack.porcessMemoryMap_[unwindInfoPtr.thread.pid_][addr] = *data; in ReadVirtualThreadMemory()
|
/developtools/profiler/hiebpf/test/unittest/ |
D | maps_info_test.cpp | 51 ASSERT_EQ(mapsItems[0].pid_, 1); 73 mapsItem.pid_ = testNum; 79 sizeof(mapsItem.offset_) + sizeof(mapsItem.pid_) + sizeof(uint32_t); 96 ASSERT_EQ(mapsItem.pid_, *pid); 97 p += sizeof(mapsItem.pid_);
|
/developtools/profiler/device/plugins/native_daemon/include/ |
D | hook_service.h | 33 return pid_; in GetPid() 41 int pid_; variable
|
/developtools/profiler/device/plugins/native_hook/src/ |
D | hook_socket_client.cpp | 32 HookSocketClient::HookSocketClient(int pid, ClientConfig *config) : pid_(pid), config_(config) in HookSocketClient() 62 unixSocketClient_->SendHookConfig(reinterpret_cast<uint8_t *>(&pid_), sizeof(pid_)); in Connect()
|
/developtools/hiperf/include/ |
D | report.h | 113 pid_t pid_ = 0; 130 : pid_(pid), in ReportItem() 144 : pid_(pid), in ReportItem() 169 return StringPrintf("%d:%d:%s-%s(%s):%zu i:%llu", pid_, tid_, comm_.data(), func_.data(), in ToDebugString() 197 if (a.pid_ != b.pid_) { in ComparePid() 198 return (a.pid_ > b.pid_) ? 1 : -1; in ComparePid() 205 return StringPrintf(format.c_str(), len, a.pid_); in GetPid() 276 return (comm_ == b.comm_) && (pid_ == b.pid_) && (tid_ == b.tid_) && (func_ == b.func_) && in Same()
|
D | virtual_thread.h | 47 : pid_(pid), in VirtualThread() 58 : pid_(pid), in VirtualThread() 71 pid_t pid_; variable
|
/developtools/smartperf_host/trace_streamer/src/table/ftrace/ |
D | process_table.cpp | 210 sqlite3_result_int64(context_, process.pid_); in Column() 256 if (processQueue[*i].pid_ != value) { in FilterPid() 264 if (processQueue[i].pid_ == value) { in FilterPid() 274 if (processQueue[*i].pid_ == value) { in FilterPid() 282 if (processQueue[i].pid_ != value) { in FilterPid()
|
/developtools/profiler/host/smartperf/trace_streamer/src/table/ftrace/ |
D | process_table.cpp | 210 sqlite3_result_int64(context_, process.pid_); in Column() 256 if (processQueue[*i].pid_ != value) { in FilterPid() 264 if (processQueue[i].pid_ == value) { in FilterPid() 274 if (processQueue[*i].pid_ == value) { in FilterPid() 282 if (processQueue[i].pid_ != value) { in FilterPid()
|
/developtools/smartperf_host/trace_streamer/test/unittest/ |
D | process_filter_test.cpp | 81 EXPECT_TRUE(process->pid_ == pid0); 84 EXPECT_TRUE(process->pid_ == pid1); 133 EXPECT_TRUE(process->pid_ == pid); 158 EXPECT_TRUE(process->pid_ == pid0); 161 EXPECT_TRUE(process->pid_ == pid1); 164 EXPECT_TRUE(process->pid_ == pid3);
|
/developtools/profiler/hiebpf/include/ |
D | bpf_event_receiver.h | 46 __u32 pid_; member 63 __u32 pid_; member 80 __u32 pid_; member 96 __u32 pid_; member
|
D | maps_info.h | 32 uint32_t pid_ = 0; member
|
/developtools/profiler/device/plugins/cpu_plugin/src/ |
D | cpu_data_plugin.cpp | 46 pid_ = -1; in CpuDataPlugin() 78 pid_ = protoConfig_.pid(); in Start() 96 if (pid_ > 0) { in Report() 433 if (pid_ < 0 && protoConfig_.report_process_info()) { in WriteSystemCpuUsage() 463 if (pid_ > 0) { in WriteCpuUsageInfo() 464 std::string fileName = path_ + std::to_string(pid_) + "/stat"; in WriteCpuUsageInfo() 601 std::string fileName = path_ + std::to_string(pid_) + "/task/" + std::to_string(tid) + "/stat"; in WriteSingleThreadInfo() 616 std::string path = path_ + std::to_string(pid_) + "/task"; in WriteThreadInfo()
|
/developtools/profiler/host/smartperf/trace_streamer/src/parser/htrace_pbreader_parser/ |
D | htrace_process_parser.h | 73 : pid_(pid), name_(name), ppid_(ppid), uid_(uid) in ProcessInfo() 76 int32_t pid_; member
|
D | htrace_process_parser.cpp | 91 if (!(*itor)->processInfo_->pid_) { in Finish() 95 …(*itor)->ts_, dur, (*itor)->processInfo_->pid_, (*itor)->processInfo_->name_, (*itor)->processInfo… in Finish()
|
D | htrace_js_memory_parser.h | 52 int32_t pid_ = 0; variable
|
/developtools/smartperf_host/trace_streamer/src/parser/htrace_pbreader_parser/ |
D | htrace_process_parser.h | 73 : pid_(pid), name_(name), ppid_(ppid), uid_(uid) in ProcessInfo() 76 int32_t pid_; member
|
D | htrace_process_parser.cpp | 91 if (!(*itor)->processInfo_->pid_) { in Finish() 95 …(*itor)->ts_, dur, (*itor)->processInfo_->pid_, (*itor)->processInfo_->name_, (*itor)->processInfo… in Finish()
|
/developtools/hiperf/src/ |
D | callstack.cpp | 167 if (dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) == dynInfoProcessMap.end()) { in FindUnwindTable() 168 dynInfoProcessMap.emplace(unwindInfoPtr->thread.pid_, dsoUnwDynInfoMap {}); in FindUnwindTable() 170 dsoUnwDynInfoMap &dynFileMap = dynInfoProcessMap[unwindInfoPtr->thread.pid_]; in FindUnwindTable() 196 HLOG_ASSERT(dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) != dynInfoProcessMap.end()); in FindUnwindTable() 200 dynInfoProcessMap.at(unwindInfoPtr->thread.pid_).at(symbolsFile->filePath_); in FindUnwindTable() 261 if (__builtin_expect(unwindInfoPtr.thread.pid_ == unwindInfoPtr.callStack.lastPid_ && in ReadVirtualThreadMemory() 268 unwindInfoPtr.callStack.lastPid_ = unwindInfoPtr.thread.pid_; in ReadVirtualThreadMemory()
|
D | virtual_thread.cpp | 276 std::string mapPath = StringPrintf("/proc/%d/maps", pid_); in ParseMap() 383 memMapItem.name_ = "/proc/" + std::to_string(pid_) + "/root" + memMapItem.name_; in ParseMap() 389 HLOGD("%d %d memMap add '%s'", pid_, tid_, memMapItem.name_.c_str()); in ParseMap() 425 pid_, tid_, memMaps_.size(), map.name_.c_str(), map.begin_, map.end_, map.pageoffset_); in CreateMapItem()
|
/developtools/profiler/hiebpf/src/ |
D | maps_info.cpp | 50 … uint32_t fixLen = sizeof(map.start_) + sizeof(map.end_) + sizeof(map.offset_) + sizeof(map.pid_); in GetBinary() 99 mapItem.pid_ = pid; in ParseMapsLine()
|
D | bpf_event_receiver.cpp | 205 mapItem->pid = item.pid_; in WriteEventMaps() 290 item->pid_ = cmplt_event->tgid; in EncodeFSTraceEvent() 326 item->pid_ = cmplt_event->tgid; in EncodePFTraceEvent() 362 item->pid_ = cmplt_event->start_event.tgid; in EncodeBIOTraceEvent() 396 item->pid_ = cmplt_event->tgid; in EncodeSTRTraceEvent()
|
/developtools/profiler/device/plugins/native_hook/include/ |
D | hook_socket_client.h | 47 int pid_; variable
|
/developtools/profiler/device/plugins/arkts_plugin/include/ |
D | arkts_plugin.h | 58 int32_t pid_{0};
|