/third_party/ltp/testcases/open_posix_testsuite/conformance/interfaces/mq_timedreceive/ |
H A D | 8-1.c | 50 pid_t pid; in main() local 63 pid = fork(); in main() 64 if (pid != 0) { in main() 94 kill(pid, SIGABRT); in main()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | getprocpid.c | 27 * @tc.desc : Get the pid by parsing the proc information 41 * @tc.desc : Get the pid by parsing the proc information 72 pid_t pid = getprocpid(); in child_func() local 73 if (pid == parent) { in child_func() 81 * @tc.desc : Get the pid by parsing the proc information 167 pid_t pid = getproctid(); in child_func_tid() local 168 if (pid == parent) { in child_func_tid()
|
/third_party/skia/third_party/externals/tint/src/ast/ |
H A D | module.cc | 27 Module::Module(ProgramID pid, const Source& src) : Base(pid, src) {} in Module() argument 29 Module::Module(ProgramID pid, in Module() argument 32 : Base(pid, src), global_declarations_(std::move(global_decls)) { in Module()
|
/third_party/rust/crates/rustix/src/process/ |
H A D | procctl.rs | 31 /// `None` represents the current process. `Some((IdType::Pid, pid))` represents the process 32 /// with pid `pid`. `Some((IdType::Pgid, pgid))` represents the control processes belonging to 158 /// The process is being traced by the process whose pid is stored in the first 175 pid => { in trace_status() 176 let pid = unsafe { Pid::from_raw(pid as RawPid) }.ok_or(io::Errno::RANGE)?; in trace_status() 177 Ok(TracingStatus::BeingTraced(pid)) in trace_status()
|
/third_party/ltp/include/ |
H A D | tst_safe_macros.h | 144 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...] |
/foundation/resourceschedule/resource_schedule_service/ressched/plugins/cgroup_sched_plugin/framework/sched_controller/ |
H A D | cgroup_adjuster.cpp | 151 int pid = getpid(); in AdjustSelfProcessGroup() local 153 int ret = CgroupSetting::SetThreadGroupSchedPolicy(pid, group); in AdjustSelfProcessGroup() 155 CGS_LOGE("%{public}s set %{public}d to group %{public}d failed, ret=%{public}d!", __func__, pid, group, ret); in AdjustSelfProcessGroup() 203 pid_t pid = pr.GetPid(); in ApplyProcessGroup() local 204 int ret = CgroupSetting::SetThreadGroupSchedPolicy(pid, (int)pr.setSchedGroup_); in ApplyProcessGroup() 207 __func__, pid, pr.setSchedGroup_, ret); in ApplyProcessGroup() 217 traceStr.append(" for ").append(std::to_string(pid)).append(", group change from ") in ApplyProcessGroup() 223 payload["pid"] = std::to_string(pr.GetPid()); in ApplyProcessGroup()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | proc_fs.h | 79 extern void proc_flush_pid(struct pid *); 136 extern struct pid *tgid_pidfd_to_pid(const struct file *file); 148 struct pid *pid, struct task_struct *task); 157 static inline void proc_flush_pid(struct pid *pid) in proc_flush_pid() argument 198 static inline struct pid *tgid_pidfd_to_pid(const struct file *file) in tgid_pidfd_to_pid() 217 /* get the associated pid namespace for a file in procfs */
|
/kernel/linux/linux-5.10/tools/perf/tests/ |
H A D | bpf.c | 125 char pid[16]; in do_test() local 144 snprintf(pid, sizeof(pid), "%d", getpid()); in do_test() 145 pid[sizeof(pid) - 1] = '\0'; in do_test() 146 opts.target.tid = opts.target.pid = pid; in do_test()
|
/kernel/linux/linux-5.10/include/trace/events/ |
H A D | timer.h | 342 * @pid: pid of the process which owns the timer 347 TP_PROTO(int which, struct pid *pid, unsigned long long now), 349 TP_ARGS(which, pid, now), 353 __field( pid_t, pid ) 360 __entry->pid = pid_nr(pid); 363 TP_printk("which=%d pid=%d now=%llu", __entry->which, 364 (int) __entry->pid, __entr [all...] |
/kernel/linux/linux-5.10/kernel/bpf/ |
H A D | task_iter.c | 29 struct pid *pid; in task_seq_get_next() local 33 pid = find_ge_pid(*tid, ns); in task_seq_get_next() 34 if (pid) { in task_seq_get_next() 35 *tid = pid_nr_ns(pid, ns); in task_seq_get_next() 36 task = get_pid_task(pid, PIDTYPE_PID); in task_seq_get_next() 40 } else if (skip_if_dup_files && task->tgid != task->pid && in task_seq_get_next()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/mcde/ |
H A D | mcde_drv.c | 258 u32 pid; in mcde_probe() local 351 pid = readl(mcde->regs + MCDE_PID); in mcde_probe() 353 (pid & MCDE_PID_MAJOR_VERSION_MASK) in mcde_probe() 355 (pid & MCDE_PID_MINOR_VERSION_MASK) in mcde_probe() 357 (pid & MCDE_PID_DEVELOPMENT_VERSION_MASK) in mcde_probe() 359 (pid & MCDE_PID_METALFIX_VERSION_MASK) in mcde_probe() 361 if (pid != 0x03000800) { in mcde_probe()
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | proc_fs.h | 80 extern void proc_flush_pid(struct pid *); 146 extern struct pid *tgid_pidfd_to_pid(const struct file *file); 158 struct pid *pid, struct task_struct *task); 170 static inline void proc_flush_pid(struct pid *pid) in proc_flush_pid() argument 219 static inline struct pid *tgid_pidfd_to_pid(const struct file *file) in tgid_pidfd_to_pid() 238 /* get the associated pid namespace for a file in procfs */
|
/kernel/linux/linux-6.6/include/trace/events/ |
H A D | timer.h | 345 * @pid: pid of the process which owns the timer 350 TP_PROTO(int which, struct pid *pid, unsigned long long now), 352 TP_ARGS(which, pid, now), 356 __field( pid_t, pid ) 363 __entry->pid = pid_nr(pid); 366 TP_printk("which=%d pid=%d now=%llu", __entry->which, 367 (int) __entry->pid, __entr [all...] |
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/ |
H A D | mt76x02_usb_core.c | 70 int pid, len = tx_info->skb->len, ep = q2ep(dev->mphy.q_tx[qid]->hw_idx); in mt76x02u_tx_prepare_skb() local 83 pid = mt76_tx_status_skb_add(mdev, wcid, tx_info->skb); in mt76x02u_tx_prepare_skb() 86 if (pid == MT_PACKET_ID_NO_SKB) in mt76x02u_tx_prepare_skb() 87 pid = MT_PACKET_ID_HAS_RATE | in mt76x02u_tx_prepare_skb() 92 txwi->pktid = pid; in mt76x02u_tx_prepare_skb() 94 if ((mt76_is_skb_pktid(pid) && ampdu) || ep == MT_EP_OUT_HCCA) in mt76x02u_tx_prepare_skb() 113 idr_remove(&wcid->pktid, pid); in mt76x02u_tx_prepare_skb()
|
/third_party/curl/tests/ |
H A D | negtelnetserver.py | 50 VERIFIED_RSP = "WE ROOLZ: {pid}" 59 pid = os.getpid() 62 pid += 65536 64 f.write(str(pid)) 100 pid = os.getpid() 103 pid += 65536 104 response = VERIFIED_RSP.format(pid=pid)
|
/third_party/ltp/testcases/kernel/fs/ftest/ |
H A D | ftest06.c | 102 int pid, child, status, count, k, j; in main() local 216 pid = fork(); in main() 217 if (pid < 0) { in main() 221 if (pid == 0) { in main() 232 pid = fork(); in main() 233 if (pid < 0) { in main() 236 if (pid == 0) { in main() 414 //tst_resm(TINFO,"Test %d pid %d starting.", me, getpid()); in dotest() 424 //tst_resm(TINFO,"Test %d pid %d exiting.", me, getpid()); in dotest()
|
H A D | ftest02.c | 98 int k, j, pid, child, status, count; in main() local 199 pid = fork(); in main() 201 if (pid < 0) { in main() 205 if (pid == 0) { in main() 216 pid = fork(); in main() 218 if (pid < 0) { in main() 222 if (pid == 0) { in main() 396 //tst_resm(TINFO,"Test %d pid %d starting.", me, getpid()); in dotest() 406 //tst_resm(TINFO,"Test %d pid %d exiting.", me, getpid()); in dotest()
|
/third_party/ltp/testcases/kernel/syscalls/fanotify/ |
H A D | fanotify01.c | 253 "pid=%u fd=%d", in test_fanotify() 255 (unsigned int)event->pid, event->fd); in test_fanotify() 259 "pid=%u fd=%d", in test_fanotify() 262 (unsigned int)event->pid, event->fd); in test_fanotify() 263 } else if (event->pid != getpid()) { in test_fanotify() 265 "got event: mask=%llx pid=%u " in test_fanotify() 268 (unsigned int)event->pid, in test_fanotify() 279 "of event: mask=%llx pid=%u " in test_fanotify() 282 (unsigned int)event->pid, in test_fanotify() 287 "of event: mask=%llx pid in test_fanotify() [all...] |
/third_party/node/deps/openssl/openssl/crypto/ocsp/ |
H A D | ocsp_cl.c | 184 const ASN1_OCTET_STRING **pid, in OCSP_resp_get0_id() 191 *pid = NULL; in OCSP_resp_get0_id() 193 *pid = rid->value.byKey; in OCSP_resp_get0_id() 202 ASN1_OCTET_STRING **pid, in OCSP_resp_get1_id() 209 *pid = NULL; in OCSP_resp_get1_id() 211 *pid = ASN1_OCTET_STRING_dup(rid->value.byKey); in OCSP_resp_get1_id() 216 if (*pname == NULL && *pid == NULL) in OCSP_resp_get1_id() 183 OCSP_resp_get0_id(const OCSP_BASICRESP *bs, const ASN1_OCTET_STRING **pid, const X509_NAME **pname) OCSP_resp_get0_id() argument 201 OCSP_resp_get1_id(const OCSP_BASICRESP *bs, ASN1_OCTET_STRING **pid, X509_NAME **pname) OCSP_resp_get1_id() argument
|
/third_party/openssl/crypto/ocsp/ |
H A D | ocsp_cl.c | 184 const ASN1_OCTET_STRING **pid, in OCSP_resp_get0_id() 191 *pid = NULL; in OCSP_resp_get0_id() 193 *pid = rid->value.byKey; in OCSP_resp_get0_id() 202 ASN1_OCTET_STRING **pid, in OCSP_resp_get1_id() 209 *pid = NULL; in OCSP_resp_get1_id() 211 *pid = ASN1_OCTET_STRING_dup(rid->value.byKey); in OCSP_resp_get1_id() 216 if (*pname == NULL && *pid == NULL) in OCSP_resp_get1_id() 183 OCSP_resp_get0_id(const OCSP_BASICRESP *bs, const ASN1_OCTET_STRING **pid, const X509_NAME **pname) OCSP_resp_get0_id() argument 201 OCSP_resp_get1_id(const OCSP_BASICRESP *bs, ASN1_OCTET_STRING **pid, X509_NAME **pname) OCSP_resp_get1_id() argument
|
/third_party/rust/crates/nix/test/sys/ |
H A D | test_ptrace.rs | 113 Ok(WaitStatus::Signaled(pid, Signal::SIGKILL, _)) in test_ptrace_cont() 114 if pid == child => in test_ptrace_cont() 165 Ok(WaitStatus::Signaled(pid, Signal::SIGKILL, _)) in test_ptrace_interrupt() 166 if pid == child => in test_ptrace_interrupt() 203 let pid = getpid(); in test_ptrace_syscall() 204 kill(pid, Signal::SIGSTOP).unwrap(); in test_ptrace_syscall() 205 kill(pid, Signal::SIGTERM).unwrap(); in test_ptrace_syscall()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_profiler/ |
H A D | rs_profiler_base.cpp | 191 pid_t RSProfiler::PatchPlainPid(const Parcel& parcel, pid_t pid) in PatchPlainPid() argument 194 return pid; in PatchPlainPid() 198 return pid; in PatchPlainPid() 201 return Utils::GetMockPid(pid); in PatchPlainPid() 218 void RSProfiler::SetSubstitutingPid(const std::vector<pid_t>& pids, pid_t pid, NodeId parent) in SetSubstitutingPid() argument 221 g_pid = pid; in SetSubstitutingPid() 338 void RSProfiler::FilterForPlayback(RSContext& context, pid_t pid) in FilterForPlayback() argument 342 auto canBeRemoved = [](NodeId node, pid_t pid) -> bool { in FilterForPlayback() 343 return (ExtractPid(node) == pid) && (Utils::ExtractNodeId(node) != 1); in FilterForPlayback() 346 // remove all nodes belong to given pid (b in FilterForPlayback() 413 GetSurfacesTrees(const RSContext& context, pid_t pid, std::map<NodeId, std::string>& list) GetSurfacesTrees() argument [all...] |
/kernel/linux/linux-6.6/mm/damon/ |
H A D | sysfs.c | 8 #include <linux/pid.h> 214 int pid; member 251 return sysfs_emit(buf, "%d\n", target->pid); in pid_target_show() 259 int err = kstrtoint(buf, 0, &target->pid); in pid_target_store() 1094 put_pid(t->pid); in damon_sysfs_destroy_targets() 1139 t->pid = find_get_pid(sys_target->pid); in damon_sysfs_add_target() 1140 if (!t->pid) in damon_sysfs_add_target() 1153 static int damon_sysfs_update_target_pid(struct damon_target *target, int pid) in damon_sysfs_update_target_pid() argument 1155 struct pid *pid_ne in damon_sysfs_update_target_pid() 1561 int pid = -1; pid_show() local [all...] |
/foundation/ability/ability_runtime/interfaces/inner_api/app_manager/src/appmgr/ |
H A D | app_mgr_stub.cpp | 574 TAG_LOGE(AAFwkTag::APPMGR, "Write ChildProcessInfo faild, child pid=%{public}d", it.pid); in HandleGetAllChildrenProcesses() 588 int32_t pid = data.ReadInt32(); in HandleJudgeSandboxByPid() local 590 auto result = JudgeSandboxByPid(pid, isSandbox); in HandleJudgeSandboxByPid() 650 int32_t pid = data.ReadInt32(); in HandleDumpHeapMemory() local 652 auto result = DumpHeapMemory(pid, mallocInfo); in HandleDumpHeapMemory() 845 int32_t pid = data.ReadInt32(); in HandleGetAbilityRecordsByProcessID() local 847 auto result = GetAbilityRecordsByProcessID(pid, tokens); in HandleGetAbilityRecordsByProcessID() 1050 int32_t pid = data.ReadInt32(); in HandleSetContinuousTaskProcess() local 1052 auto ret = SetContinuousTaskProcess(pid, isContinuousTas in HandleSetContinuousTaskProcess() 1109 int32_t pid = data.ReadInt32(); HandleGetBundleNameByPid() local 1130 auto pid = static_cast<pid_t>(data.ReadInt32()); HandleGetRunningProcessInfoByPid() local 1177 int32_t pid = data.ReadInt32(); HandleSetAppFreezeFilter() local 1189 int32_t pid = data.ReadInt32(); HandleGetProcessMemoryByPid() local 1226 int32_t pid = data.ReadInt32(); HandleChangeAppGcState() local 1457 int32_t pid = data.ReadInt32(); HandleUpdateRenderState() local 1482 int32_t pid = data.ReadInt32(); HandleGetAppRunningUniqueIdByPid() local 1499 pid_t pid = data.ReadInt32(); HandleGetAllUIExtensionRootHostPid() local 1566 int32_t pid = data.ReadInt32(); HandleSetSupportedProcessCache() local 1601 pid_t pid = data.ReadInt32(); HandleCheckCallingIsUserTestMode() local 1682 int pid = data.ReadInt32(); HandleCheckIsKiaProcess() local 1697 auto pid = data.ReadInt32(); HandleGetAppIndexByPid() local [all...] |
/foundation/communication/ipc/ipc/native/src/mock/source/ |
H A D | binder_invoker.cpp | 336 ZLOGE(LABEL, "get pid and uid failed"); in AddCommAuth() 342 data2.WriteUint32(reply.ReadUint32()); // pid in AddCommAuth() 369 bool BinderInvoker::GetDBinderCallingPidUid(int handle, bool isReply, pid_t &pid, uid_t &uid) in GetDBinderCallingPidUid() argument 371 if (pid == INVALID_PID) { in GetDBinderCallingPidUid() 386 pid = static_cast<pid_t>(tempPid); in GetDBinderCallingPidUid() 389 pid = GetCallerPid(); in GetDBinderCallingPidUid() 392 ZLOGI(LABEL, "pid:%{public}d uid:%{public}d", pid, uid); in GetDBinderCallingPidUid() 399 pid_t pid = INVALID_PID; in TranslateDBinderStub() local 427 if (!GetDBinderCallingPidUid(handle, isReply, pid, ui in TranslateDBinderStub() 1382 auto pid = getpid(); GetCallerPid() local 1391 auto pid = getpid(); GetCallerSid() local 1400 auto pid = getpid(); GetCallerRealPid() local 1409 auto pid = getpid(); GetCallerUid() local 1419 auto pid = getpid(); GetCallerTokenID() local 1428 auto pid = getpid(); GetFirstCallerTokenID() local 1606 auto pid = getpid(); ResetCallingIdentity() local [all...] |