Home
last modified time | relevance | path

Searched refs:unlikely (Results 1 – 25 of 45) sorted by relevance

12

/tools/include/asm/
A Dbug.h12 if (unlikely(__ret_warn_on)) \
14 unlikely(__ret_warn_on); \
19 if (unlikely(__ret_warn_on)) \
22 unlikely(__ret_warn_on); \
29 if (unlikely(__ret_warn_once && !__warned)) { \
33 unlikely(__ret_warn_once); \
40 if (unlikely(__ret_warn_once)) \
43 unlikely(__ret_warn_once); \
/tools/testing/scatterlist/linux/
A Dmm.h13 #define unlikely macro
19 unlikely(__ret_warn_on); \
24 if (unlikely(__ret_warn_on)) \
26 unlikely(__ret_warn_on); \
134 #define IS_ERR_VALUE(x) unlikely((unsigned long)(void *)(x) >= (unsigned long)-MAX_ERRNO)
/tools/include/linux/
A Derr.h33 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
52 return unlikely(!ptr) || IS_ERR_VALUE((unsigned long)ptr); in IS_ERR_OR_NULL()
A Dfind.h39 if (unlikely(offset >= size)) in find_next_bit()
69 if (unlikely(offset >= size)) in find_next_and_bit()
97 if (unlikely(offset >= size)) in find_next_zero_bit()
A Drefcount.h91 if (unlikely(!new)) in refcount_inc_not_zero()
131 if (unlikely(val == UINT_MAX)) in refcount_sub_and_test()
A Dcompiler.h149 #ifndef unlikely
150 # define unlikely(x) __builtin_expect(!!(x), 0) macro
/tools/testing/nvdimm/
A Dpmem-dax.c17 if (unlikely(is_bad_pmem(&pmem->bb, PFN_PHYS(pgoff) / 512, in __pmem_direct_access()
48 if (unlikely(pmem->bb.count)) in __pmem_direct_access()
/tools/virtio/linux/
A Dkernel.h114 # ifndef unlikely
115 # define unlikely(x) (__builtin_expect(!!(x), 0)) macro
122 if (unlikely(check_mul_overflow(new_n, new_size, &bytes))) in krealloc_array()
A Derr.h6 #define IS_ERR_VALUE(x) unlikely((x) >= (unsigned long)-MAX_ERRNO)
A Dscatterlist.h144 if (unlikely(sg_is_chain(sg))) in sg_next()
/tools/tracing/latency/
A Dlatency-collector.c254 if (unlikely(ptr == NULL)) in malloc_or_die_nocleanup()
265 if (unlikely(r < 0)) { in write_or_die()
281 if (unlikely(r != 0)) in clock_gettime_or_die()
327 if (unlikely(errno)) in mutex_lock()
335 if (unlikely(errno)) in mutex_unlock()
342 if (unlikely(errno)) in cond_signal()
350 if (unlikely(errno)) in cond_wait()
357 if (unlikely(errno)) in cond_broadcast()
410 if (unlikely(errno)) in condattr_setclock()
470 if (unlikely(errno)) { in signal_blocking()
[all …]
/tools/include/tools/
A Dlibc_compat.h15 if (unlikely(check_mul_overflow(nmemb, size, &bytes))) in reallocarray()
/tools/perf/check-header_ignore_hunks/lib/
A Dlist_sort.c20 + if (unlikely(!++count))
/tools/perf/util/
A Ddebug.h29 if (unlikely(!__warned)) { \
69 if (unlikely(!__warned)) { \
A Dcpumap.c521 if (unlikely(!max_node_num)) in cpu__max_node()
529 if (unlikely(!max_cpu_num.cpu)) in cpu__max_cpu()
537 if (unlikely(!max_present_cpu_num.cpu)) in cpu__max_present_cpu()
546 if (unlikely(cpunode_map == NULL)) { in cpu__get_node()
/tools/bootconfig/include/linux/
A Dbootconfig.h22 #define unlikely(cond) (cond) macro
/tools/hv/
A Dvmbus_bufring.c296 if (unlikely(pkt.hlen < VMBUS_CHANPKT_HLEN_MIN)) in rte_vmbus_chan_recv_raw()
300 if (unlikely(pkt.hlen > pkt.tlen)) in rte_vmbus_chan_recv_raw()
308 if (unlikely(dlen > bufferlen)) in rte_vmbus_chan_recv_raw()
A Dvmbus_bufring.h10 #define unlikely(x) __builtin_expect(!!(x), 0) macro
/tools/testing/selftests/bpf/progs/
A Dbpf_arena_spin_lock.h237 if (unlikely(val)) in arena_spin_trylock()
284 if (unlikely(val & ~_Q_LOCKED_MASK)) { in arena_spin_lock_slowpath()
331 if (unlikely(idx >= _Q_MAX_NODES)) { in arena_spin_lock_slowpath()
/tools/net/sunrpc/xdrgen/templates/C/typedef/encoder/
A Dvariable_length_array.j217 if (unlikely(value.count > {{ maxsize }}))
/tools/testing/selftests/net/tcp_ao/lib/
A Dproc.c106 if (unlikely(!strcmp(nc->name, "MaxConn"))) in netstat_read_type()
206 if (unlikely(!strcmp(nsb->header_name, "MaxConn"))) { in __netstat_print_diff()
222 if (unlikely(strcmp(nsb->header_name, nsa->header_name))) { in netstat_print_diff()
/tools/testing/selftests/kvm/x86/
A Dtsc_scaling_sync.c34 if (unlikely(local_tsc < tmp)) in guest_code()
/tools/lib/
A Dfind_bit.c53 if (unlikely(__start >= sz)) \
/tools/virtio/
A Dvhost_net_test.c295 if (unlikely(r != 0)) in run_tx_test()
300 if (unlikely(!virtqueue_kick(vq->vq))) { in run_tx_test()
362 if (unlikely(r != 0)) in run_rx_test()
369 if (unlikely(!virtqueue_kick(vq->vq))) { in run_rx_test()
/tools/virtio/ringtest/
A Dptr_ring.c16 #define unlikely(x) (__builtin_expect(!!(x), 0)) macro

Completed in 33 milliseconds

12