Searched refs:cond (Results 1 – 8 of 8) sorted by relevance
/spdk/include/spdk/ |
H A D | likely.h | 19 #define spdk_unlikely(cond) __builtin_expect((cond), 0) argument 20 #define spdk_likely(cond) __builtin_expect(!!(cond), 1) argument
|
H A D | assert.h | 20 #define SPDK_STATIC_ASSERT(cond, msg) static_assert(cond, msg) argument 30 #define SPDK_STATIC_ASSERT(cond, msg)
|
/spdk/lib/ftl/utils/ |
H A D | ftl_defs.h | 33 #define ftl_bug(cond) \ argument 35 if (spdk_unlikely((cond))) { \
|
/spdk/test/thread/lock/ |
H A D | spdk_lock.c | 34 #define ASSERT(cond) do { \ argument 35 if (cond) { \ 39 printf("FAIL: %s:%d %s %s\n", __FILE__, __LINE__, __func__, #cond); \
|
/spdk/scripts/ |
H A D | calc-iobuf.py | 62 def foreach(cond=lambda _: True): argument 64 if not cond(subsystem):
|
/spdk/lib/thread/ |
H A D | thread.c | 245 #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 D | bdev_uring.c | 378 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 D | autotest_common.sh | 918 local cond=$1 921 if eval $cond; then
|