/netbsd-src/sys/sys/ |
H A D | ktrace.h | 350 return __predict_false(ktrace_on) && __predict_false(ktr_point(1 << fac)); 356 if (__predict_false(ktrace_on)) 363 if (__predict_false(ktrace_on)) 370 if (__predict_false(ktrace_on)) 377 if (__predict_false(ktrace_on)) 384 if (__predict_false(ktrace_on)) 391 if (__predict_false(ktrace_on)) 398 if (__predict_false(ktrace_on)) 405 if (__predict_false(ktrace_on)) 412 if (__predict_false(ktrace_on)) [all …]
|
/netbsd-src/lib/libpthread/ |
H A D | pthread_cond.c | 81 if (__predict_false(__uselibcstub)) in pthread_cond_init() 106 if (__predict_false(__uselibcstub)) in pthread_cond_destroy() 129 if (__predict_false(__uselibcstub)) in pthread_cond_timedwait() 142 if (__predict_false(self->pt_cancel)) { in pthread_cond_timedwait() 150 if (__predict_false(head == &pthread__cond_dummy)) { in pthread_cond_timedwait() 189 if (__predict_false(cancel | error)) { in pthread_cond_timedwait() 198 while (__predict_false(waiter.lid)) { in pthread_cond_timedwait() 221 if (__predict_false(__uselibcstub)) in pthread_cond_wait() 234 if (__predict_false(__uselibcstub)) in pthread_cond_signal() 245 if (__predict_false(head == &pthread__cond_dummy)) { in pthread_cond_signal() [all …]
|
H A D | pthread_mutex.c | 134 if (__predict_false(__uselibcstub)) in __weak_alias() 186 if (__predict_false(__uselibcstub)) in pthread_mutex_destroy() 204 if (__predict_false(__uselibcstub)) in pthread_mutex_lock() 313 if (__predict_false(next != owner)) { in pthread__mutex_lock_slow() 401 if (__predict_false(__uselibcstub)) in pthread_mutex_trylock() 445 if (__predict_false(__uselibcstub)) in pthread_mutex_unlock() 459 if (__predict_false(val != self)) { in pthread_mutex_unlock() 492 if (__predict_false(MUTEX_PROTECT(val))) { in pthread_mutex_unlock() 553 if (__predict_false(__uselibcstub)) in pthread_mutexattr_init() 565 if (__predict_false(__uselibcstub)) in pthread_mutexattr_destroy() [all …]
|
H A D | pthread_specific.c | 62 if (__predict_false(__uselibcstub)) in __strong_alias() 78 if (__predict_false(__uselibcstub)) in pthread_getspecific() 87 if (__predict_false(__uselibcstub)) in pthread_curcpu_np()
|
/netbsd-src/sys/kern/ |
H A D | subr_lockdebug.c | 224 if (__predict_false(ld == NULL)) { in lockdebug_lookup() 274 if (__predict_false(lo == NULL || panicstr != NULL || ld_panic)) in lockdebug_alloc() 276 if (__predict_false(ld_freeptr == 0)) in lockdebug_alloc() 281 if (__predict_false((ld = lockdebug_lookup1(lock)) != NULL)) { in lockdebug_alloc() 309 if (__predict_false((ld = TAILQ_FIRST(&ld_free)) == NULL)) { in lockdebug_alloc() 318 if (__predict_false(ld->ld_lock != NULL)) { in lockdebug_alloc() 350 if (__predict_false(panicstr != NULL || ld_panic)) in lockdebug_free() 357 if (__predict_false(ld == NULL)) { in lockdebug_free() 363 if (__predict_false((ld->ld_flags & LD_LOCKED) != 0 || in lockdebug_free() 459 if (__predict_false(panicstr != NULL || ld_panic)) in lockdebug_wantlock() [all …]
|
H A D | kern_heartbeat.c | 168 KASSERT(__predict_false(cold) || curcpu_stable()); in heartbeat_resume_cpu() 169 KASSERT(__predict_false(cold) || ci == curcpu()); in heartbeat_resume_cpu() 645 if (__predict_false(period_ticks == 0) || in heartbeat() 646 __predict_false(period_secs == 0) || in heartbeat() 647 __predict_false(curcpu()->ci_heartbeat_suspend) || in heartbeat() 648 __predict_false(panicstr != NULL)) in heartbeat() 679 if (__predict_false(d > period_ticks) && in heartbeat() 700 if (__predict_false(d > period_secs)) { in heartbeat() 735 if (__predict_false(d > period_secs) && 736 __predict_false( [all...] |
H A D | subr_pserialize.c | 107 if (__predict_false(panicstr != NULL)) { in pserialize_perform() 111 if (__predict_false(mp_online == false)) { in pserialize_perform() 141 KASSERT(__predict_false(cold) || kpreempt_disabled()); in pserialize_read_exit() 144 if (__predict_false(curcpu()->ci_psz_read_depth-- == 0)) in pserialize_read_exit() 188 if (__predict_false(pctr != lwp_pctr())) in pserialize_not_in_read_section()
|
H A D | subr_cprng.c | 110 if (__predict_false(nist_hash_drbg_initialize() != 0)) in cprng_init() 241 if (__predict_false(nist_hash_drbg_instantiate(cc->cc_drbg, in cprng_init_cpu() 261 if (__predict_false(nist_hash_drbg_destroy(cc->cc_drbg))) in cprng_fini_cpu() 291 if (__predict_false(nist_hash_drbg_reseed((*ccp)->cc_drbg, in cprng_strong_reseed() 325 if (__predict_false(epoch != cc->cc_epoch)) in cprng_strong() 329 if (__predict_false(nist_hash_drbg_generate(cc->cc_drbg, buf, len, in cprng_strong() 332 if (__predict_false(nist_hash_drbg_generate(cc->cc_drbg, in cprng_strong()
|
H A D | kern_synch.c | 277 if (__predict_false(cold)) in wakeup() 355 if (__predict_false(preempt_needed())) { in preempt_point() 392 if (__predict_false(l->l_nopreempt != 0)) { in kpreempt() 400 if (__predict_false((l->l_pflag & LP_INTR) != 0)) { in kpreempt() 407 if (__predict_false(l->l_blcnt != 0 || in kpreempt() 417 if (__predict_false(!cpu_kpreempt_enter(where, s))) { in kpreempt() 451 if (__predict_false(lsflag)) { in kpreempt() 510 if (__predict_false(l->l_flag & LW_IDLE)) in updatertime() 513 if (__predict_false(bintimecmp(now, &l->l_stime, <)) && !backwards) { in updatertime() 715 if (__predict_false(l->l_pfailaddr != 0)) { in mi_switch() [all …]
|
H A D | kern_lock.c | 75 if (__predict_false(panicstr != NULL)) { in assert_sleepable() 88 } while (__predict_false(pctr != lwp_pctr())); in assert_sleepable() 91 if (__predict_false(idle) && !cold) { in assert_sleepable() 95 if (__predict_false(cpu_intr_p())) { in assert_sleepable() 99 if (__predict_false(cpu_softintr_p())) { in assert_sleepable() 103 if (__predict_false(!pserialize_not_in_read_section())) { in assert_sleepable()
|
/netbsd-src/sys/arch/amd64/amd64/ |
H A D | netbsd32_syscall.c | 89 if (__predict_false(error != 0)) in netbsd32_syscall() 93 if (__predict_false(p->p_trace_enabled || KDTRACE_ENTRY(callp->sy_entry)) in netbsd32_syscall() 94 && !__predict_false(callp->sy_flags & SYCALL_INDIRECT)) { in netbsd32_syscall() 99 if (__predict_false(error != 0)) in netbsd32_syscall() 108 if (__predict_false(p->p_trace_enabled || KDTRACE_ENTRY(callp->sy_return)) in netbsd32_syscall() 109 && !__predict_false(callp->sy_flags & SYCALL_INDIRECT)) { in netbsd32_syscall()
|
/netbsd-src/sys/dev/pci/cxgb/ |
H A D | cxgb_lro.c | 120 if (__predict_false(G_HASHTYPE(ntohl(rss_hi)) != RSS_HASH_4_TUPLE || in can_lro_packet() 136 if (__predict_false((control_bits & 0xB7) != 0x10)) in can_lro_tcpsegment() 141 if (__predict_false(olen != TCPOLEN_TSTAMP_APPA || in can_lro_tcpsegment() 259 if (__predict_false(seq != s->seq)) { in lro_update_session() 271 if (__predict_false(ntohl(*(ptr + 1)) > ntohl(*(nptr + 1)) || in lro_update_session() 301 if (__predict_false(!skb_shinfo(s->skb)->frag_list)) in lro_update_session() 346 if (__predict_false(!can_lro_tcpsegment(th))) { in t3_rx_eth_lro() 348 } else if (__predict_false(!s)) { in t3_rx_eth_lro() 355 if (__predict_false(s->head->m_pkthdr.len + pi->ifp->if_mtu > 65535)) { in t3_rx_eth_lro()
|
/netbsd-src/sys/arch/xen/x86/ |
H A D | xen_shm_machdep.c | 93 if (__predict_false(ret < 0)) { in xen_shm_map() 108 if (__predict_false(ret > 0 && ret < nentries)) { in xen_shm_map() 113 if (__predict_false(op[i].status)) { in xen_shm_map() 124 if (__predict_false(ret > 0)) { in xen_shm_map() 208 if (__predict_false(ret)) { in xen_shm_unmap()
|
/netbsd-src/lib/libcurses/ |
H A D | printw.c | 75 if (__predict_false(win == NULL)) in wprintw() 128 if (__predict_false(win == NULL)) in vw_printw() 133 if (__predict_false(win->fp == NULL)) in vw_printw() 139 if (__predict_false(n == 0)) in vw_printw() 141 if (__predict_false(n == -1)) 143 if (__predict_false(fflush(win->fp) != 0))
|
H A D | attributes.c | 146 if (__predict_false(win == NULL)) in wattr_get() 169 if (__predict_false(opts != NULL)) in wattr_on() 185 if (__predict_false(opts != NULL)) in wattr_off() 202 if (__predict_false(opts != NULL)) in wattr_set() 226 if (__predict_false(opts != NULL)) in wcolor_set() 242 if (__predict_false(win == NULL)) in getattrs() 377 if (__predict_false(win == NULL)) in __wattr_on() 429 if (__predict_false(win == NULL)) in __wattr_off() 481 if (__predict_false(win == NULL)) in __wcolor_set()
|
/netbsd-src/sys/arch/arm/arm/ |
H A D | syscall.c | 112 if (__predict_false(((tf->tf_pc - INSN_SIZE) & 3) != 0)) { in swi_handler() 198 if (__predict_false(os_mask != SWI_OS_NETBSD) in syscall() 199 && __predict_false(os_mask != 0)) { in syscall() 225 if (__predict_false(code == SYS_syscall)) { in syscall() 229 if (__predict_false(code == SYS_syscall)) { in syscall()
|
/netbsd-src/sys/arch/aarch64/aarch64/ |
H A D | aarch32_syscall.c | 115 if (__predict_false(callp->sy_flags & SYCALL_INDIRECT)) { in EMULNAME() 137 if (__predict_false(callp->sy_flags & SYCALL_INDIRECT)) { in EMULNAME() 176 if (__predict_false(do_trace || in EMULNAME() 185 if (__predict_false(do_trace || KDTRACE_ENTRY(callp->sy_entry))) in EMULNAME() 191 if (__predict_false(do_trace || KDTRACE_ENTRY(callp->sy_return))) in EMULNAME()
|
/netbsd-src/sys/arch/aarch64/include/ |
H A D | asan.h | 72 if (__predict_false(__md_early)) { in __md_palloc() 125 if (__predict_false(__md_early)) { in kasan_md_shadow_map_page() 139 if (__predict_false(__md_early)) { in kasan_md_shadow_map_page() 153 if (__predict_false(__md_early)) { in kasan_md_shadow_map_page() 179 if (__predict_false(__md_early)) { in kasan_md_shadow_map_page()
|
/netbsd-src/lib/libpanel/ |
H A D | new.c | 43 if (__predict_false(p == NULL)) in _new_panel() 58 if (__predict_false(w == NULL)) in new_panel() 61 if (__predict_false(w == stdscr)) in new_panel()
|
/netbsd-src/sys/arch/xen/xen/ |
H A D | xen_clock.c | 215 while (__predict_false(1 & (tp->version = vt->version))) in xen_vcputime_enter() 332 if (__predict_false(tsc < tsc_timestamp)) { in xen_vcputime_systime_ns() 364 if (__predict_false((int64_t)delta_ns < 0)) { in xen_vcputime_systime_ns() 389 if (__predict_false(systime_ns < raw_systime_ns)) { in xen_vcputime_systime_ns() 407 if (__predict_false(ci->ci_xen_last_systime_ns > systime_ns)) { in xen_vcputime_systime_ns() 481 while (__predict_false(1 & (tp->version = in xen_wallclock_enter() 541 if (__predict_false(local + skew < global + 1)) { in xen_global_systime_ns() 637 if (__predict_false(tsc < last_tsc)) in xen_delay() 810 if (__predict_false(now < last)) { in xen_timer_handler() 832 if (__predict_false(delt in xen_timer_handler() [all...] |
/netbsd-src/sys/dev/dmover/ |
H A D | dmover_session.c | 78 if (__predict_false(initialized == false)) { in dmover_session_create() 86 if (__predict_false(dses == NULL)) in dmover_session_create() 91 if (__predict_false(error)) { in dmover_session_create()
|
/netbsd-src/sys/netinet/ |
H A D | cpu_in_cksum.c | 94 if (__predict_false(m == NULL)) { in cpu_in_cksum() 111 if (__predict_false(m == NULL)) { in cpu_in_cksum() 157 if (__predict_false(partial & 0xc0000000)) { in cpu_in_cksum() 238 if (__predict_false(m == NULL)) { in cpu_in_cksum() 255 if (__predict_false(m == NULL)) { in cpu_in_cksum() 309 if (__predict_false(partial & (3ULL << 62))) { in cpu_in_cksum()
|
/netbsd-src/sys/rump/librump/rumpkern/ |
H A D | rumpcopy.c | 51 if (__predict_false(uaddr == NULL && len)) { in copyin() 73 if (__predict_false(uaddr == NULL && len)) { in copyout() 95 if (__predict_false(uaddr == NULL)) { in copyinstr() 131 if (__predict_false(uaddr == NULL && len)) { in copyoutstr() 176 if (__predict_false(curlen == 0)) in uvm_io()
|
/netbsd-src/sys/dev/acpi/ |
H A D | acpi_cpu_tstate.c | 668 if (__predict_false(sc == NULL)) { in acpicpu_tstate_get() 673 if (__predict_false(sc->sc_cold != false)) { in acpicpu_tstate_get() 678 if (__predict_false((sc->sc_flags & ACPICPU_FLAG_T) == 0)) { in acpicpu_tstate_get() 699 if (__predict_false(rv != 0)) in acpicpu_tstate_get() 771 if (__predict_false(sc == NULL)) { in acpicpu_tstate_set_xcall() 776 if (__predict_false(sc->sc_cold != false)) { in acpicpu_tstate_set_xcall() 781 if (__predict_false((sc->sc_flags & ACPICPU_FLAG_T) == 0)) { in acpicpu_tstate_set_xcall() 795 if (__predict_false(sc->sc_tstate[i].ts_percent == 0)) in acpicpu_tstate_set_xcall() 806 if (__predict_false(ts == NULL)) { in acpicpu_tstate_set_xcall() 817 if (__predict_false(rv != 0)) in acpicpu_tstate_set_xcall()
|
/netbsd-src/sys/dev/ic/ |
H A D | mcp23xxxgpio.c | 114 if (__predict_false(error != 0)) { in mcpgpio__lock() 138 if (__predict_false(error != 0)) { in mcpgpio__read() 158 if (__predict_false(error != 0)) { in mcpgpio__write() 186 if (__predict_false(error != 0)) { in mcpgpio_gpio_pin_read() 213 if (__predict_false(error != 0)) { in mcpgpio_gpio_pin_write() 244 if (__predict_false(error != 0)) { in mcpgpio_gpio_pin_ctl()
|