Lines Matching refs:proc
731 struct proc *curproc;
788 * If kdebug flag is not set for current proc, return
799 * If kdebug flag is set for current proc, return
954 kdebug_trace(__unused struct proc *p, struct kdebug_trace_args *uap, __unused int32_t *retval)
1041 kdbg_trace_data(struct proc *proc, long *arg_pid)
1043 if (!proc)
1046 *arg_pid = proc->p_pid;
1051 kdbg_trace_string(struct proc *proc, long *arg1, long *arg2, long *arg3, long *arg4)
1057 if (!proc) {
1067 dbg_nameptr = proc->p_comm;
1068 dbg_namelen = (int)strlen(proc->p_comm);
1113 struct proc *p;
1139 * The proc count could change during buffer allocation,
1256 struct proc *p;
1298 struct proc *p;
2332 unsigned char *getProcName(struct proc *proc);
2333 unsigned char *getProcName(struct proc *proc) {
2335 return (unsigned char *) &proc->p_comm; /* Return pointer to the proc name */
2385 stack_snapshot(struct proc *p, register struct stack_snapshot_args *uap, int32_t *retval) {
2535 proc_t proc;
2541 proc = get_bsdtask_info(task);
2542 if (proc != PROC_NULL)
2543 snprintf(name_buf, len, "%s/%d", proc->p_comm, proc->p_pid);