Home
last modified time | relevance | path

Searched refs:cond (Results 1 – 8 of 8) sorted by relevance

/spdk/include/spdk/
H A Dlikely.h19 #define spdk_unlikely(cond) __builtin_expect((cond), 0) argument
20 #define spdk_likely(cond) __builtin_expect(!!(cond), 1) argument
H A Dassert.h20 #define SPDK_STATIC_ASSERT(cond, msg) static_assert(cond, msg) argument
30 #define SPDK_STATIC_ASSERT(cond, msg)
/spdk/lib/ftl/utils/
H A Dftl_defs.h33 #define ftl_bug(cond) \ argument
35 if (spdk_unlikely((cond))) { \
/spdk/test/thread/lock/
H A Dspdk_lock.c34 #define ASSERT(cond) do { \ argument
35 if (cond) { \
39 printf("FAIL: %s:%d %s %s\n", __FILE__, __LINE__, __func__, #cond); \
/spdk/scripts/
H A Dcalc-iobuf.py62 def foreach(cond=lambda _: True): argument
64 if not cond(subsystem):
/spdk/lib/thread/
H A Dthread.c245 #define SPIN_ASSERT_IMPL(cond, err, extra_log, ret) \
247 if (spdk_unlikely(!(cond))) { \
249 SPIN_ERROR_STRING(err), #cond); \
255 #define SPIN_ASSERT_LOG_STACKS(cond, err, lock) \
256 SPIN_ASSERT_IMPL(cond, err, sspin_stacks_print(sspin), return)
257 #define SPIN_ASSERT_RETURN(cond, err, ret) SPIN_ASSERT_IMPL(cond, err, , return ret)
258 #define SPIN_ASSERT(cond, err) SPIN_ASSERT_IMPL(cond, err, ,)
225 SPIN_ASSERT_IMPL(cond,err,extra_log,ret) global() argument
235 SPIN_ASSERT_LOG_STACKS(cond,err,lock) global() argument
237 SPIN_ASSERT_RETURN(cond,err,ret) global() argument
238 SPIN_ASSERT(cond,err) global() argument
/spdk/module/bdev/uring/
H A Dbdev_uring.c378 switch (zones_rep->cond) { in bdev_uring_read_sysfs_attr()
404 SPDK_ERRLOG("Invalid zone state: %#x in zone report\n", zones_rep->cond); in bdev_uring_read_sysfs_attr_long()
/spdk/test/common/
H A Dautotest_common.sh918 local cond=$1
921 if eval $cond; then