Home
last modified time | relevance | path

Searched refs:pid (Results 901 - 925 of 3845) sorted by relevance

1...<<31323334353637383940>>...154

/third_party/ltp/testcases/kernel/controllers/cpuctl/
H A Dcpuctl_test02.c95 pid_t pid; in main() local
151 pid = getpid(); in main()
152 write_to_file(mytaskfile, "a", pid); /* Assign the task to it's group */ in main()
277 pid_t pid = getpid(); in migrate_task() local
278 return (write_to_file(target, "a", pid)); in migrate_task()
/third_party/musl/porting/liteos_a/user/src/misc/
H A Dsyslog.c95 int pid; in _vsyslog() local
108 pid = (log_opt & LOG_PID) ? getpid() : 0; in _vsyslog()
110 priority, timebuf, &hlen, log_ident, "["+!pid, pid, "]"+!pid); in _vsyslog()
/third_party/musl/src/misc/
H A Dsyslog.c96 int pid; in _vsyslog() local
109 pid = (log_opt & LOG_PID) ? getpid() : 0; in _vsyslog()
111 priority, timebuf, &hlen, log_ident, "["+!pid, pid, "]"+!pid); in _vsyslog()
/third_party/ltp/testcases/kernel/syscalls/open/
H A Dopen12.c168 pid_t pid; in test_cloexec() local
181 pid = tst_fork(); in test_cloexec()
182 if (pid < 0) in test_cloexec()
185 if (pid == 0) { in test_cloexec()
192 if (wait(&status) != pid) in test_cloexec()
/third_party/ltp/testcases/kernel/mce-test/stress/tools/fs-metadata/
H A Dfs-metadata.sh45 for pid in $(cat $K_THREADS_PID)
47 k_log "killing k-thread $pid"
48 run_quiet kill -9 $pid
212 export K_THREADS_PID=$K_VAR/k-threads.pid
213 export K_FS_METADATA_PID=$K_VAR/fs_metadata.pid
/third_party/ltp/testcases/kernel/mem/hugetlb/hugeshmctl/
H A Dhugeshmctl01.c126 pid_t pid; in stat_setup_1() local
129 switch (pid = SAFE_FORK()) { in stat_setup_1()
154 * by looking at the pid of the creator, the segement size,
159 pid_t pid; in func_stat() local
162 /* check perm, pid, nattach and size */ in func_stat()
163 pid = getpid(); in func_stat()
165 if (buf.shm_cpid != pid) { in func_stat()
166 tst_res(TFAIL, "creator pid is incorrect"); in func_stat()
194 tst_res(TPASS, "pid, size, # of attaches and mode are correct " in func_stat()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_close/
H A D2-1.c46 pid_t pid; in main() local
71 pid = fork(); in main()
72 if (pid == -1) { in main()
76 if (pid == 0) { in main()
89 to_child[PIPE_WRITE], pid); in main()
/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_unlink/
H A D2-2.c49 pid_t pid; in main() local
71 pid = fork(); in main()
72 if (pid == -1) { in main()
76 if (pid == 0) { in main()
87 to_child[PIPE_WRITE], pid); in main()
/base/hiviewdfx/hicollie/frameworks/native/
H A Dwatchdog_task.cpp206 int32_t pid = getprocpid(); in SendEvent() local
207 if (IsProcessDebug(pid)) { in SendEvent()
208 XCOLLIE_LOGI("heap dump or debug for %{public}d, don't report.", pid); in SendEvent()
218 watchdogTid = pid; in SendEvent()
238 "PID", pid, "TID", watchdogTid, "TGID", gid, "UID", uid, "MODULE_NAME", name, in SendEvent()
244 "PID", pid, "TID", watchdogTid, "TGID", gid, "UID", uid, "MODULE_NAME", name, in SendEvent()
258 int32_t pid = getprocpid(); in SendXCollieEvent() local
259 if (IsProcessDebug(pid)) { in SendXCollieEvent()
260 XCOLLIE_LOGI("heap dump or debug for %{public}d, don't report.", pid); in SendXCollieEvent()
289 int result = HiSysEventWrite(HiSysEvent::Domain::FRAMEWORK, eventName, HiSysEvent::EventType::FAULT, "PID", pid, in SendXCollieEvent()
[all...]
/base/hiviewdfx/hiview/plugins/unified_collector/storage/
H A Dcpu_storage.cpp43 const std::string COLUMN_PID = "pid";
62 return (cpuCollectionInfo.pid > 0) && (!cpuCollectionInfo.procName.empty()); in IsValidProcess()
89 HIVIEW_LOGW("invalid process num=%{public}u, pid=%{public}d, name=%{public}s", in NeedStoreInDb()
90 invalidProcNum, cpuCollectionInfo.pid, cpuCollectionInfo.procName.c_str()); in NeedStoreInDb()
106 int32_t pid = cpuCollectionInfo.pid; in IsForegroundStateInCollectionPeriod() local
107 ProcessState procState = ProcessStatus::GetInstance().GetProcessState(pid); in IsForegroundStateInCollectionPeriod()
111 uint64_t procForegroundTime = ProcessStatus::GetInstance().GetProcessLastForegroundTime(pid); in IsForegroundStateInCollectionPeriod()
119 static_cast<int32_t>(ProcessStatus::GetInstance().GetProcessState(cpuCollectionInfo.pid)); in GetPowerProcessStateInCollectionPeriod()
124 processState += (memCgProcs.find(cpuCollectionInfo.pid) ! in GetPowerProcessStateInCollectionPeriod()
[all...]
/base/security/access_token/services/privacymanager/src/service/
H A Dprivacy_manager_stub.cpp145 int32_t pid = data.ReadInt32(); in StartUsingPermissionInner() local
147 reply.WriteInt32(this->StartUsingPermission(tokenId, pid, permissionName)); in StartUsingPermissionInner()
157 int32_t pid = data.ReadInt32(); in StartUsingPermissionCallbackInner() local
165 reply.WriteInt32(this->StartUsingPermission(tokenId, pid, permissionName, callback)); in StartUsingPermissionCallbackInner()
180 int32_t pid = data.ReadInt32(); in StopUsingPermissionInner() local
182 reply.WriteInt32(this->StopUsingPermission(tokenId, pid, permissionName)); in StopUsingPermissionInner()
347 int32_t pid = data.ReadInt32(); in UpdateSecCompEnhanceInner() local
349 reply.WriteInt32(this->UpdateSecCompEnhance(pid, seqNum)); in UpdateSecCompEnhanceInner()
359 int32_t pid = data.ReadInt32(); in GetSecCompEnhanceInner() local
361 int32_t result = this->GetSecCompEnhance(pid, parce in GetSecCompEnhanceInner()
[all...]
/base/security/dlp_permission_service/services/dlp_permission/sa/adapt/
H A Dapp_state_observer.cpp71 DLP_LOG_INFO(LABEL, "ExecuteCallbackAsync appInfo bundleName:%{public}s,appIndex:%{public}d,pid:%{public}d", in UninstallAllDlpSandboxForUser()
72 appInfo.bundleName.c_str(), appInfo.appIndex, appInfo.pid); in UninstallAllDlpSandboxForUser()
306 if (RemoveCallbackListener(processData.pid)) { in OnProcessDied()
323 DLP_LOG_INFO(LABEL, "ExecuteCallbackAsync appInfo bundleName:%{public}s,appIndex:%{public}d,pid:%{public}d", in OnProcessDied()
324 appInfo.bundleName.c_str(), appInfo.appIndex, appInfo.pid); in OnProcessDied()
370 bool AppStateObserver::RemoveCallbackListener(int32_t pid) in RemoveCallbackListener() argument
373 auto iter = callbackList_.find(pid); in RemoveCallbackListener()
377 DLP_LOG_INFO(LABEL, "erase pid %{public}d", pid); in RemoveCallbackListener()
378 callbackList_.erase(pid); in RemoveCallbackListener()
385 AddCallbackListener(int32_t pid) AddCallbackListener() argument
[all...]
/base/startup/appspawn/test/unittest/app_spawn_standard_test/
H A Dapp_spawn_cgroup_test.cpp54 appInfo->pid = 33; // 33 in CreateTestAppInfo()
123 // write pid in HWTEST_F()
131 pid_t pid = 0; in HWTEST_F() local
133 while (fscanf_s(file, "%d\n", &pid) == 1 && pid > 0) { in HWTEST_F()
134 APPSPAWN_LOGV("pid %{public}d %{public}d", pid, appInfo->pid); in HWTEST_F()
135 if (pid == appInfo->pid) { in HWTEST_F()
[all...]
/third_party/alsa-utils/alsactl/
H A Ddaemon.c316 long pid; in state_daemon_kill() local
333 pid = read_pid_file(pidfile); in state_daemon_kill()
334 if (pid > 0) { in state_daemon_kill()
335 if (kill(pid, sig) >= 0) in state_daemon_kill()
344 long pid; in check_another_instance() local
346 pid = read_pid_file(pidfile); in check_another_instance()
347 if (pid >= 0) { in check_another_instance()
349 if (kill(pid, SIGUSR1) >= 0) { in check_another_instance()
351 pid = read_pid_file(pidfile); in check_another_instance()
352 if (pid > in check_another_instance()
[all...]
/third_party/python/Lib/
H A Dsocketserver.py573 pid, _ = os.waitpid(-1, 0)
574 self.active_children.discard(pid)
582 for pid in self.active_children.copy():
585 pid, _ = os.waitpid(pid, flags)
586 # if the child hasn't exited yet, pid will be 0 and ignored by
588 self.active_children.discard(pid)
591 self.active_children.discard(pid)
611 pid = os.fork()
612 if pid
[all...]
/third_party/toybox/toys/pending/
H A Dtcpsvd.c56 int pid; member
89 // Insert pid, ip and fd in the list.
90 static void insert(struct list_pid **l, int pid, char *addr) in insert() argument
93 newnode->pid = pid; in insert()
123 static char *delete(struct list_pid **pids, int pid) in delete() argument
131 if (head->pid == pid) { in delete()
268 pid_t pid; in tcpsvd_main() local
354 if (!(pid in tcpsvd_main()
[all...]
/base/hiviewdfx/faultloggerd/test/unittest/dump_catcher/
H A Ddumpcatcher_interfaces_test.cpp124 int pid = fork(); in ForkMultiThreadProcess() local
125 if (pid == 0) { in ForkMultiThreadProcess()
128 } else if (pid < 0) { in ForkMultiThreadProcess()
131 g_processId = pid; in ForkMultiThreadProcess()
132 GTEST_LOG_(INFO) << "ForkMultiThreadProcess success, pid: " << pid; in ForkMultiThreadProcess()
251 GTEST_LOG_(INFO) << "process:" << oneProcessName << " pid is empty, skip"; in HWTEST_F()
529 GTEST_LOG_(INFO) << "apply:" << apply << ", pid:" << applyPid; in HWTEST_F()
548 GTEST_LOG_(INFO) << "apply:" << apply << ", pid:" << applyPid; in HWTEST_F()
567 GTEST_LOG_(INFO) << "apply:" << apply << ", pid in HWTEST_F()
712 pid_t pid = fork(); HWTEST_F() local
828 pid_t pid = fork(); HWTEST_F() local
[all...]
/test/xts/acts/commonlibrary/thirdparty/musl/entry/src/main/cpp/
H A Dsignalndk.cpp90 pthread_t pid; in SigMain() local
92 pthread_create(&pid, nullptr, testfunction, &siginfo); in SigMain()
93 pthread_detach(pid); in SigMain()
99 pthread_t pid; in SigMainInt() local
101 pthread_create(&pid, nullptr, testfunction, &siginfo); in SigMainInt()
102 pthread_detach(pid); in SigMainInt()
108 pthread_t pid; in SigMainNull() local
110 pthread_create(&pid, nullptr, testfunction, nullptr); in SigMainNull()
111 pthread_detach(pid); in SigMainNull()
117 pthread_t pid; in SigMainString() local
442 pthread_t pid; SigMainWait() local
463 pthread_t pid; SigMainWaitinfo() local
[all...]
/third_party/ltp/include/
H A Dtst_safe_macros.h144 int safe_setpgid(const char *file, const int lineno, pid_t pid, pid_t pgid);
146 #define SAFE_SETPGID(pid, pgid) \
147 safe_setpgid(__FILE__, __LINE__, (pid), (pgid))
149 pid_t safe_getpgid(const char *file, const int lineno, pid_t pid);
151 #define SAFE_GETPGID(pid) \
152 safe_getpgid(__FILE__, __LINE__, (pid))
210 #define SAFE_WAITPID(pid, status, opts) \
211 safe_waitpid(__FILE__, __LINE__, NULL, (pid), (status), (opts))
213 #define SAFE_KILL(pid, sig) \
214 safe_kill(__FILE__, __LINE__, NULL, (pid), (si
[all...]
/base/hiviewdfx/hidumper/interfaces/native/innerkits/include/
H A Ddump_common_utils.h41 // get subNodes information by pid.
43 // get subDir information by pid.
50 // get process name by pid.
51 static bool GetProcessNameByPid(int pid, std::string &name);
52 // get process information by pid.
53 static bool GetProcessInfo(int pid, PidInfo &info);
57 static bool IsUserPid(const std::string &pid);
/base/hiviewdfx/faultloggerd/interfaces/innerkits/unwinder/include/
H A Ddfx_hap.h32 bool ParseHapInfo(pid_t pid, uint64_t pc, uintptr_t methodid, std::shared_ptr<DfxMap> map,
37 bool ParseHapMemInfo(pid_t pid, uint64_t pc, uintptr_t methodid, std::shared_ptr<DfxMap> map,
41 bool ParseHapMemData(const pid_t pid, std::shared_ptr<DfxMap> map);
/base/hiviewdfx/faultloggerd/test/unittest/panic_handler/
H A Dpanic_handler_test.cpp58 pid_t pid = fork(); in ForkAndTriggerRustPanic() local
59 if (pid < 0) { in ForkAndTriggerRustPanic()
62 } else if (pid == 0) { in ForkAndTriggerRustPanic()
/base/request/request/services/include/
H A Dapplication_state_observer.h30 using RegCallBack = std::function<void(int32_t uid, int32_t state, int32_t pid)>;
49 void RunAppStateCallback(int32_t uid, int32_t state, int32_t pid);
50 void RunProcessStateCallback(int32_t uid, int32_t state, int32_t pid);
/base/security/access_token/services/privacymanager/include/seccomp/
H A Dprivacy_sec_comp_enhance_agent.h52 int32_t UpdateSecCompEnhance(int32_t pid, uint32_t seqNum);
53 int32_t GetSecCompEnhance(int32_t pid, SecCompEnhanceData& enhanceData);
56 void RemoveSecCompEnhance(int pid);
/base/sensors/sensor/frameworks/native/include/
H A Di_sensor_service.h44 virtual ErrCode SuspendSensors(int32_t pid) = 0;
45 virtual ErrCode ResumeSensors(int32_t pid) = 0;
46 virtual ErrCode GetActiveInfoList(int32_t pid, std::vector<ActiveInfo> &activeInfoList) = 0;

Completed in 17 milliseconds

1...<<31323334353637383940>>...154