| /f-stack/freebsd/sys/ |
| H A D | blockcount.h | 44 int _blockcount_sleep(blockcount_t *bc, struct lock_object *, const char *wmesg, 80 _blockcount_wait(blockcount_t *bc, struct lock_object *lo, const char *wmesg, in _blockcount_wait() argument 85 while (_blockcount_sleep(bc, lo, wmesg, prio) == EAGAIN) in _blockcount_wait() 89 #define blockcount_sleep(bc, lo, wmesg, prio) \ argument 90 _blockcount_sleep((bc), (struct lock_object *)(lo), (wmesg), (prio)) 91 #define blockcount_wait(bc, lo, wmesg, prio) \ argument 92 _blockcount_wait((bc), (struct lock_object *)(lo), (wmesg), (prio))
|
| H A D | lockmgr.h | 73 const char *wmesg, int prio, int timo, const char *file, int line); 90 void lockinit(struct lock *lk, int prio, const char *wmesg, int timo, 103 _lockmgr_args(struct lock *lk, u_int flags, struct mtx *ilk, const char *wmesg, in _lockmgr_args() argument 108 NULL, wmesg, prio, timo, file, line)); in _lockmgr_args() 113 const char *wmesg, int prio, int timo, const char *file, int line) in _lockmgr_args_rw() argument 117 NULL, wmesg, prio, timo, file, line)); in _lockmgr_args_rw() 127 #define lockmgr_args(lk, flags, ilk, wmesg, prio, timo) \ argument 128 _lockmgr_args((lk), (flags), (ilk), (wmesg), (prio), (timo), \ 130 #define lockmgr_args_rw(lk, flags, ilk, wmesg, prio, timo) \ argument 131 _lockmgr_args_rw((lk), (flags), (ilk), (wmesg), (prio), (timo), \
|
| H A D | systm.h | 518 #define msleep(chan, mtx, pri, wmesg, timo) \ argument 519 _sleep((chan), &(mtx)->lock_object, (pri), (wmesg), \ 521 #define msleep_sbt(chan, mtx, pri, wmesg, bt, pr, flags) \ argument 526 #define msleep_spin(chan, mtx, wmesg, timo) \ argument 531 #define pause(wmesg, timo) \ argument 532 pause_sbt((wmesg), tick_sbt * (timo), 0, C_HARDCLOCK) 533 #define pause_sig(wmesg, timo) \ argument 535 #define tsleep(chan, pri, wmesg, timo) \ argument 536 _sleep((chan), NULL, (pri), (wmesg), tick_sbt * (timo), \ 538 #define tsleep_sbt(chan, pri, wmesg, bt, pr, flags) \ argument [all …]
|
| H A D | rmlock.h | 98 #define rm_sleep(chan, rm, pri, wmesg, timo) \ argument 99 _sleep((chan), &(rm)->lock_object, (pri), (wmesg), \
|
| H A D | sleepqueue.h | 92 const char *wmesg, int flags, int queue);
|
| H A D | sx.h | 265 #define sx_sleep(chan, sx, pri, wmesg, timo) \ argument 266 _sleep((chan), &(sx)->lock_object, (pri), (wmesg), \
|
| H A D | rwlock.h | 240 #define rw_sleep(chan, rw, pri, wmesg, timo) \ argument 241 _sleep((chan), &(rw)->lock_object, (pri), (wmesg), \
|
| H A D | ktrace.h | 149 char wmesg[8]; member
|
| H A D | buf.h | 316 #define BUF_TIMELOCK(bp, locktype, interlock, wmesg, catch, timo) \ argument 318 (interlock), (wmesg), (PRIBIO + 4) | (catch), (timo), \
|
| H A D | mutex.h | 463 #define mtx_sleep(chan, mtx, pri, wmesg, timo) \ argument 464 _sleep((chan), &(mtx)->lock_object, (pri), (wmesg), \
|
| /f-stack/lib/ |
| H A D | ff_kern_synch.c | 64 const char *wmesg; member 88 const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags) in _sleep() argument 96 msleep_spin_sbt(const void * _Nonnull chan, struct mtx *mtx, const char *wmesg, in msleep_spin_sbt() argument 103 pause_sbt(const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags) in pause_sbt() argument 105 return (_sleep(&pause_wchan[curcpu], NULL, 0, wmesg, sbt, pr, flags)); in pause_sbt()
|
| /f-stack/freebsd/kern/ |
| H A D | kern_synch.c | 136 const char *wmesg, sbintime_t sbt, sbintime_t pr, int flags) in _sleep() argument 147 ktrcsw(1, 0, wmesg); in _sleep() 150 "Sleeping on \"%s\"", wmesg); in _sleep() 183 td->td_tid, td->td_proc->p_pid, td->td_name, wmesg, ident); in _sleep() 205 sleepq_add(ident, lock, wmesg, sleepq_flags, 0); in _sleep() 226 ktrcsw(0, 0, wmesg); in _sleep() 264 sleepq_add(ident, &mtx->lock_object, wmesg, SLEEPQ_SLEEP, 0); in msleep_spin_sbt() 278 ktrcsw(1, 0, wmesg); in msleep_spin_sbt() 285 wmesg); in msleep_spin_sbt() 296 ktrcsw(0, 0, wmesg); in msleep_spin_sbt() [all …]
|
| H A D | subr_sleepqueue.c | 158 static void sleepq_profile(const char *wmesg); 309 sleepq_add(const void *wchan, struct lock_object *lock, const char *wmesg, in sleepq_add() argument 381 td->td_wmesg = wmesg; in sleepq_add() 1296 sleepq_profile(const char *wmesg) in sleepq_profile() argument 1303 LIST_FOREACH(sp, &sleepq_hash[SC_HASH(wmesg)], sp_link) in sleepq_profile() 1304 if (sp->sp_wmesg == wmesg) in sleepq_profile() 1309 sp->sp_wmesg = wmesg; in sleepq_profile() 1311 LIST_INSERT_HEAD(&sleepq_hash[SC_HASH(wmesg)], sp, sp_link); in sleepq_profile()
|
| H A D | kern_ktrace.c | 737 ktrcsw(int out, int user, const char *wmesg) in ktrcsw() argument 752 if (wmesg != NULL) in ktrcsw() 753 strlcpy(kc->wmesg, wmesg, sizeof(kc->wmesg)); in ktrcsw() 755 bzero(kc->wmesg, sizeof(kc->wmesg)); in ktrcsw()
|
| H A D | kern_lock.c | 267 const char *wmesg, int pri, int timo, int queue) in sleeplk() argument 286 sleepq_add(&lk->lock_object, NULL, wmesg, SLEEPQ_LK | (catch ? in sleeplk() 431 lockinit(struct lock *lk, int pri, const char *wmesg, int timo, int flags) in lockinit() argument 437 ("%s: lockmgr not aligned for %s: %p", __func__, wmesg, in lockinit() 457 lock_init(&lk->lock_object, &lock_class_lockmgr, wmesg, NULL, iflags); in lockinit() 1298 const char *wmesg, int pri, int timo, const char *file, int line) in __lockmgr_args() argument 1318 iwmesg = (wmesg == LK_WMESG_DEFAULT) ? lk->lock_object.lo_name : wmesg; in __lockmgr_args()
|
| H A D | subr_smp.c | 951 quiesce_cpus(cpuset_t map, const char *wmesg, int prio) in quiesce_cpus() argument 973 error = tsleep(quiesce_cpus, prio, wmesg, 1); in quiesce_cpus() 988 quiesce_all_cpus(const char *wmesg, int prio) in quiesce_all_cpus() argument 991 return quiesce_cpus(all_cpus, wmesg, prio); in quiesce_all_cpus()
|
| H A D | kern_sendfile.c | 279 sendfile_iowait(struct sf_io *sfio, const char *wmesg) in sendfile_iowait() argument 282 pause(wmesg, 1); in sendfile_iowait()
|
| H A D | kern_umtx.c | 281 static int umtxq_sleep(struct umtx_q *uq, const char *wmesg, struct abs_timeout *); 812 umtxq_sleep(struct umtx_q *uq, const char *wmesg, struct abs_timeout *abstime) in umtxq_sleep() argument 837 error = msleep(uq, &uc->uc_lock, PCATCH | PDROP, wmesg, timo); in umtxq_sleep() 1659 const char *wmesg, struct abs_timeout *timo, bool shared) in umtxq_sleep_pi() argument 1706 error = umtxq_sleep(uq, wmesg, timo); in umtxq_sleep_pi()
|
| H A D | kern_sysctl.c | 117 #define SYSCTL_SLEEP(ch, wmesg, timo) \ argument 118 rm_sleep(ch, &sysctllock, 0, wmesg, timo)
|
| /f-stack/freebsd/ddb/ |
| H A D | db_ps.c | 265 const char *wmesg; in dumpthread() local 309 wmesg = td->td_lockname; in dumpthread() 312 wmesg = td->td_wmesg; in dumpthread() 316 wmesg = state; in dumpthread() 319 wmesg = ""; in dumpthread() 322 db_printf("%c%-7.7s ", wprefix, wmesg); in dumpthread()
|
| /f-stack/freebsd/vm/ |
| H A D | vm_object.h | 260 #define VM_OBJECT_SLEEP(object, wchan, pri, wmesg, timo) \ argument 261 rw_sleep((wchan), &(object)->lock, (pri), (wmesg), (timo)) 357 void vm_object_busy_wait(vm_object_t object, const char *wmesg);
|
| H A D | vm_page.c | 1014 vm_page_busy_sleep(vm_page_t m, const char *wmesg, bool nonshared) in vm_page_busy_sleep() argument 1022 if (!_vm_page_busy_sleep(obj, m, m->pindex, wmesg, in vm_page_busy_sleep() 1040 const char *wmesg, bool nonshared) in vm_page_busy_sleep_unlocked() argument 1046 _vm_page_busy_sleep(obj, m, pindex, wmesg, in vm_page_busy_sleep_unlocked() 1062 const char *wmesg, int allocflags, bool locked) in _vm_page_busy_sleep() argument 1074 vm_object_busy_wait(obj, wmesg); in _vm_page_busy_sleep() 1101 sleepq_add(m, NULL, wmesg, 0, 0); in _vm_page_busy_sleep() 1412 vm_page_sleep_if_busy(vm_page_t m, const char *wmesg) in vm_page_sleep_if_busy() argument 1427 if (_vm_page_busy_sleep(obj, m, m->pindex, wmesg, 0, true)) { in vm_page_sleep_if_busy() 1444 vm_page_sleep_if_xbusy(vm_page_t m, const char *wmesg) in vm_page_sleep_if_xbusy() argument [all …]
|
| H A D | vm_page.h | 594 vm_pindex_t pindex, const char *wmesg, bool nonshared);
|
| H A D | vm_object.c | 2475 vm_object_busy_wait(vm_object_t obj, const char *wmesg) in vm_object_busy_wait() argument 2480 (void)blockcount_sleep(&obj->busy, NULL, wmesg, PVM); in vm_object_busy_wait()
|
| /f-stack/freebsd/amd64/vmm/ |
| H A D | vmm.c | 1326 const char *wmesg; in vm_handle_hlt() local 1374 wmesg = "vmhalt"; in vm_handle_hlt() 1385 wmesg = "vmidle"; in vm_handle_hlt() 1394 msleep_spin(vcpu, &vcpu->mtx, wmesg, hz); in vm_handle_hlt()
|