/third_party/ltp/testcases/cve/ |
H A D | stack_clash.c | 304 pid_t pid; in stack_clash_test() local 306 pid = SAFE_FORK(); in stack_clash_test() 307 if (!pid) { in stack_clash_test() 313 SAFE_WAITPID(pid, &status, 0); in stack_clash_test()
|
/third_party/ltp/testcases/kernel/syscalls/membarrier/ |
H A D | membarrier01.c | 364 pid_t pid; in wrap_verify_membarrier() local 372 pid = SAFE_FORK(); in wrap_verify_membarrier() 374 if (pid) in wrap_verify_membarrier() 375 SAFE_WAITPID(pid, NULL, 0); in wrap_verify_membarrier()
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
H A D | fanotify15.c | 197 "pid=%u fd=%d", in do_test() 199 metadata->pid, in do_test() 210 "pid=%u fd=%d", in do_test() 212 expected->mask, (unsigned int) metadata->pid, in do_test() 214 } else if (metadata->pid != getpid()) { in do_test() 216 "Got event: mask=%llx pid=%u " in do_test() 219 (unsigned int) metadata->pid, in do_test() 252 "Got event: mask=%llx, pid=%u, " in do_test()
|
H A D | fanotify03.c | 273 "pid=%u fd=%d", in test_fanotify() 276 (unsigned int)event->pid, event->fd); in test_fanotify() 277 } else if (event->pid != child_pid) { in test_fanotify() 279 "got event: mask=%llx pid=%u " in test_fanotify() 282 (unsigned int)event->pid, in test_fanotify() 287 "got event: mask=%llx pid=%u fd=%d", in test_fanotify() 289 (unsigned int)event->pid, event->fd); in test_fanotify()
|
/third_party/ltp/testcases/misc/crash/ |
H A D | crash02.c | 188 printf("time limit reached on pid. using kill.\n"); in monitor_fcn() 199 int status, pid; in badboy_fork() local 215 printf("badboy pid = %d\n", badboy_pid); in badboy_fork() 221 pid = waitpid(-1, &status, WUNTRACED); in badboy_fork() 222 if (pid <= 0) in badboy_fork() 226 printf("pid %d exited with status %d\n", in badboy_fork() 227 pid, status); in badboy_fork()
|
/third_party/ltp/testcases/kernel/syscalls/mq_timedsend/ |
H A D | mq_timedsend01.c | 169 pid_t pid = -1; in do_test() local 176 pid = set_sig(tc->rq, tv->clock_gettime); in do_test() 201 if (pid > 0) in do_test() 202 kill_pid(pid); in do_test()
|
/third_party/ltp/testcases/kernel/syscalls/pkeys/ |
H A D | pkey01.c | 130 pid_t pid; in pkey_test() local 153 pid = SAFE_FORK(); in pkey_test() 154 if (pid == 0) { in pkey_test() 171 SAFE_WAITPID(pid, &status, 0); in pkey_test()
|
/third_party/ltp/testcases/lib/ |
H A D | test.sh | 88 tst_brkm TBROK "Requires child pid as parameter" 97 tst_brkm TBROK "Child process pid='$child_pid' does not exist" 212 local pid=$! 214 kill -s 0 $pid 2>/dev/null 225 kill -TERM -- -$pid 228 wait $pid
|
/third_party/rust/crates/nix/src/ |
H A D | sched.rs | 244 /// `pid` is the thread ID to update. 245 /// If pid is zero, then the calling thread is updated. 262 pub fn sched_setaffinity(pid: Pid, cpuset: &CpuSet) -> Result<()> { in sched_setaffinity() 265 pid.into(), in sched_setaffinity() 277 /// `pid` is the thread ID to check. 278 /// If pid is zero, then the calling thread is checked. 296 pub fn sched_getaffinity(pid: Pid) -> Result<CpuSet> { in sched_getaffinity() 300 pid.into(), in sched_getaffinity()
|
/foundation/communication/dsoftbus/core/bus_center/lnn/lane_hub/lane_manager/src/ |
H A D | lnn_lane_link_p2p.c | 57 int32_t pid; member 93 int32_t pid; member 412 static int32_t DisconnectP2pWithoutAuthConn(int32_t pid, int32_t linkId) in DisconnectP2pWithoutAuthConn() argument 417 info.pid = pid; in DisconnectP2pWithoutAuthConn() 451 wifiDirectInfo->pid = item->pid; in GetP2pLinkDownParam() 624 wifiDirectInfo->pid = item->laneRequestInfo.pid; in GetP2pLinkReqParamByChannelRequetId() 665 wifiDirectInfo->pid in GetP2pLinkReqParamByAuthHandle() 2878 int32_t pid = -1; LnnDisconnectP2pWithoutLnn() local 2917 int32_t pid = -1; LnnDisconnectP2p() local [all...] |
/foundation/ability/ability_runtime/test/unittest/app_mgr_client_test/ |
H A D | app_mgr_client_test.cpp | 219 pid_t pid = 23689; in HWTEST_F() local 220 appMgrClient->GetRunningProcessInfoByPid(pid, info); in HWTEST_F() 265 int32_t pid = 1; in HWTEST_F() local 267 auto ret = appMgrClient->NotifyAppMgrRecordExitReason(reason, pid, exitMsg); in HWTEST_F() 307 * @tc.desc: can not get render process termination status with error pid. 690 int32_t pid = 1; in HWTEST_F() local 692 appMgrClient->DumpHeapMemory(pid, mallocInfo); in HWTEST_F() 765 int32_t pid = 0; in HWTEST_F() local 768 auto ret = appMgrClient->GetBundleNameByPid(pid, name, uid); in HWTEST_F() 815 pid_t pid in HWTEST_F() local 1090 pid_t pid = 0; HWTEST_F() local 1313 pid_t pid = 0; HWTEST_F() local 1428 int32_t pid = 1; HWTEST_F() local [all...] |
/third_party/libbpf/src/ |
H A D | usdt.c | 450 static int parse_vma_segs(int pid, const char *lib_path, struct elf_seg **segs, size_t *seg_cnt) in parse_vma_segs() argument 461 * /proc/<pid>/root/<path>. They will be reported as just /<path> in in parse_vma_segs() 462 * /proc/<pid>/maps. in parse_vma_segs() 464 if (sscanf(lib_path, "/proc/%d/root%s", &tmp_pid, path) == 2 && pid == tmp_pid) in parse_vma_segs() 474 sprintf(line, "/proc/%d/maps", pid); in parse_vma_segs() 528 lib_path, path, pid); in parse_vma_segs() 561 /* for VMA segments from /proc/<pid>/maps file, provided "address" is in find_vma_seg() 578 static int collect_usdt_targets(struct usdt_manager *man, Elf *elf, const char *path, pid_t pid, in collect_usdt_targets() argument 701 if (pid < 0) { in collect_usdt_targets() 709 err = parse_vma_segs(pid, pat in collect_usdt_targets() 955 usdt_manager_attach_usdt(struct usdt_manager *man, const struct bpf_program *prog, pid_t pid, const char *path, const char *usdt_provider, const char *usdt_name, __u64 usdt_cookie) usdt_manager_attach_usdt() argument [all...] |
/third_party/ffmpeg/libavformat/ |
H A D | mpegtsenc.c | 49 int pid; member 160 b = s->pid >> 8; in mpegts_write_section() 164 *q++ = s->pid; in mpegts_write_section() 241 int pid; /* stream associated pid */ member 279 put16(&q, 0xe000 | service->pmt.pid); in mpegts_write_pat() 558 put16(&q, 0xe000 | ts_st->pid); in mpegts_write_pmt() 1015 service->pmt.pid = ts->pmt_start_pid + ts->nb_services; in mpegts_add_service() 1090 service->pcr_pid = ts_st->pid; in select_pcr_streams() 1092 av_log(s, AV_LOG_VERBOSE, "service %i using PCR in pid in select_pcr_streams() [all...] |
/drivers/peripheral/power/interfaces/hdi_service/src/ |
H A D | running_lock_impl.cpp | 190 .pid = info.pid, in FillRunningLockInfo() 264 int32_t pid = info.pid; in NotifyChanged() local 272 .append(" PID=").append(std::to_string(pid)) in NotifyChanged()
|
/foundation/ability/ability_runtime/frameworks/native/appkit/dfr/ |
H A D | appfreeze_inner.cpp | 184 int32_t pid = static_cast<int32_t>(getpid()); in SendProcessKillEvent() local 187 HiviewDFX::HiSysEvent::EventType::FAULT, EVENT_PID, pid, in SendProcessKillEvent() 190 " pid=%{public}d, processName=%{public}s, msg=%{public}s", result, pid, processName.c_str(), in SendProcessKillEvent() 260 int32_t pid = static_cast<int32_t>(getpid()); in NotifyANR() local 261 TAG_LOGI(AAFwkTag::APPDFR, "NotifyAppFault:%{public}s, pid:%{public}d, bundleName:%{public}s", in NotifyANR() 262 faultData.errorObject.name.c_str(), pid, applicationInfo->bundleName.c_str()); in NotifyANR()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/fuzztest/rscommand_fuzzer/ |
H A D | rscommand_fuzzer.cpp | 226 uint32_t pid = GetData<uint32_t>(); in RSMessageProcessFuzzTest() local 230 RSMessageProcessor::Instance().AddUIMessage(pid, command); in RSMessageProcessFuzzTest() 231 RSMessageProcessor::Instance().AddUIMessage(pid, command); in RSMessageProcessFuzzTest() 232 RSMessageProcessor::Instance().HasTransaction(pid); in RSMessageProcessFuzzTest() 233 RSMessageProcessor::Instance().GetTransaction(pid); in RSMessageProcessFuzzTest()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/transaction/ |
H A D | rs_interfaces.h | 32 int32_t pid = -1;
member 108 MemoryGraphic GetMemoryGraphic(int pid);
153 std::string GetRefreshInfo(pid_t pid);
298 bool RegisterSurfaceBufferCallback(pid_t pid, uint64_t uid,
301 bool UnregisterSurfaceBufferCallback(pid_t pid, uint64_t uid);
|
/foundation/multimedia/av_session/services/session/server/test/fuzztest/avsessionitem_fuzzer/ |
H A D | avsessionitem_fuzzer.cpp | 167 int32_t pid = *(reinterpret_cast<const int32_t *>(data)); in AvSessionItemTestImplExtension() local 197 sptr<AVControllerItem> avControllerItem = new(std::nothrow) AVControllerItem(pid, avSessionItem); in AvSessionItemTestImplExtension() 213 avSessionItem->AddController(pid, avControllerItem); in AvSessionItemTestImplExtension() 214 avSessionItem->SetPid(pid); in AvSessionItemTestImplExtension() 216 avSessionItem->HandleControllerRelease(pid); in AvSessionItemTestImplExtension()
|
/foundation/multimodalinput/input/service/connect_manager/include/ |
H A D | multimodal_input_connect_manager.h | 47 int32_t SetNapStatus(int32_t pid, int32_t uid, std::string bundleName, int32_t napStatus); 55 int32_t SetCustomCursor(int32_t pid, int32_t windowId, int32_t focusX, int32_t focusY, void* pixelMap); 57 int32_t SetMouseHotSpot(int32_t pid, int32_t windowId, int32_t hotSpotX, int32_t hotSpotY); 72 int32_t ClearWindowPointerStyle(int32_t pid, int32_t windowId); 155 int32_t SetClientInfo(int32_t pid, uint64_t readThreadId);
|
/foundation/communication/dsoftbus/core/transmission/trans_channel/tcp_direct/src/ |
H A D | trans_tcp_direct_manager.c | 69 if (TransTdcOnChannelOpenFailed(node->appInfo.myData.pkgName, node->appInfo.myData.pid, in OnSessionOpenFailProc() 217 void TransTdcDeathCallback(const char *pkgName, int32_t pid) in TransTdcDeathCallback() argument 237 if ((strcmp(item->appInfo.myData.pkgName, pkgName) == 0) && (item->appInfo.myData.pid == pid)) { in TransTdcDeathCallback() 241 TRANS_LOGI(TRANS_CTRL, "delete pkgName=%{public}s, pid=%{public}d", anonymizePkgName, pid); in TransTdcDeathCallback()
|
/foundation/communication/wifi/wifi/relation_services/wifi_hal_service/ |
H A D | wifi_hal_module_manage.c | 136 pid_t pid = fork(); in StartModuleInternal() local 137 if (pid < 0) { in StartModuleInternal() 141 if (pid == 0) { /* sub process */ in StartModuleInternal() 154 LOGE("Create wpa process id is [%{public}d], cmd:%{private}s", pid, startCmd); in StartModuleInternal() 155 *pProcessId = pid; in StartModuleInternal() 165 LOGI("kill [%{public}d] success, pid no exist", processId); in StopModuleInternalKillProcess()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/avctp/ |
H A D | avctp_br_act.c | 297 AvctMakeSignleMsgHead(pkt, txMsg.label, txMsg.cr, txMsg.cbConn->connParam.pid); in AvctCbBrSendMsg() 329 uint16_t pid; in AvctCbBrRevMsg() local 330 AVCT_PARSE_SIGNLE_HDR(sHead, label, cr, ipid, pid); in AvctCbBrRevMsg() 336 /* Get the conn by pid */ in AvctCbBrRevMsg() 337 AvctCbConn *cbConn = AvctGetCbConnByPid(cbDev, pid); in AvctCbBrRevMsg() 345 /* Don't find pid connection,send reject */ in AvctCbBrRevMsg() 352 AvctMakeRejMsgHead(sndPkg, label, pid); in AvctCbBrRevMsg()
|
/foundation/communication/bluetooth_service/services/bluetooth/stack/src/hci/ |
H A D | hci.c | 82 pid_t pid = getpid(); in HciOnHDIInitedTimerTimeout() local 83 LOG_DEBUG("%{public}s pid:%{public}d", __FUNCTION__, pid); in HciOnHDIInitedTimerTimeout() 84 if (kill(pid, SIGTERM) == -1) { in HciOnHDIInitedTimerTimeout() 86 LOG_INFO("kill [%{public}d] success, pid no exist", pid); in HciOnHDIInitedTimerTimeout() 88 LOG_ERROR("kill [%{public}d] failed", pid); in HciOnHDIInitedTimerTimeout()
|
/foundation/window/window_manager/window_scene/session_manager/include/zidl/ |
H A D | scene_session_manager_proxy.h | 67 WMError CheckWindowId(int32_t windowId, int32_t& pid) override; 99 WSError NotifyWindowExtensionVisibilityChange(int32_t pid, int32_t uid, bool visible) override; 121 WMError GetProcessSurfaceNodeIdByPersistentId(const int32_t pid, 123 WMError SkipSnapshotForAppProcess(int32_t pid, bool skip) override; 126 WMError SetProcessWatermark(int32_t pid, const std::string& watermarkName, bool isEnabled) override;
|
/foundation/window/window_manager/wmserver/src/ |
H A D | window_node.cpp | 152 void WindowNode::SetInputEventCallingPid(int32_t pid) in SetInputEventCallingPid() argument 154 inputCallingPid_ = pid; in SetInputEventCallingPid() 157 void WindowNode::SetCallingPid(int32_t pid) in SetCallingPid() argument 159 callingPid_ = pid; in SetCallingPid() 160 SetInputEventCallingPid(pid); in SetCallingPid()
|