/third_party/curl/tests/ |
H A D | processhelp.pm | 90 # pidfromfile returns the pid stored in the given pidfile. The value 91 # of the returned pid will never be a negative value. It will be zero 92 # on any file related error or if a pid can not be extracted from the 97 my $pid = 0; 100 $pid = 0 + <$pidfh>; 102 $pid = 0 if($pid < 0); 104 return $pid; 108 # pidexists checks if a process with a given pid exists and is alive. 109 # This will return the positive pid i [all...] |
/third_party/musl/libc-test/src/functionalext/fortify/ |
H A D | invalid_param.c | 41 pid_t pid = fork(); in clearerr_0100() local 42 if (pid == -1) { in clearerr_0100() 44 } else if (pid == 0) { in clearerr_0100() 48 waitpid(pid, &status, 0); in clearerr_0100() 63 pid_t pid = fork(); in feof_0100() local 64 if (pid == -1) { in feof_0100() 66 } else if (pid == 0) { in feof_0100() 70 waitpid(pid, &status, 0); in feof_0100() 85 pid_t pid = fork(); in ferror_0100() local 86 if (pid in ferror_0100() 107 pid_t pid = fork(); fgetc_0100() local 129 pid_t pid = fork(); fgets_0100() local 152 pid_t pid = fork(); fprintf_0100() local 175 pid_t pid = fork(); fputc_0100() local 197 pid_t pid = fork(); fputs_0100() local 219 pid_t pid = fork(); fread_0600() local 242 pid_t pid = fork(); fscanf_0100() local 265 pid_t pid = fork(); fseek_0100() local 288 pid_t pid = fork(); fseeko_0100() local 310 pid_t pid = fork(); ftell_0100() local 332 pid_t pid = fork(); fwrite_0100() local 355 pid_t pid = fork(); getc_0100() local 377 pid_t pid = fork(); pclose_0100() local 399 pid_t pid = fork(); rewind_0100() local 421 pid_t pid = fork(); setvbuf_0100() local 444 pid_t pid = fork(); wcsnrtombs_0100() local 472 pid_t pid = fork(); unsetenv_0100() local 494 pid_t pid = fork(); readdir_0100() local 516 pid_t pid = fork(); pthread_join_0100() local 540 pid_t pid = fork(); pthread_kill_0100() local 564 pid_t pid = fork(); pthread_setschedparam_0100() local [all...] |
H A D | unistd.c | 42 int pid = fork(); in unistd_dynamic_chk_001() local 43 switch (pid) { in unistd_dynamic_chk_001() 51 waitpid(pid, &status, WUNTRACED); in unistd_dynamic_chk_001() 55 kill(pid, SIGCONT); in unistd_dynamic_chk_001() 81 int pid = fork(); in unistd_dynamic_chk_002() local 82 switch (pid) { in unistd_dynamic_chk_002() 90 waitpid(pid, &status, WUNTRACED); in unistd_dynamic_chk_002() 94 kill(pid, SIGCONT); in unistd_dynamic_chk_002() 121 int pid = fork(); in unistd_dynamic_chk_003() local 122 switch (pid) { in unistd_dynamic_chk_003() 162 int pid = fork(); unistd_dynamic_chk_004() local 202 int pid = fork(); unistd_dynamic_chk_005() local 241 int pid = fork(); unistd_dynamic_chk_006() local 280 int pid = fork(); unistd_dynamic_chk_007() local 321 int pid = fork(); unistd_dynamic_chk_008() local 361 int pid = fork(); unistd_dynamic_chk_009() local 399 int pid = fork(); unistd_dynamic_chk_010() local 437 int pid = fork(); unistd_dynamic_chk_011() local 477 int pid = fork(); unistd_dynamic_chk_012() local 517 int pid = fork(); unistd_dynamic_chk_013() local 555 int pid = fork(); unistd_dynamic_chk_014() local 592 int pid = fork(); unistd_dynamic_chk_015() local 629 int pid = fork(); unistd_dynamic_chk_016() local 667 int pid = fork(); unistd_dynamic_chk_017() local [all...] |
H A D | string_ext.c | 80 int pid = fork(); in test_strcat_0020() local 81 switch (pid) { in test_strcat_0020() 89 waitpid(pid, &status, WUNTRACED); in test_strcat_0020() 93 kill(pid, SIGCONT); in test_strcat_0020() 131 int pid = fork(); in test_strncat_0020() local 132 switch (pid) { in test_strncat_0020() 140 waitpid(pid, &status, WUNTRACED); in test_strncat_0020() 144 kill(pid, SIGCONT); in test_strncat_0020() 179 int pid = fork(); in test_stpcpy_0020() local 180 switch (pid) { in test_stpcpy_0020() 230 int pid = fork(); test_stpncpy_0020() local 280 int pid = fork(); test_strncpy_0020() local 327 int pid = fork(); test_memchr_0020() local 374 int pid = fork(); test_memrchr_0020() local 420 int pid = fork(); test_strchr_0020() local 468 int pid = fork(); test_strrchr_0020() local 517 int pid = fork(); test_strlcat_0020() local 569 int pid = fork(); test_strlcpy_0020() local 617 int pid = fork(); test_mempcpy_0020() local 652 int pid = fork(); test_mempcpy_0030() local 698 int pid = fork(); test_strcpy_0020() local 745 int pid = fork(); test_memmove_0020() local 791 int pid = fork(); test_memcpy_0020() local 838 int pid = fork(); test_memset_0020() local 872 int pid = fork(); test_strlen_0010() local 904 int pid = fork(); test_strlen_0020() local [all...] |
H A D | fcntl_ext.c | 63 int pid = fork(); in open_0020() local 64 switch (pid) { in open_0020() 72 waitpid(pid, &status, WUNTRACED); in open_0020() 76 kill(pid, SIGCONT); in open_0020() 97 int pid = fork(); in open_0030() local 98 switch (pid) { in open_0030() 106 waitpid(pid, &status, WUNTRACED); in open_0030() 110 kill(pid, SIGCONT); in open_0030() 159 int pid = fork(); in openat_0020() local 160 switch (pid) { in openat_0020() 193 int pid = fork(); openat_0030() local 256 int pid = fork(); open64_0020() local 290 int pid = fork(); open64_0030() local 352 int pid = fork(); openat64_0020() local 386 int pid = fork(); openat64_0030() local [all...] |
/third_party/backends/sanei/ |
H A D | sanei_thread.c | 118 sanei_thread_set_invalid( SANE_Pid *pid ) in sanei_thread_set_invalid() 123 *pid = (pthread_t) 0; in sanei_thread_set_invalid() 125 pid->p = 0; in sanei_thread_set_invalid() 128 *pid = (pthread_t) -1; in sanei_thread_set_invalid() 135 sanei_thread_is_valid( SANE_Pid pid ) in sanei_thread_is_valid() 141 if (pid == 0) in sanei_thread_is_valid() 143 if (pid.p == 0) in sanei_thread_is_valid() 147 if (pid == (SANE_Pid) -1) in sanei_thread_is_valid() 159 sanei_thread_pid_to_long( SANE_Pid pid ) in sanei_thread_pid_to_long() 165 rc = (long) pid; in sanei_thread_pid_to_long() 218 SANE_Pid pid; sanei_thread_begin() local 234 sanei_thread_waitpid( SANE_Pid pid, int *status ) sanei_thread_waitpid() argument 242 sanei_thread_sendsig( SANE_Pid pid, int sig ) sanei_thread_sendsig() argument 271 SANE_Pid pid; sanei_thread_begin() local 291 sanei_thread_waitpid( SANE_Pid pid, int *status ) sanei_thread_waitpid() argument 302 sanei_thread_sendsig( SANE_Pid pid, int sig ) sanei_thread_sendsig() argument 388 eval_wp_result( SANE_Pid pid, int wpres, int pf ) eval_wp_result() argument 472 sanei_thread_sendsig( SANE_Pid pid, int sig ) sanei_thread_sendsig() argument 484 sanei_thread_waitpid( SANE_Pid pid, int *status ) sanei_thread_waitpid() argument [all...] |
/third_party/ltp/testcases/kernel/controllers/cpuctl_fj/ |
H A D | run_cpuctl_test_fj.sh | 132 ps -eo pid,rtprio > /tmp/pids_file1 & 138 while read pid 140 task=`cat $CPUCTL/tasks | grep "\b$pid\b"` 285 pid=$! 287 echo $pid > $CPUCTL/tmp/tasks 289 /bin/kill -s SIGUSR1 $pid 291 /bin/kill -s SIGUSR1 $pid 292 wait $pid 313 pid=$! 315 echo $pid > [all...] |
/foundation/communication/wifi/wifi/services/wifi_standard/wifi_framework/wifi_manage/wifi_common/ |
H A D | wifi_permission_helper.cpp | 28 int WifiPermissionHelper::VerifyPermission(const std::string &permissionName, const int &pid, in VerifyPermission() argument 34 if (uid == static_cast<int>(getuid()) && pid == static_cast<int>(getpid())) { in VerifyPermission() 49 LOGE("has no permission_name=%{public}s, pid=%{public}d, uid=%{public}d", permissionName.c_str(), pid, uid); in VerifyPermission() 54 int WifiPermissionHelper::VerifySameProcessPermission(const int &pid, const int &uid) in VerifySameProcessPermission() argument 59 if (uid == static_cast<int>(getuid()) && pid == static_cast<int>(getpid())) { in VerifySameProcessPermission() 66 int WifiPermissionHelper::VerifySetWifiInfoPermission(const int &pid, const int &uid) in VerifySetWifiInfoPermission() argument 68 if (VerifyPermission("ohos.permission.SET_WIFI_INFO", pid, uid, 0) == PERMISSION_DENIED) { in VerifySetWifiInfoPermission() 74 int WifiPermissionHelper::VerifyGetWifiInfoPermission(const int &pid, const int &uid) in VerifyGetWifiInfoPermission() argument 76 if (VerifyPermission("ohos.permission.GET_WIFI_INFO", pid, ui in VerifyGetWifiInfoPermission() 82 VerifySetWifiConfigPermission(const int &pid, const int &uid) VerifySetWifiConfigPermission() argument 90 VerifyGetWifiConfigPermission(const int &pid, const int &uid) VerifyGetWifiConfigPermission() argument 98 VerifyGetScanInfosPermission(const int &pid, const int &uid) VerifyGetScanInfosPermission() argument 106 VerifyGetWifiLocalMacPermission(const int &pid, const int &uid) VerifyGetWifiLocalMacPermission() argument 114 VerifyWifiConnectionPermission(const int &pid, const int &uid) VerifyWifiConnectionPermission() argument 122 VerifyGetWifiDirectDevicePermission(const int &pid, const int &uid) VerifyGetWifiDirectDevicePermission() argument 130 VerifyManageWifiHotspotPermission(const int &pid, const int &uid) VerifyManageWifiHotspotPermission() argument 138 VerifyGetWifiPeersMacPermission(const int &pid, const int &uid) VerifyGetWifiPeersMacPermission() argument 146 VerifyGetWifiPeersMacPermissionEx(const int &pid, const int &uid, const int &tokenId) VerifyGetWifiPeersMacPermissionEx() argument 154 VerifyGetWifiInfoInternalPermission(const int &pid, const int &uid) VerifyGetWifiInfoInternalPermission() argument 162 VerifyManageWifiHotspotExtPermission(const int &pid, const int &uid) VerifyManageWifiHotspotExtPermission() argument [all...] |
H A D | wifi_auth_center.cpp | 79 int WifiAuthCenter::VerifySameProcessPermission(const int &pid, const int &uid) in VerifySameProcessPermission() argument 84 return WifiPermissionHelper::VerifySameProcessPermission(pid, uid); in VerifySameProcessPermission() 87 int WifiAuthCenter::VerifySetWifiInfoPermission(const int &pid, const int &uid) in VerifySetWifiInfoPermission() argument 92 return WifiPermissionHelper::VerifySetWifiInfoPermission(pid, uid); in VerifySetWifiInfoPermission() 95 int WifiAuthCenter::VerifyGetWifiInfoPermission(const int &pid, const int &uid) in VerifyGetWifiInfoPermission() argument 100 return WifiPermissionHelper::VerifyGetWifiInfoPermission(pid, uid); in VerifyGetWifiInfoPermission() 103 int WifiAuthCenter::VerifyGetScanInfosPermission(const int &pid, const int &uid) in VerifyGetScanInfosPermission() argument 108 return WifiPermissionHelper::VerifyGetScanInfosPermission(pid, uid); in VerifyGetScanInfosPermission() 111 int WifiAuthCenter::VerifyGetWifiLocalMacPermission(const int &pid, const int &uid) in VerifyGetWifiLocalMacPermission() argument 116 return WifiPermissionHelper::VerifyGetWifiLocalMacPermission(pid, ui in VerifyGetWifiLocalMacPermission() 119 VerifyWifiConnectionPermission(const int &pid, const int &uid) VerifyWifiConnectionPermission() argument 127 VerifySetWifiConfigPermission(const int &pid, const int &uid) VerifySetWifiConfigPermission() argument 135 VerifyGetWifiConfigPermission(const int &pid, const int &uid) VerifyGetWifiConfigPermission() argument 143 VerifyGetWifiDirectDevicePermission(const int &pid, const int &uid) VerifyGetWifiDirectDevicePermission() argument 151 VerifyManageWifiHotspotPermission(const int &pid, const int &uid) VerifyManageWifiHotspotPermission() argument 159 VerifyGetWifiPeersMacPermission(const int &pid, const int &uid) VerifyGetWifiPeersMacPermission() argument 167 VerifyGetWifiPeersMacPermissionEx(const int &pid, const int &uid, const int &tokenId) VerifyGetWifiPeersMacPermissionEx() argument 175 VerifyGetWifiInfoInternalPermission(const int &pid, const int &uid) VerifyGetWifiInfoInternalPermission() argument 183 VerifyManageWifiHotspotExtPermission(const int &pid, const int &uid) VerifyManageWifiHotspotExtPermission() argument [all...] |
H A D | wifi_permission_helper.h | 33 * @param pid - Process ID.[in] 37 static int VerifyPermission(const std::string &permissionName, const int &pid, const int &uid, const int &tokenId); 42 * @param pid - Process ID.[in] 46 static int VerifySameProcessPermission(const int &pid, const int &uid); 51 * @param pid - Process ID.[in] 55 static int VerifySetWifiInfoPermission(const int &pid, const int &uid); 60 * @param pid - Process ID.[in] 64 static int VerifyGetWifiInfoPermission(const int &pid, const int &uid); 69 * @param pid - Process ID.[in] 73 static int VerifyGetScanInfosPermission(const int &pid, cons [all...] |
H A D | wifi_auth_center.h | 52 * @param pid - the app's process id 56 int VerifySameProcessPermission(const int &pid, const int &uid); 61 * @param pid - the app's process id 65 int VerifySetWifiInfoPermission(const int &pid, const int &uid); 70 * @param pid - the app's process id 74 int VerifyGetWifiInfoPermission(const int &pid, const int &uid); 79 * @param pid - the app's process id 83 int VerifyGetScanInfosPermission(const int &pid, const int &uid); 88 * @param pid - the app's process id 92 int VerifyGetWifiLocalMacPermission(const int &pid, cons [all...] |
/foundation/resourceschedule/ffrt/tools/ffrt_trace_process/ |
H A D | ffrt_trace_recover.py | 51 def make_costart_fake_log(mark, pid, label, gid, tid, tname, prio): 58 tname, tid, pid, cpu_id, timestamp, tname, tid, prio, label, pid, gid, prio) 63 def make_coyield_fake_log(mark, pid, label, gid, tid, tname, prio): 70 label, pid, gid, pid, cpu_id, timestamp, label, pid, gid, prio, tname, tid, prio) 74 (label, pid, gid, pid, cpu_id, timestamp, pid) [all...] |
/third_party/ltp/testcases/kernel/numa/ |
H A D | numa01.sh | 30 local pid=$1 32 echo $(numastat -p $pid | sed '3q;d' | awk -F '[[:space:]][[:space:]]+' \ 43 local pid=$1 44 local index=$(echo "$(get_node_index $pid $2)") 46 local numstat=$(numastat -p $pid |awk '/^Total/ {print $'$index'}') 58 local pid=$1 60 local state=$(awk '{print $3}' /proc/$pid/stat) 96 pid=$! 98 TST_RETRY_FUNC "check_for_support_numa $pid" 0 100 mem_curr=$(get_mem_cur $pid [all...] |
/foundation/resourceschedule/frame_aware_sched/frameworks/core/frame_aware_policy/src/ |
H A D | intellisense_server.cpp | 99 void IntelliSenseServer::NewForeground(int pid, int uid) in NewForeground() argument 105 RME_LOGI("[ReportMessage]pid %{public}d change to foreground.", pid); in NewForeground() 107 iter->SetUiTid(pid); in NewForeground() 144 void IntelliSenseServer::NewBackground(int pid) in NewBackground() argument 147 RME_LOGI("[ReportMessage]pid %{public}d change to background.", pid); in NewBackground() 149 if (iter->GetAppPid() != pid) { in NewBackground() 161 void IntelliSenseServer::NewAppRecord(int pid, int uid) in NewAppRecord() argument 165 RME_LOGI("[NewAppRecord]pid in NewAppRecord() 174 NewDiedProcess(int pid) NewDiedProcess() argument 192 GetRecordOfPid(int pid) GetRecordOfPid() argument 202 ReportRenderThread(const int pid, const int uid, int renderTid) ReportRenderThread() argument 228 ReportContinuousTask(const int pid, const int uid, const int status) ReportContinuousTask() argument 247 ReportWindowFocus(const int pid, const int uid, int isFocus) ReportWindowFocus() argument 272 ReportCgroupChange(const int pid, const int uid, const int oldGroup, const int newGroup) ReportCgroupChange() argument 297 ReportAppInfo(const int pid, const int uid, const std::string bundleName, ThreadState state) ReportAppInfo() argument 309 ReportProcessInfo(const int pid, const int uid, const std::string bundleName, ThreadState state) ReportProcessInfo() argument 350 AuthAppKilled(int pid) AuthAppKilled() argument 360 AuthForeground(int pid) AuthForeground() argument 372 AuthBackground(int pid) AuthBackground() argument [all...] |
/foundation/graphic/graphic_2d/rosen/test/render/render/unittest/cmd/ |
H A D | rs_message_processor_test.cpp | 58 uint32_t pid = 1;
in HWTEST_F() local 59 RSMessageProcessor::Instance().AddUIMessage(pid, nullptr);
in HWTEST_F() 63 pid = 0;
in HWTEST_F() 65 RSMessageProcessor::Instance().transactionMap_[pid] = transactionData;
in HWTEST_F() 66 RSMessageProcessor::Instance().AddUIMessage(pid, nullptr);
in HWTEST_F() 77 uint32_t pid = 1;
in HWTEST_F() local 78 RSMessageProcessor::Instance().AddUIMessage(pid, nullptr);
in HWTEST_F() 79 RSMessageProcessor::Instance().AddUIMessage(pid, nullptr);
in HWTEST_F() 82 RSMessageProcessor::Instance().HasTransaction(pid);
in HWTEST_F() 83 EXPECT_NE(nullptr, RSMessageProcessor::Instance().GetTransaction(pid));
in HWTEST_F() 98 uint32_t pid = 1; HWTEST_F() local 120 uint32_t pid = 1; HWTEST_F() local 142 uint32_t pid = 10; HWTEST_F() local [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/command/ |
H A D | rs_message_processor_test.cpp | 46 uint32_t pid = 1;
in HWTEST_F() local 47 RSMessageProcessor::Instance().AddUIMessage(pid, nullptr);
in HWTEST_F() 48 RSMessageProcessor::Instance().AddUIMessage(pid, nullptr);
in HWTEST_F() 51 RSMessageProcessor::Instance().HasTransaction(pid);
in HWTEST_F() 52 EXPECT_NE(nullptr, RSMessageProcessor::Instance().GetTransaction(pid));
in HWTEST_F() 78 uint32_t pid = 1;
in HWTEST_F() local 79 RSMessageProcessor::Instance().AddUIMessage(pid, nullptr);
in HWTEST_F() 83 pid = 0;
in HWTEST_F() 85 RSMessageProcessor::Instance().transactionMap_[pid] = transactionData;
in HWTEST_F() 86 RSMessageProcessor::Instance().AddUIMessage(pid, nullpt in HWTEST_F() 98 uint32_t pid = 1; HWTEST_F() local 120 uint32_t pid = 10; HWTEST_F() local 138 uint32_t pid = 1; HWTEST_F() local [all...] |
/third_party/ltp/include/ |
H A D | tst_sched.h | 21 static inline int sys_sched_setparam(pid_t pid, const struct sched_param *param) in sys_sched_setparam() argument 23 return tst_syscall(__NR_sched_setparam, pid, param); in sys_sched_setparam() 26 static inline int sys_sched_getparam(pid_t pid, struct sched_param *param) in sys_sched_getparam() argument 28 return tst_syscall(__NR_sched_getparam, pid, param); in sys_sched_getparam() 31 static inline int sys_sched_setscheduler(pid_t pid, int policy, const struct sched_param *param) in sys_sched_setscheduler() argument 33 return tst_syscall(__NR_sched_setscheduler, pid, policy, param); in sys_sched_setscheduler() 36 static inline int sys_sched_getscheduler(pid_t pid) in sys_sched_getscheduler() argument 38 return tst_syscall(__NR_sched_getscheduler, pid); in sys_sched_getscheduler() 41 static inline int libc_sched_setparam(pid_t pid, const struct sched_param *param) in libc_sched_setparam() argument 43 return TST_LIBC_SCHED_SCALL_(sched_setparam, pid, para in libc_sched_setparam() 46 libc_sched_getparam(pid_t pid, struct sched_param *param) libc_sched_getparam() argument 51 libc_sched_setscheduler(pid_t pid, int policy, const struct sched_param *param) libc_sched_setscheduler() argument 56 libc_sched_getscheduler(pid_t pid) libc_sched_getscheduler() argument [all...] |
/foundation/resourceschedule/qos_manager/services/src/ |
H A D | concurrent_task_controller.cpp | 69 pid_t pid = IPCSkeleton::GetInstance().GetCallingPid(); in RequestAuth() local 70 AuthSystemProcess(pid); in RequestAuth() 105 pid_t pid = IPCSkeleton::GetInstance().GetCallingPid(); in QueryInterval() local 117 QueryRenderServiceMain(uid, pid, queryRs); in QueryInterval() 120 QueryRenderServiceRender(uid, pid, queryRs); in QueryInterval() 126 QueryHardware(uid, pid, queryRs); in QueryInterval() 129 QueryExecutorStart(uid, pid, queryRs); in QueryInterval() 148 pid_t pid = IPCSkeleton::GetInstance().GetCallingPid(); in QueryUi() local 149 ForegroundAppRecord* record = GetRecordOfPid(pid); in QueryUi() 151 CONCUR_LOGD("Query ui with pid in QueryUi() 166 pid_t pid = IPCSkeleton::GetInstance().GetCallingPid(); QueryRender() local 214 QueryRenderServiceMain(int uid, int pid, IntervalReply& queryRs) QueryRenderServiceMain() argument 244 QueryRenderServiceRender(int uid, int pid, IntervalReply& queryRs) QueryRenderServiceRender() argument 267 QueryHardware(int uid, int pid, IntervalReply& queryRs) QueryHardware() argument 285 QueryExecutorStart(int uid, int pid, IntervalReply& queryRs) QueryExecutorStart() argument 311 pid_t pid = IPCSkeleton::GetInstance().GetCallingPid(); QueryHwc() local 508 NewForeground(int uid, int pid) NewForeground() argument 549 NewForegroundAppRecord(int pid, int uiTid, bool ddlEnabled) NewForegroundAppRecord() argument 564 NewBackground(int uid, int pid) NewBackground() argument 589 NewAppStart(int uid, int pid, const std::string& bundleName) NewAppStart() argument 608 AppKilled(int uid, int pid) AppKilled() argument 634 AuthSystemProcess(int pid) AuthSystemProcess() argument 647 ContinuousTaskProcess(int uid, int pid, int status) ContinuousTaskProcess() argument 661 FocusStatusProcess(int uid, int pid, int status) FocusStatusProcess() argument 973 ForegroundAppRecord(int pid, int uiTid, bool createGrp) ForegroundAppRecord() argument [all...] |
/foundation/multimedia/player_framework/services/services/sa_media/server/ |
H A D | media_server_manager.cpp | 64 dumpString += "pid = "; in WriteInfo() 227 pid_t pid = IPCSkeleton::GetCallingPid(); in CreatePlayerStubObject() local 228 playerStubMap_[object] = pid; in CreatePlayerStubObject() 231 playerStubPtrMap_[playerStub] = pid; in CreatePlayerStubObject() 238 dumper.pid_ = pid; in CreatePlayerStubObject() 242 MEDIA_LOGD("The number of player services(%{public}zu) pid(%{public}d).", in CreatePlayerStubObject() 243 playerStubMap_.size(), pid); in CreatePlayerStubObject() 259 pid_t pid = IPCSkeleton::GetCallingPid(); in CreateRecorderStubObject() local 260 recorderStubMap_[object] = pid; in CreateRecorderStubObject() 266 dumper.pid_ = pid; in CreateRecorderStubObject() 289 pid_t pid = IPCSkeleton::GetCallingPid(); CreateRecorderProfilesStubObject() local 305 pid_t pid = IPCSkeleton::GetCallingPid(); CreateTransCoderStubObject() local 334 pid_t pid = IPCSkeleton::GetCallingPid(); CreateAVMetadataHelperStubObject() local 360 pid_t pid = IPCSkeleton::GetCallingPid(); CreateScreenCaptureStubObject() local 382 pid_t pid = IPCSkeleton::GetCallingPid(); CreateScreenCaptureMonitorStubObject() local 404 pid_t pid = IPCSkeleton::GetCallingPid(); CreateScreenCaptureControllerStubObject() local 420 DestroyAVCodecStub(StubType type, sptr<IRemoteObject> object, pid_t pid) DestroyAVCodecStub() argument 452 DestroyAVPlayerStub(StubType type, sptr<IRemoteObject> object, pid_t pid) DestroyAVPlayerStub() argument 496 DestroyAVTransCoderStub(StubType type, sptr<IRemoteObject> object, pid_t pid) DestroyAVTransCoderStub() argument 516 DestroyAVRecorderStub(StubType type, sptr<IRemoteObject> object, pid_t pid) DestroyAVRecorderStub() argument 548 DestroyAVScreenCaptureStub(StubType type, sptr<IRemoteObject> object, pid_t pid) DestroyAVScreenCaptureStub() argument 596 pid_t pid = IPCSkeleton::GetCallingPid(); DestroyStubObject() local 626 DestroyAVScreenCaptureStubForPid(pid_t pid) DestroyAVScreenCaptureStubForPid() argument 664 DestroyAVTranscoderStubForPid(pid_t pid) DestroyAVTranscoderStubForPid() argument 678 DestroyAVCodecStubForPid(pid_t pid) DestroyAVCodecStubForPid() argument 703 DestroyAVPlayerStubForPid(pid_t pid) DestroyAVPlayerStubForPid() argument 738 DestroyAVRecorderStubForPid(pid_t pid) DestroyAVRecorderStubForPid() argument 763 DestroyStubObjectForPid(pid_t pid) DestroyStubObjectForPid() argument 788 DestroyDumperForPid(pid_t pid) DestroyDumperForPid() argument [all...] |
/third_party/cups-filters/filter/foomatic-rip/ |
H A D | process.c | 37 pid_t pid; member 49 void add_process(const char *name, int pid, int isgroup) in add_process() argument 53 if (procs[i].pid == -1) { in add_process() 55 procs[i].pid = pid; in add_process() 63 int find_process(int pid) in find_process() argument 67 if (procs[i].pid == pid) in find_process() 76 procs[i].pid = -1; in clear_proc_list() 84 if (procs[i].pid in kill_all_processes() 99 pid_t pid; _start_process() local 202 wait_for_process(int pid) wait_for_process() argument 226 int pid = start_system_process(name, command, NULL, NULL); run_system_process() local [all...] |
/third_party/ltp/testcases/kernel/sched/hyperthreading/ht_affinity/ |
H A D | ht_affinity.c | 29 int set_affinity(pid_t pid, unsigned int len, unsigned long *mask_ptr) 30 pid - pid of the process whose affinity is desired to be set. 34 int get_affinity(pid_t pid, unsigned int len, unsigned long *mask_ptr) 35 pid - pid of the process whose affinity is being read. 43 #define sched_setaffinity(pid, cpusetsize, mask) syscall(__NR_sched_setaffinity, pid, cpusetsize, mask) 44 #define sched_getaffinity(pid, cpusetsize, mask) syscall(__NR_sched_getaffinity, pid, cpusetsiz 52 pid_t pid; HT_SetAffinity() local 129 get_porc_affinity(pid_t pid) get_porc_affinity() argument 151 pid_t pid; HT_GetAffinity() local 183 pid_t pid; HT_InheritAffinity() local [all...] |
/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | session_manager_agent_controller_test.cpp | 62 int32_t pid = 65535; in HWTEST_F() local 64 windowManagerAgent, type, pid)); in HWTEST_F() 66 windowManagerAgent, type, pid)); in HWTEST_F() 78 int32_t pid = 65535; in HWTEST_F() local 80 windowManagerAgent, type, pid)); in HWTEST_F() 83 windowManagerAgent, type, pid)); in HWTEST_F() 95 int32_t pid = 65535; in HWTEST_F() local 97 windowManagerAgent, type, pid)); in HWTEST_F() 101 windowManagerAgent, type, pid)); in HWTEST_F() 113 int32_t pid in HWTEST_F() local 130 int32_t pid = 65535; HWTEST_F() local 149 int32_t pid = 65535; HWTEST_F() local 166 int32_t pid = 65535; HWTEST_F() local 184 int32_t pid = 65535; HWTEST_F() local 200 int32_t pid = 65535; HWTEST_F() local 216 int32_t pid = 65535; HWTEST_F() local 231 int32_t pid = 65535; HWTEST_F() local [all...] |
/foundation/resourceschedule/frame_aware_sched/interfaces/innerkits/frameintf/ |
H A D | frame_msg_intf.cpp | 68 void FrameMsgIntf::ReportWindowFocus(const int pid, const int uid, const int isFocus) in ReportWindowFocus() argument 75 taskQueue_->submit([pid, uid, isFocus] { in ReportWindowFocus() 76 IntelliSenseServer::GetInstance().ReportWindowFocus(pid, uid, isFocus); in ReportWindowFocus() 80 void FrameMsgIntf::ReportRenderThread(const int pid, const int uid, const int renderTid) in ReportRenderThread() argument 83 RME_LOGI("[ReportRenderThread]:render get %{public}d with render %{pubilc}d", pid, renderTid); in ReportRenderThread() 88 taskQueue_->submit([pid, uid, renderTid] { in ReportRenderThread() 89 IntelliSenseServer::GetInstance().ReportRenderThread(pid, uid, renderTid); in ReportRenderThread() 93 void FrameMsgIntf::ReportAppInfo(const int pid, const int uid, const std::string bundleName, ThreadState state) in ReportAppInfo() argument 100 RME_LOGI("ReportProcessInfo pid is %{public}d, uid is %{public}d", pid, ui in ReportAppInfo() 106 ReportProcessInfo(const int pid, const int uid, const std::string bundleName, ThreadState state) ReportProcessInfo() argument 118 ReportCgroupChange(const int pid, const int uid, const int oldGroup, const int newGroup) ReportCgroupChange() argument 132 ReportContinuousTask(const int pid, const int uid, const int status) ReportContinuousTask() argument 144 ReportSlideEvent(const int pid, const int uid, const int64_t status) ReportSlideEvent() argument [all...] |
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | wait4.c | 36 pid_t pid = fork(); in wait4_0100() local 37 if (pid > 0) { in wait4_0100() 41 pid_t wait4_for_pind = wait4(pid, &status, options, &ru); in wait4_0100() 42 if (wait4_for_pind != pid) { in wait4_0100() 43 t_error("%s wait4 get pid is %d are not want %d\n", __func__, wait4_for_pind, pid); in wait4_0100() 48 } else if (pid == 0) { in wait4_0100() 63 pid_t pid = fork(); in wait4_0200() local 64 if (pid > 0) { in wait4_0200() 68 pid_t wait4_for_pind = wait4(pid, in wait4_0200() 90 pid_t pid = fork(); wait4_time64_0100() local [all...] |
/foundation/communication/ipc/ipc/test/auxiliary/native/src/ |
H A D | ipc_test_helper.cpp | 95 pid_t pid = INVALID_PID; in GetPidByName() local 99 return pid; in GetPidByName() 135 if (sscanf_s(ptr->d_name, "%d", &pid) <= 0) { in GetPidByName() 145 return pid; in GetPidByName() 151 ZLOGD(LABEL, "current pid %d\n", current); in GetChildPids() 178 ZLOGD(LABEL, "child pid %d", child); in GetChildPids() 222 ZLOGD(LABEL, "start %s done, pid:%d\n", name.c_str(), execPid); in StartExecutable() 226 bool IPCTestHelper::StopExecutable(pid_t pid) in StopExecutable() argument 228 if (pid != INVALID_PID) { in StopExecutable() 229 ZLOGD(LABEL, "kill pid in StopExecutable() 238 pid_t pid = GetPidByName(name); StopExecutable() local 249 pid_t pid = GetTestAppPid(IPC_TEST_SAMGR); PrepareTestSuite() local 269 AddTestAppPid(const std::string &appName, const int &pid) AddTestAppPid() argument 286 int pid = INVALID_PID; StartTestApp() local 312 pid_t pid = GetTestAppPid(appId); StopTestApp() local 326 int pid = INVALID_PID; GetTestAppPid() local 345 pid_t pid = getpid(); GetPid() local [all...] |