Home
last modified time | relevance | path

Searched refs:target_pid (Results 1 – 14 of 14) sorted by relevance

/xnu-11215/osfmk/ipc/
H A Dipc_importance.c3859 int target_pid = 0, previous_pid; in task_importance_list_pids() local
3866 previous_pid = target_pid; in task_importance_list_pids()
3867 target_pid = -1; in task_importance_list_pids()
3873 if (target_pid != -1 && previous_pid != target_pid) { in task_importance_list_pids()
3874 memcpy(pid_list, &target_pid, sizeof(target_pid)); in task_importance_list_pids()
3875 pid_list += sizeof(target_pid); in task_importance_list_pids()
3880 target_pid = 0; in task_importance_list_pids()
3885 previous_pid = target_pid; in task_importance_list_pids()
3886 target_pid = -1; in task_importance_list_pids()
3908 if (target_pid != -1 && previous_pid != target_pid) { in task_importance_list_pids()
[all …]
H A Dipc_port.c2581 int target_pid; in ipc_port_impcount_delta() local
2585 target_pid = target_imp->iit_bsd_pid; in ipc_port_impcount_delta()
2588 target_pid = -1; in ipc_port_impcount_delta()
2593 target_pid, target_procname, in ipc_port_impcount_delta()
2600 int target_pid; in ipc_port_impcount_delta() local
2604 target_pid = target_imp->iit_bsd_pid; in ipc_port_impcount_delta()
2607 target_pid = -1; in ipc_port_impcount_delta()
2614 target_pid, target_procname, in ipc_port_impcount_delta()
/xnu-11215/bsd/kern/
H A Dprocess_policy.c116 pid_t target_pid = uap->target_pid; in process_policy() local
131 if (target_pid == 0 || target_pid == proc_selfpid()) { in process_policy()
134 target_proc = proc_find(target_pid); in process_policy()
H A Dkern_sig.c1555 terminate_with_payload_internal(struct proc *cur_proc, int target_pid, uint32_t reason_namespace, in terminate_with_payload_internal() argument
1564 AUDIT_ARG(pid, target_pid); in terminate_with_payload_internal()
1565 if ((target_pid <= 0)) { in terminate_with_payload_internal()
1569 target_proc = proc_find(target_pid); in terminate_with_payload_internal()
1581 if (target_pid != proc_getpid(cur_proc)) { in terminate_with_payload_internal()
1597 if (target_pid == proc_getpid(cur_proc)) { in terminate_with_payload_internal()
H A Dkern_memorystatus_notify.c1397 pid_t target_pid = -1; in memorystatus_update_vm_pressure() local
1579 target_pid = proc_getpid(target_proc); in memorystatus_update_vm_pressure()
1616 if (knote_pid == target_pid) { in memorystatus_update_vm_pressure()
H A Dkern_proc.c4693 pid_t target_pid = uap->pid; in proc_trace_log() local
4701 target_proc = proc_find(target_pid); in proc_trace_log()
4709 if (task_send_trace_memory(target_task, target_pid, target_uniqueid)) { in proc_trace_log()
5358 …mach_port_t task_access_port, int32_t calling_pid, uint32_t calling_gid, int32_t target_pid, mach_… in __KERNEL_WAITING_ON_TASKGATED_CHECK_ACCESS_UPCALL__() argument
5360 …return check_task_access_with_flavor(task_access_port, calling_pid, calling_gid, target_pid, flavo… in __KERNEL_WAITING_ON_TASKGATED_CHECK_ACCESS_UPCALL__()
/xnu-11215/osfmk/mach/
H A Dtask_access.defs49 target_pid : int32_t;
63 target_pid : int32_t;
/xnu-11215/tests/
H A Dstackshot_accuracy.m90 take_stackshot(pid_t target_pid, uint64_t extra_flags, uint64_t since_timestamp)
111 err = stackshot_config_set_pid(stackshot_config, target_pid);
146 pid_t target_pid;
156 target_pid = ((struct stackshot_config*)stackshot_config)->sc_pid;
157 T_ASSERT_GT(target_pid, 0, "valid target_pid");
211 T_ASSERT_EQ([parsedPid intValue], target_pid, "found correct pid");
H A Dstackshot_tests.m157 pid_t target_pid; field
193 if (scenario->target_pid > 0) {
194 ret = stackshot_config_set_pid(config, scenario->target_pid);
197 scenario->target_pid);
981 .target_pid = pid,
1362 .target_pid = getpid(),
1377 .target_pid = getpid(),
1532 .target_pid = getpid(),
1689 .target_pid = getpid(),
2414 scenario.target_pid = getpid();
/xnu-11215/bsd/sys/
H A Dprocess_policy.h209 …int policy, int policy_subtype, proc_policy_attribute_t * attrp, pid_t target_pid, uint64_t target…
/xnu-11215/libsyscall/wrappers/libproc/
H A Dlibproc.c42 …int policy, int policy_subtype, proc_policy_attribute_t * attrp, pid_t target_pid, uint64_t target…
/xnu-11215/bsd/net/
H A Dntstat.h1004 pid_t target_pid; member
H A Dntstat.c6095 client->ntc_provider_filters[provider_id].npf_pid = req->target_pid; in nstat_set_provider_filter()
/xnu-11215/osfmk/kern/
H A Dkern_stackshot.c448 …t_stackshot_estsize(uint32_t prev_size_hint, uint32_t adj, uint64_t trace_flags, pid_t target_pid);
1468 pid_t target_pid) in get_stackshot_estsize() argument
1473 …bool process_scoped = ((target_pid != -1) && ((trace_flags & STACKSHOT_INCLUDE_DRIVER_THREADS… in get_stackshot_estsize()