Home
last modified time | relevance | path

Searched refs:pid_ (Results 1 - 25 of 62) sorted by relevance

123

/developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/test/unittest/
H A Dnative_memory_profiler_sa_service_test.cpp59 config->pid_ = pid; in HWTEST_F()
68 EXPECT_EQ(service.Stop(config->pid_), RET_OK); in HWTEST_F()
75 EXPECT_EQ(service.Stop(config->pid_), RET_OK); in HWTEST_F()
91 config->pid_ = pid; in HWTEST_F()
100 config->pid_ = 0; in HWTEST_F()
/developtools/profiler/device/plugins/ffrt_profiler/client/src/
H A Dffrt_profiler.cpp53 pid_ = getprocpid(); in FfrtProfiler()
54 processName_ = GetProcessName(pid_); in FfrtProfiler()
83 if (((pid > 0) && (pid == pid_)) || ((pid == 0) && (item == processName_))) { in CheckFfrtProfilerParam()
99 socketClent_ = std::make_shared<FfrtProfilerSocketClient>(pid_, this, nullptr); in Enable()
104 PROFILER_LOG_DEBUG(LOG_CORE, "ffrt profiler clent start, pid: %d, processName: %s", pid_, processName_.c_str()); in Enable()
112 PROFILER_LOG_DEBUG(LOG_CORE, "ffrt profiler clent stop, pid: %d, processName: %s", pid_, processName_.c_str()); in Disable()
H A Dffrt_profiler_socker_client.cpp30 : pid_(pid), disableHookCallback_(disableHookCallback), profiler_(profiler) in FfrtProfilerSocketClient()
59 unixSocketClient_->SendHookConfig(reinterpret_cast<uint8_t *>(&pid_), sizeof(pid_)); in Connect()
79 std::string smbName = "ffrtProfilerSmb_" + std::to_string(pid_); in ProtocolProc()
/developtools/profiler/hiebpf/test/unittest/
H A Dmaps_info_test.cpp51 ASSERT_EQ(mapsItems[0].pid_, 1); in HWTEST_F()
73 mapsItem.pid_ = testNum; in HWTEST_F()
79 sizeof(mapsItem.offset_) + sizeof(mapsItem.pid_) + sizeof(uint32_t); in HWTEST_F()
96 ASSERT_EQ(mapsItem.pid_, *pid); in HWTEST_F()
97 p += sizeof(mapsItem.pid_); in HWTEST_F()
/developtools/profiler/device/plugins/network_profiler/client/src/
H A Dnetwork_profiler.cpp42 static int32_t pid_{0};
62 pid_ = getprocpid(); in NetworkProfiler()
63 processName_ = GetProcessNameByPid(pid_); in NetworkProfiler()
106 if (((pid > 0) && (pid == pid_)) || ((pid == 0) && (item == processName_))) { in CheckNetworkProfilerParam()
121 socketClent_ = std::make_shared<NetworkProfilerSocketClient>(pid_, this, in Enable()
128 PROFILER_LOG_DEBUG(LOG_CORE, "network profiler clent start, pid: %d, processName: %s", pid_, processName_.c_str()); in Enable()
149 PROFILER_LOG_DEBUG(LOG_CORE, "network profiler clent stop, pid: %d, processName: %s", pid_, processName_.c_str()); in Disable()
H A Dnetwork_profiler_socker_client.cpp29 void (*disableHookCallback)()) : pid_(pid), disableHookCallback_(disableHookCallback), profiler_(profiler) in NetworkProfilerSocketClient()
58 unixSocketClient_->SendHookConfig(reinterpret_cast<uint8_t *>(&pid_), sizeof(pid_)); in Connect()
72 std::string smbName = "networkProfilerSmb_" + std::to_string(pid_); in ProtocolProc()
/developtools/hiperf/include/
H A Dunique_stack_table.h80 explicit UniqueStackTable(pid_t pid) : pid_(pid) in UniqueStackTable()
85 UniqueStackTable(pid_t pid, uint32_t size) : pid_(pid), tableSize_(size) in UniqueStackTable()
103 return pid_; in GetPid()
124 u32 pid_; member in OHOS::Developtools::HiPerf::UniqueStackTable
H A Dvirtual_thread.h47 : pid_(pid), in VirtualThread()
58 : pid_(pid), in VirtualThread()
71 pid_t pid_; member in OHOS::Developtools::HiPerf::VirtualThread
H A Dreport.h113 pid_t pid_ = 0; member in OHOS::Developtools::HiPerf::ReportItem
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_ in Same()
[all...]
/developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/src/
H A Dnative_memory_profiler_sa_service.cpp180 std::string filePathStr = (config->pid_ > 0) ? std::to_string(config->pid_) : config->processName_; in StartHook()
210 if (config->pid_ > 0) { in StartHook()
212 if (nmdPidType_.find(config->pid_) != nmdPidType_.end()) { in StartHook()
213 hook->SetNmdInfo(nmdPidType_[config->pid_]); in StartHook()
223 [this, config] { this->StopHook(config->pid_, config->processName_, true); }, in StartHook()
232 std::make_shared<TaskConfig>(hook, config->pid_, config->processName_, config->filePath_, timerFd, in StartHook()
267 if (config->pid_ > 0) { in CheckConfig()
269 if (pidCtx_.find(config->pid_) != pidCtx_.end()) { in CheckConfig()
270 PROFILER_LOG_INFO(LOG_CORE, "NativeMemoryProfilerSaService: hook has started, pid: %d", config->pid_); in CheckConfig()
[all...]
H A Dnative_memory_profiler_sa_stub.cpp82 if (config->pid_ > 0) { in StubDumpFile()
84 std::string pidPath = "/proc/" + std::to_string(config->pid_) + "/status"; in StubDumpFile()
H A Dnative_memory_profiler_sa_config.cpp23 WRITEINT32(parcel, pid_); in Marshalling()
62 READINT32(parcel, config->pid_); in Unmarshalling()
101 config->pid_, config->filePath_.c_str(), config->duration_, config->filterSize_, config->shareMemorySize_, in PrintConfig()
/developtools/profiler/device/plugins/native_daemon/
H A Dnative_daemon_client.cpp89 config->pid_ = std::stoi(argv[++i]); in main()
167 NativeMemoryProfilerSaClientManager::GetMallocStats(fdFirst, config->pid_, 0); in main()
174 if (config->pid_ > 0) { in main()
175 NativeMemoryProfilerSaClientManager::Stop(config->pid_); in main()
/developtools/profiler/device/plugins/native_hook/src/
H A Dhook_socket_client.cpp81 : pid_(pid), config_(config), sampler_(sampler), disableHookCallback_(disableHookCallback) in HookSocketClient()
110 unixSocketClient_->SendHookConfig(reinterpret_cast<uint8_t *>(&pid_), sizeof(pid_)); in Connect()
125 std::string smbName = "hooknativesmb_" + std::to_string(pid_); in ProtocolProc()
/developtools/profiler/hiebpf/include/
H A Dbpf_event_receiver.h46 __u32 pid_; member
63 __u32 pid_; member
80 __u32 pid_; member
96 __u32 pid_; member
/developtools/profiler/device/plugins/native_daemon/src/
H A Dcall_stack.cpp42 auto process = unwindInfoPtr.callStack.porcessMemoryMap_.find(unwindInfoPtr.thread.pid_); in ReadVirtualThreadMemory()
52 unwindInfoPtr.callStack.porcessMemoryMap_[unwindInfoPtr.thread.pid_][addr] = *data; in ReadVirtualThreadMemory()
175 if (dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) == dynInfoProcessMap.end()) { in FindUnwindTable()
176 dynInfoProcessMap.emplace(unwindInfoPtr->thread.pid_, dsoUnwDynInfoMap {}); in FindUnwindTable()
178 dsoUnwDynInfoMap &dynFileMap = dynInfoProcessMap[unwindInfoPtr->thread.pid_]; in FindUnwindTable()
201 HLOG_ASSERT(dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) != dynInfoProcessMap.end()); in FindUnwindTable()
205 dynInfoProcessMap.at(unwindInfoPtr->thread.pid_).at(symbolsFile->filePath_); in FindUnwindTable()
510 if (pidUnwinder_.count(thread.pid_) == 0) { in DoUnwind2()
511 pidUnwinder_.emplace(thread.pid_, std::make_shared<Unwinder>(accessor_)); in DoUnwind2()
513 auto unwinder = pidUnwinder_[thread.pid_]; in DoUnwind2()
[all...]
/developtools/hiperf/src/
H A Dcallstack.cpp48 if (__builtin_expect(unwindInfoPtr.thread.pid_ == unwindInfoPtr.callStack.lastPid_ && in ReadVirtualThreadMemory()
55 unwindInfoPtr.callStack.lastPid_ = unwindInfoPtr.thread.pid_; in ReadVirtualThreadMemory()
193 if (dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) == dynInfoProcessMap.end()) { in FindUnwindTable()
194 dynInfoProcessMap.emplace(unwindInfoPtr->thread.pid_, dsoUnwDynInfoMap {}); in FindUnwindTable()
196 dsoUnwDynInfoMap &dynFileMap = dynInfoProcessMap[unwindInfoPtr->thread.pid_]; in FindUnwindTable()
222 HLOG_ASSERT(dynInfoProcessMap.find(unwindInfoPtr->thread.pid_) != dynInfoProcessMap.end()); in FindUnwindTable()
226 dynInfoProcessMap.at(unwindInfoPtr->thread.pid_).at(symbolsFile->filePath_); in FindUnwindTable()
665 if (pidUnwinder_.count(thread.pid_) == 0) { in DoUnwind2()
666 pidUnwinder_.emplace(thread.pid_, std::make_shared<Unwinder>(accessor_)); in DoUnwind2()
668 auto unwinder = pidUnwinder_[thread.pid_]; in DoUnwind2()
[all...]
/developtools/profiler/device/plugins/ffrt_profiler/service/include/
H A Dffrt_profiler_handle.h43 pid_ = pid; in SetTargetProcessInfo()
71 uint32_t pid_{0};
/developtools/profiler/device/plugins/network_profiler/service/include/
H A Dnetwork_profiler_handle.h42 pid_ = pid; in SetTargetProcessInfo()
72 uint32_t pid_{0};
/developtools/smartperf_host/trace_streamer/src/table/ftrace/
H A Dprocess_table.cpp153 sqlite3_result_int64(context_, process.pid_); in Column()
209 if (dataCache_->GetConstProcessData()[*i].pid_ != value) { in HandleIndexConstraintEQ()
217 if (dataCache_->GetConstProcessData()[i].pid_ == value) { in HandleIndexConstraintEQ()
228 if (dataCache_->GetConstProcessData()[*i].pid_ == value) { in HandleIndexConstraintNQ()
236 if (dataCache_->GetConstProcessData()[i].pid_ != value) { in HandleIndexConstraintNQ()
/developtools/profiler/device/plugins/native_daemon/include/
H A Dhook_manager.h120 pid_ = pid; in SetPid()
124 return pid_; in GetPid()
135 int pid_ = -1; // for SA mode member in OHOS::Developtools::NativeDaemon::HookManager
/developtools/profiler/device/plugins/cpu_plugin/src/
H A Dcpu_data_plugin.cpp48 pid_ = -1; in CpuDataPlugin()
81 pid_ = protoConfig_.pid(); in Start()
99 if (pid_ > 0) { in ReportOptimize()
118 if (pid_ > 0) { in Report()
466 if (pid_ < 0 && protoConfig_.report_process_info()) { in WriteSystemCpuUsage()
496 if (pid_ > 0) { in WriteCpuUsageInfo()
497 std::string fileName = path_ + std::to_string(pid_) + "/stat"; in WriteCpuUsageInfo()
644 std::string fileName = path_ + std::to_string(pid_) + "/task/" + std::to_string(tid) + "/stat"; in WriteSingleThreadInfo()
659 std::string path = path_ + std::to_string(pid_) + "/task"; in WriteThreadInfo()
/developtools/smartperf_host/trace_streamer/test/unittest/filter/
H A Dprocess_filter_test.cpp81 EXPECT_TRUE(process->pid_ == pid0); in HWTEST_F()
84 EXPECT_TRUE(process->pid_ == pid1); in HWTEST_F()
133 EXPECT_TRUE(process->pid_ == pid); in HWTEST_F()
158 EXPECT_TRUE(process->pid_ == pid0); in HWTEST_F()
161 EXPECT_TRUE(process->pid_ == pid1); in HWTEST_F()
164 EXPECT_TRUE(process->pid_ == pid3); in HWTEST_F()
/developtools/profiler/hiebpf/src/
H A Dmaps_info.cpp50 uint32_t fixLen = sizeof(map.start_) + sizeof(map.end_) + sizeof(map.offset_) + sizeof(map.pid_); in GetBinary()
99 mapItem.pid_ = pid; in ParseMapsLine()
/developtools/profiler/device/plugins/gpu_plugin/include/
H A Dgpu_data_plugin.h52 int pid_ = -1; member in GpuDataPlugin

Completed in 13 milliseconds

123