Home
last modified time | relevance | path

Searched refs:pid_ (Results 1 – 25 of 50) sorted by relevance

12

/developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/test/unittest/
Dnative_memory_profiler_sa_service_test.cpp59 config->pid_ = pid;
68 EXPECT_EQ(service.Stop(config->pid_), RET_OK);
75 EXPECT_EQ(service.Stop(config->pid_), RET_OK);
91 config->pid_ = pid;
100 config->pid_ = 0;
/developtools/profiler/hiebpf/test/unittest/
Dmaps_info_test.cpp51 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/arkts_plugin/test/unittest/
Darkts_plugin_unittest.cpp54 pid_ = std::stoi(matchedString); in ArkTSPluginTest()
55 PROFILER_LOG_INFO(LOG_CORE, "ArkTSPluginTest: pid_ is %d", pid_); in ArkTSPluginTest()
65 int32_t pid_{0}; member in __anonce63137e0111::ArkTSPluginTest
122 configData = SetArkTSConfig(protoConfig, pid_, ArkTSConfig::INVALID, 0, false, false, false);
139 …std::vector<uint8_t> configData = SetArkTSConfig(protoConfig, pid_, ArkTSConfig::TIMELINE, 0, fals…
157 …std::vector<uint8_t> configData = SetArkTSConfig(protoConfig, pid_, ArkTSConfig::INVALID, 0, false…
/developtools/hiperf/include/
Dunique_stack_table.h80 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_; variable
Dreport.h113 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()
Dvirtual_thread.h47 : pid_(pid), in VirtualThread()
58 : pid_(pid), in VirtualThread()
71 pid_t pid_; variable
/developtools/profiler/device/plugins/native_hook/src/
Dhook_socket_client.cpp31 : pid_(pid), config_(config), sampler_(sampler), disableHookCallback_(disableHookCallback) in HookSocketClient()
61 unixSocketClient_->SendHookConfig(reinterpret_cast<uint8_t *>(&pid_), sizeof(pid_)); in Connect()
76 std::string smbName = "hooknativesmb_" + std::to_string(pid_); in ProtocolProc()
/developtools/profiler/device/plugins/native_daemon/src/
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/profiler/device/plugins/native_daemon/native_memory_profiler_sa/src/
Dnative_memory_profiler_sa_service.cpp155 …std::string filePathStr = (config->pid_ > 0) ? std::to_string(config->pid_) : config->processName_; in StartHook()
185 …std::bind(&NativeMemoryProfilerSaService::StopHook, this, config->pid_, config->processName_, true… in StartHook()
194 … std::make_shared<TaskConfig>(hook, config->pid_, config->processName_, config->filePath_, timerFd, in StartHook()
229 if (config->pid_ > 0) { in CheckConfig()
231 if (pidCtx_.find(config->pid_) != pidCtx_.end()) { in CheckConfig()
232 …FILER_LOG_INFO(LOG_CORE, "NativeMemoryProfilerSaService: hook has started, pid: %d", config->pid_); in CheckConfig()
Dnative_memory_profiler_sa_config.cpp23 WRITEINT32(parcel, pid_); in Marshalling()
56 READINT32(parcel, config->pid_); in Unmarshalling()
89 …config->pid_, config->filePath_.c_str(), config->duration_, config->filterSize_, config->shareMemo… in PrintConfig()
/developtools/hiperf/src/
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()
669 if (pidUnwinder_.count(thread.pid_) == 0) { in DoUnwind2()
670 pidUnwinder_.emplace(thread.pid_, std::make_shared<Unwinder>(accessor_)); in DoUnwind2()
672 auto unwinder = pidUnwinder_[thread.pid_]; in DoUnwind2()
[all …]
/developtools/smartperf_host/trace_streamer/src/parser/htrace_pbreader_parser/htrace_event_parser/
Dhtrace_event_parser.cpp198 eventInfo->pid_ = commFileds.pid(); in ParserCpuEvent()
449 …streamFilters_->binderFilter_->TransactionAllocBuf(event.timeStamp_, event.pid_, dataSize, offsets… in BinderTractionAllocBufEvent()
465 …streamFilters_->binderFilter_->SendTraction(event.timeStamp_, event.pid_, transactionId, destNode,… in BinderTractionEvent()
469 transactionId, streamFilters_->processFilter_->GetInternalTid(event.pid_)); in BinderTractionEvent()
478 streamFilters_->binderFilter_->ReceiveTraction(event.timeStamp_, event.pid_, transactionId); in BinderTractionReceivedEvent()
481 transactionId, streamFilters_->processFilter_->GetInternalTid(event.pid_)); in BinderTractionReceivedEvent()
491 streamFilters_->binderFilter_->TractionLock(event.timeStamp_, event.pid_, tag); in BinderTractionLockEvent()
500 streamFilters_->binderFilter_->TractionLocked(event.timeStamp_, event.pid_, tag); in BinderTractionLockedEvent()
508 streamFilters_->binderFilter_->TractionUnlock(event.timeStamp_, event.pid_, tag); in BinderTractionUnLockEvent()
608 line.pid = event.pid_; in ParsePrintEvent()
[all …]
/developtools/smartperf_host/trace_streamer/src/table/ftrace/
Dprocess_table.cpp171 sqlite3_result_int64(context_, process.pid_); in Column()
228 if (dataCache_->GetConstProcessData()[*i].pid_ != value) { in HandleIndexConstraintEQ()
236 if (dataCache_->GetConstProcessData()[i].pid_ == value) { in HandleIndexConstraintEQ()
247 if (dataCache_->GetConstProcessData()[*i].pid_ == value) { in HandleIndexConstraintNQ()
255 if (dataCache_->GetConstProcessData()[i].pid_ != value) { in HandleIndexConstraintNQ()
/developtools/profiler/device/plugins/native_daemon/
Dnative_daemon_client.cpp87 config->pid_ = std::stoi(argv[++i]); in main()
160 if (config->pid_ > 0) { in main()
161 NativeMemoryProfilerSaClientManager::Stop(config->pid_); in main()
/developtools/smartperf_host/trace_streamer/test/unittest/filter/
Dprocess_filter_test.cpp81 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/
Dbpf_event_receiver.h46 __u32 pid_; member
63 __u32 pid_; member
80 __u32 pid_; member
96 __u32 pid_; member
Dmaps_info.h32 uint32_t pid_ = 0; member
/developtools/profiler/device/plugins/cpu_plugin/src/
Dcpu_data_plugin.cpp48 pid_ = -1; in CpuDataPlugin()
80 pid_ = protoConfig_.pid(); in Start()
98 if (pid_ > 0) { in ReportOptimize()
117 if (pid_ > 0) { in Report()
451 if (pid_ < 0 && protoConfig_.report_process_info()) { in WriteSystemCpuUsage()
481 if (pid_ > 0) { in WriteCpuUsageInfo()
482 std::string fileName = path_ + std::to_string(pid_) + "/stat"; in WriteCpuUsageInfo()
628 std::string fileName = path_ + std::to_string(pid_) + "/task/" + std::to_string(tid) + "/stat"; in WriteSingleThreadInfo()
643 std::string path = path_ + std::to_string(pid_) + "/task"; in WriteThreadInfo()
/developtools/profiler/device/plugins/gpu_plugin/include/
Dgpu_data_plugin.h52 int pid_ = -1; variable
/developtools/profiler/hiebpf/src/
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()
Dbpf_event_receiver.cpp205 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/
Dhook_socket_client.h50 int pid_; variable
/developtools/profiler/device/plugins/native_daemon/native_memory_profiler_sa/include/
Dnative_memory_profiler_sa_config.h33 int32_t pid_{0};
/developtools/profiler/device/plugins/arkts_plugin/include/
Darkts_plugin.h62 int32_t pid_{0};
/developtools/profiler/device/plugins/native_daemon/include/
Dstack_preprocess.h58 pid_ = pid; in SetPid()
160 int32_t pid_ {-1};

12