| /freebsd-src/usr.bin/rpcgen/ |
| H A D | rpc_clntout.c | 72 proc_list *proc; in write_program() local 75 for (proc = vp->procs; proc != NULL; proc = proc->next) { in write_program() 78 ptype(proc->res_prefix, proc->res_type, 1); in write_program() 80 pvname(proc->proc_name, vp->vers_num); in write_program() 81 printarglist(proc, RESULT, "clnt", "CLIENT *"); in write_program() 84 pvname(proc->proc_name, vp->vers_num); in write_program() 85 printarglist(proc, RESULT, "clnt", "CLIENT *"); in write_program() 89 printbody(proc); in write_program() 105 printarglist(proc_list *proc, const char *result, const char *addargname, in printarglist() argument 114 ptype(proc->args.decls->decl.prefix, in printarglist() [all …]
|
| H A D | rpc_sample.c | 78 proc_list *proc; in write_sample_client() local 88 for (proc = vp->procs; proc != NULL; proc = proc->next) { in write_sample_client() 92 ptype(proc->res_prefix, proc->res_type, 1); in write_sample_client() 95 ptype(proc->res_prefix, proc->res_type, 1); in write_sample_client() 99 if(proc->arg_num < 2 && !newstyle) { in write_sample_client() 101 if(!streq(proc->args.decls->decl.type, "void")) in write_sample_client() 102 ptype(proc->args.decls->decl.prefix, in write_sample_client() 103 proc->args.decls->decl.type, 1); in write_sample_client() 107 pvname(proc->proc_name, vp->vers_num); in write_sample_client() 109 } else if (!streq(proc->args.decls->decl.type, "void")) { in write_sample_client() [all …]
|
| H A D | rpc_tblout.c | 79 proc_list *proc; in write_table() local 98 for (proc = vp->procs; proc != NULL; proc = proc->next) { in write_table() 99 current = atoi(proc->proc_num); in write_table() 114 pvname_svc(proc->proc_name, vp->vers_num); in write_table() 118 pvname(proc->proc_name, vp->vers_num); in write_table() 123 if( proc->arg_num > 1 ) in write_table() 124 printit((char*) NULL, proc->args.argname ); in write_table() 127 printit( proc->args.decls->decl.prefix, in write_table() 128 proc->args.decls->decl.type ); in write_table() 130 printit(proc->res_prefix, proc->res_type); in write_table()
|
| H A D | rpc_svcout.c | 326 proc_list *proc; in write_real_program() local 331 for (proc = vp->procs; proc != NULL; proc = proc->next) { in write_real_program() 334 internal_proctype(proc); in write_real_program() 338 pvname(proc->proc_name, vp->vers_num); in write_real_program() 341 if (proc->arg_num > 1) in write_real_program() 342 fputs(proc->args.argname, fout); in write_real_program() 344 ptype(proc->args.decls->decl.prefix, in write_real_program() 345 proc->args.decls->decl.type, 0); in write_real_program() 358 pvname_svc(proc->proc_name, vp->vers_num); in write_real_program() 360 if (proc->arg_num < 2) { /* single argument */ in write_real_program() [all …]
|
| H A D | rpc_hout.c | 240 proc_list *proc; in define_printed() local 243 for (proc = vers->procs; proc != NULL; proc = proc->next) { in define_printed() 244 if (proc == stop) { in define_printed() 246 } else if (streq(proc->proc_name, stop->proc_name)) { in define_printed() 276 proc_list *proc; in pprogramdef() local 299 for (proc = vers->procs; proc != NULL; proc = proc->next) { in pprogramdef() 300 if (!define_printed(proc, def->def.pr.versions)) { in pprogramdef() 301 puldefine(proc->proc_name, proc->proc_num); in pprogramdef() 304 pprocdef(proc, vers, "CLIENT *", 0); in pprogramdef() 306 pprocdef(proc, vers, "struct svc_req *", 1); in pprogramdef() [all …]
|
| /freebsd-src/cddl/usr.sbin/dwatch/libexec/ |
| H A D | proc | 15 proc) 17 proc:::create, \ 18 proc:::exec, \ 19 proc:::exec-failure, \ 20 proc:::exec-success, \ 21 proc:::exit, \ 22 proc:::signal-clear, \ 23 proc:::signal-discard, \ 24 proc:::signal-send )} 26 proc-signal) [all …]
|
| H A D | Makefile | 10 proc \ 31 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-create 32 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-exec 33 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-exec-failure 34 LINKS+= ${LIBEXECDIR}/dwatch/proc ${LIBEXECDIR}/dwatch/proc-exec-success 35 LINKS+= ${LIBEXECDIR}/dwatch/proc [all...] |
| /freebsd-src/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
| H A D | tsan_rtl_proc.cpp | 23 Processor *proc = new(mem) Processor; in ProcCreate() local 24 proc->thr = nullptr; in ProcCreate() 26 AllocatorProcStart(proc); in ProcCreate() 29 proc->dd_pt = ctx->dd->CreatePhysicalThread(); in ProcCreate() 30 return proc; in ProcCreate() 33 void ProcDestroy(Processor *proc) { in ProcDestroy() argument 34 CHECK_EQ(proc->thr, nullptr); in ProcDestroy() 36 AllocatorProcFinish(proc); in ProcDestroy() 38 ctx->metamap.OnProcIdle(proc); in ProcDestroy() 40 ctx->dd->DestroyPhysicalThread(proc->dd_pt); in ProcDestroy() [all …]
|
| H A D | tsan_sync.cpp | 48 u32 idx = block_alloc_.Alloc(&thr->proc()->block_cache); in AllocBlock() 59 uptr MetaMap::FreeBlock(Processor *proc, uptr p, bool reset) { in FreeBlock() argument 64 FreeRange(proc, p, sz, reset); in FreeBlock() 68 bool MetaMap::FreeRange(Processor *proc, uptr p, uptr sz, bool reset) { in FreeRange() argument 84 block_alloc_.Free(&proc->block_cache, idx & ~kFlagMask); in FreeRange() 92 sync_alloc_.Free(&proc->sync_cache, idx & ~kFlagMask); in FreeRange() 108 void MetaMap::ResetRange(Processor *proc, uptr p, uptr sz, bool reset) { in ResetRange() argument 112 FreeRange(proc, p, sz, reset); in ResetRange() 119 FreeRange(proc, p, sz, reset); in ResetRange() 125 FreeRange(proc, p, diff, reset); in ResetRange() [all …]
|
| H A D | tsan_mman.cpp | 64 Processor *proc; 74 proc(ProcCreate()), 91 if (thr->proc()) in ScopedGlobalProcessor() 93 // If we don't have a proc, use the global one. in ScopedGlobalProcessor() 105 // Ideally, we destroy thread state (and unwire proc) when a thread actually in ScopedGlobalProcessor() 106 // exits (i.e. when we join/wait it). Then we would not need the global proc in ScopedGlobalProcessor() 108 ProcWire(gp->proc, thr); 114 if (thr->proc() != gp->proc) in ~ScopedGlobalProcessor() 116 ProcUnwire(gp->proc, th in ~ScopedGlobalProcessor() 62 Processor *proc; global() member 152 AllocatorProcStart(Processor * proc) AllocatorProcStart() argument 157 AllocatorProcFinish(Processor * proc) AllocatorProcFinish() argument [all...] |
| /freebsd-src/sys/fs/pseudofs/ |
| H A D | pseudofs_vnops.c | 89 pfs_visible_proc(struct thread *td, struct pfs_node *pn, struct proc *proc) in pfs_visible_proc() argument 92 if (proc == NULL) in pfs_visible_proc() 95 PROC_LOCK_ASSERT(proc, MA_OWNED); in pfs_visible_proc() 97 if ((proc->p_flag & P_WEXIT) != 0) in pfs_visible_proc() 99 if (p_cansee(td, proc) != 0) in pfs_visible_proc() 101 return (pn_vis(td, proc, pn)); in pfs_visible_proc() 106 struct proc **p) in pfs_visible() 108 struct proc *proc; in pfs_visible() local 117 proc = pfind(pid); in pfs_visible() 118 if (proc == NULL) in pfs_visible() [all …]
|
| /freebsd-src/sys/sys/ |
| H A D | racct.h | 44 struct proc; 174 int racct_add(struct proc *p, int resource, uint64_t amount); 176 void racct_add_force(struct proc *p, int resource, uint64_t amount); 177 void racct_add_buf(struct proc *p, const struct buf *bufp, int is_write); 178 int racct_set(struct proc *p, int resource, uint64_t amount); 179 int racct_set_unlocked(struct proc *p, int resource, uint64_t amount); 180 void racct_set_force(struct proc *p, int resource, uint64_t amount); 181 void racct_sub(struct proc *p, int resource, uint64_t amount); 183 uint64_t racct_get_limit(struct proc *p, int resource); 184 uint64_t racct_get_available(struct proc *p, int resource); [all …]
|
| H A D | proc.h | 72 #include <machine/proc.h> /* Machine-dependent proc substruct. */ 87 struct proc *s_leader; /* (m + e) Session leader. */ 107 LIST_HEAD(, proc) pg_members; /* (m + e) Pointer to pgrp members. */ 139 * Below is a key of locks used to protect each member of struct proc. The 147 * c - locked by proc mtx 154 * j - locked by proc slock 158 * l - the attaching proc or attaching proc parent 187 struct proc; 651 struct proc { global() struct 654 p_slockproc global() argument 672 p_pidproc global() argument 674 p_pptrproc global() argument 677 p_reaperproc global() argument 686 p_ksiproc global() argument 687 p_sigqueueproc global() argument 689 p_oppidproc global() argument 693 p_vmspaceproc global() argument 694 p_swtickproc global() argument 695 p_cowgenproc global() argument 719 p_procdescproc global() argument 720 p_treeflagproc global() argument 721 p_pendingexitsproc global() argument 722 p_filemonproc global() argument 723 p_pdeathsigproc global() argument 751 p_pgrpproc global() argument 752 p_klistproc global() argument 754 p_mdproc global() argument 757 p_peersproc global() argument 758 p_leaderproc global() argument 763 p_dtraceproc global() argument 774 p_throttledproc global() argument [all...] |
| H A D | resourcevar.h | 48 * c - locked by proc mtx 50 * w - locked by proc itim lock 51 * w2 - locked by proc prof lock 132 struct proc; 138 void calccru(struct proc *p, struct timeval *up, struct timeval *sp); 139 void calcru(struct proc *p, struct timeval *up, struct timeval *sp); 147 int kern_proc_setrlimit(struct thread *td, struct proc *p, u_int which, 166 rlim_t lim_cur_proc(struct proc *p, int which); 167 void lim_fork(struct proc *p1, struct proc *p [all...] |
| H A D | kthread.h | 42 struct proc **global_procpp; /* ptr to proc ptr save area */ 52 int kproc_create(void (*)(void *), void *, struct proc **, 55 int kproc_resume(struct proc *); 58 int kproc_suspend(struct proc *, int); 59 void kproc_suspend_check(struct proc *); 63 struct proc **, 69 struct proc *, struct thread **,
|
| H A D | rctl.h | 43 struct proc; 69 struct proc *rs_proc; 142 int rctl_enforce(struct proc *p, int resource, uint64_t amount); 144 int64_t rctl_pcpu_available(const struct proc *p); 145 uint64_t rctl_get_limit(struct proc *p, int resource); 146 uint64_t rctl_get_available(struct proc *p, int resource); 148 void rctl_proc_ucred_changed(struct proc *p, struct ucred *newcred); 149 int rctl_proc_fork(struct proc *parent, struct proc *child);
|
| /freebsd-src/lib/libkvm/ |
| H A D | kvm_proc.c | 53 #include <sys/proc.h> 101 * Read proc's from memory file into buffer bp, which has space to hold 105 kvm_proclist(kvm_t *kd, int what, int arg, struct proc *p, in kvm_proclist() 122 struct proc proc; in kvm_proclist() local 123 struct proc pproc; in kvm_proclist() 136 for (; cnt < maxcnt && p != NULL; p = LIST_NEXT(&proc, p_list)) { in kvm_proclist() 138 if (KREAD(kd, (u_long)p, &proc)) { in kvm_proclist() 139 _kvm_err(kd, kd->program, "can't read proc at %p", p); in kvm_proclist() 142 if (proc in kvm_proclist() [all...] |
| /freebsd-src/usr.sbin/rtprio/ |
| H A D | rtprio.c | 56 pid_t proc = 0; in main() local 69 proc = parseint(argv[1], "pid"); in main() 70 proc = abs(proc); in main() 73 if (rtprio(RTP_LOOKUP, proc, &rtp) != 0) in main() 109 proc = parseint(argv[2], "pid"); in main() 110 proc = abs(proc); in main() 113 if (rtprio(RTP_SET, proc, &rtp) != 0) in main() 116 if (proc == 0) { in main()
|
| /freebsd-src/tools/test/stress2/misc/ |
| H A D | procfs6.sh | 34 if ! mount | grep -q /proc; then 35 mount -t procfs null /proc || exit 1 38 [ `ls /proc | wc -l` -eq 0 ] && { ls -l /proc; exit 1; } 39 [ `ls /proc/$$ | wc -l` -eq 0 ] && { ls -l /proc; exit 1; } 41 [ $mounted ] && umount /proc
|
| /freebsd-src/sys/contrib/openzfs/include/os/freebsd/spl/sys/ |
| H A D | proc.h | 34 #include_next <sys/proc.h> 62 typedef struct proc proc_t; 67 do_thread_create(caddr_t stk, size_t stksize, void (*proc)(void *), void *arg, in do_thread_create() 85 error = kproc_kthread_add(proc, arg, ppp, &td, RFSTOPPED, in do_thread_create() 95 #define thread_create_named(name, stk, stksize, proc, arg, len, \ in do_thread_create() 97 do_thread_create(stk, stksize, proc, arg, len, pp, state, pri, name) 98 #define thread_create(stk, stksize, proc, arg, len, pp, state, pri) \ argument 99 do_thread_create(stk, stksize, proc, arg, len, pp, state, pri, #proc) 101 thread_create(stk,stksize,proc,arg,len,pp,state,pri) global() argument
|
| /freebsd-src/tools/debugscripts/ |
| H A D | gdbinit.i386 | 235 set $proc = allproc.lh_first 237 set $pptr = $proc.p_pptr 238 if ($proc->p_pid == $arg0) 239 set $pcba = $proc->p_threads.tqh_first->td_pcb 244 set $aproc = $proc.p_list.le_next 248 set $proc = $aproc 279 set $proc = allproc.lh_first 281 if ($proc->p_pid == $arg0) 282 btr $proc->p_threads.tqh_first->td_pcb->pcb_ebp 285 set $aproc = $proc.p_list.le_next [all …]
|
| H A D | gdbinit.kernel | 200 set $proc = allproc.lh_first 202 printf "pid/ID ppid/tid uid pgrp flag st comm/name proc/thread\n" 204 set $pptr = $proc.p_pptr 206 set $pptr = $proc 208 if ($proc.p_state) 210 $proc.p_pid, $pptr->p_pid, \ 211 $proc.p_ucred->cr_ruid, \ 212 $proc.p_pgrp->pg_id, $proc.p_flag, $proc.p_state, \ 213 &$proc.p_comm[0], $aproc 214 set $thread = $proc->p_threads.tqh_first [all …]
|
| /freebsd-src/usr.sbin/rpcbind/ |
| H A D | rpcb_stat.c | 60 rpcbs_procinfo(rpcvers_t rtype, rpcproc_t proc) in rpcbs_procinfo() argument 65 if (proc > rpcb_highproc_2) in rpcbs_procinfo() 70 if (proc > rpcb_highproc_3) in rpcbs_procinfo() 74 if (proc > rpcb_highproc_4) in rpcbs_procinfo() 79 inf[rtype].info[proc]++; in rpcbs_procinfo() 144 rpcvers_t vers, rpcproc_t proc, char *netid, rpcblist_ptr rbl) in rpcbs_rmtcall() argument 157 (rl->proc == proc) && in rpcbs_rmtcall() 179 rl->proc = proc; in rpcbs_rmtcall()
|
| /freebsd-src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/mmap/ |
| H A D | mmap_sync_001_pos.ksh | 34 if [ $(</proc/sys/vm/dirty_expire_centisecs) -eq 1 ]; then 38 if [ $(</proc/sys/vm/dirty_background_ratio) -eq 0 ]; then 42 if [ $(</proc/sys/vm/dirty_writeback_centisecs) -eq 1 ]; then 54 read -r saved_vm_dirty_expire_centisecs < /proc/sys/vm/dirty_expire_centisecs 55 read -r saved_vm_dirty_background_ratio < /proc/sys/vm/dirty_background_ratio 56 read -r saved_vm_dirty_writeback_centisecs < /proc/sys/vm/dirty_writeback_centisecs
|
| /freebsd-src/sys/compat/linuxkpi/common/src/ |
| H A D | linux_current.c | 57 find_other_mm(struct proc *p) in find_other_mm() 81 struct proc *proc; in linux_alloc_current() local 111 proc = td->td_proc; in linux_alloc_current() 113 PROC_LOCK(proc); in linux_alloc_current() 114 mm_other = find_other_mm(proc); in linux_alloc_current() 118 PROC_UNLOCK(proc); in linux_alloc_current() 128 PROC_LOCK(proc); in linux_alloc_current() 129 mm_other = find_other_mm(proc); in linux_alloc_current() 148 PROC_UNLOCK(proc); in linux_alloc_current() 199 struct proc *p; in linux_get_pid_task_int() [all …]
|