/lib/ |
D | test_user_copy.c | 94 int expected = is_zeroed(kmem + start, len); in test_check_nonzero_user() local 96 ret |= test(retval != expected, in test_check_nonzero_user() 98 retval, expected, start, end); in test_check_nonzero_user() 109 char *umem_src = NULL, *expected = NULL; in test_copy_struct_from_user() local 117 expected = kmalloc(size, GFP_KERNEL); in test_copy_struct_from_user() 118 ret = test(expected == NULL, "kmalloc failed"); in test_copy_struct_from_user() 131 memcpy(expected, umem_src, ksize); in test_copy_struct_from_user() 136 ret |= test(memcmp(kmem, expected, ksize), in test_copy_struct_from_user() 143 memcpy(expected, umem_src, usize); in test_copy_struct_from_user() 144 memset(expected + usize, 0x0, ksize - usize); in test_copy_struct_from_user() [all …]
|
D | percpu_test.c | 5 #define CHECK(native, pcp, expected) \ argument 7 WARN((native) != (expected), \ 10 (long long)(expected), (long long)(expected)); \ 11 WARN(__this_cpu_read(pcp) != (expected), \ 14 (long long)(expected), (long long)(expected)); \
|
D | globtest.c | 16 bool expected; member 19 static bool __pure __init test(char const *pat, char const *str, bool expected) in test() argument 22 bool success = match == expected; in test() 144 bool expected = *p++ & 1; in glob_init() local 148 successes += test(pat, p, expected); in glob_init()
|
D | test_strscpy.c | 29 static int __init tc(char *src, int count, int expected, in tc() argument 55 if (expected > max_expected) { in tc() 57 expected, max_expected); in tc() 61 if ((written) != (expected)) { in tc() 62 pr_err("%d != %d (written, expected)\n", written, expected); in tc()
|
D | test_bitmap.c | 323 const unsigned long *expected; member 433 if (!err && ptest.expected in test_bitmap_parselist() 434 && !__bitmap_equal(bmap, ptest.expected, ptest.nbits)) { in test_bitmap_parselist() 437 *ptest.expected); in test_bitmap_parselist() 510 if (!err && test.expected in test_bitmap_parse() 511 && !__bitmap_equal(bmap, test.expected, test.nbits)) { in test_bitmap_parse() 514 *test.expected); in test_bitmap_parse() 627 unsigned long expected[4]; member 675 expect_eq_bitmap(t->expected, out, t->nbits); in test_bitmap_cut()
|
D | test_rhashtable.c | 144 bool expected = !(i % 2); in test_rht_lookup() local 150 expected = false; in test_rht_lookup() 154 if (expected && !obj) { in test_rht_lookup() 157 } else if (!expected && obj) { in test_rht_lookup() 161 } else if (expected && obj) { in test_rht_lookup()
|
D | test_lockup.c | 437 unsigned int expected) in test_magic() argument 445 if (get_kernel_nofault(magic, ptr) || magic != expected) { in test_magic() 447 addr, offset, magic, expected); in test_magic()
|
D | test_overflow.c | 604 #define check_one_size_helper(expected, func, args...) ({ \ in test_overflow_size_helpers() argument 609 if (_r != (expected)) { \ in test_overflow_size_helpers() 612 (size_t)(expected), _r); \ in test_overflow_size_helpers()
|
D | Kconfig.ubsan | 113 flow reaching an expected-to-be-unreachable position.
|
D | locking-selftest.c | 1399 static void dotest(void (*testcase_fn)(void), int expected, int lockclass_mask) in dotest() argument 1412 if (expected == FAILURE && debug_locks) { in dotest() 1418 if (debug_locks != expected) { in dotest() 1429 lockclass_mask, debug_locks, expected); in dotest()
|
D | Kconfig.kcsan | 175 # are not expected to be switched frequently by non-testers or at runtime.
|
D | Kconfig.debug | 858 verifying if they comply with expected generic MM semantics. This 860 new additions of these helpers still conform to expected
|
/lib/zstd/ |
D | decompress.c | 87 size_t expected; member 108 dctx->expected = ZSTD_frameHeaderSize_prefix; in ZSTD_decompressBegin() 1721 size_t ZSTD_nextSrcSizeToDecompress(ZSTD_DCtx *dctx) { return dctx->expected; } in ZSTD_nextSrcSizeToDecompress() 1746 if (srcSize != dctx->expected) in ZSTD_decompressContinue() 1757 …dctx->expected = ZSTD_skippableHeaderSize - ZSTD_frameHeaderSize_prefix; /* magic number + skippab… in ZSTD_decompressContinue() 1766 dctx->expected = dctx->headerSize - ZSTD_frameHeaderSize_prefix; in ZSTD_decompressContinue() 1770 dctx->expected = 0; /* not necessary to copy more */ in ZSTD_decompressContinue() 1774 memcpy(dctx->headerBuffer + ZSTD_frameHeaderSize_prefix, src, dctx->expected); in ZSTD_decompressContinue() 1776 dctx->expected = ZSTD_blockHeaderSize; in ZSTD_decompressContinue() 1785 dctx->expected = cBlockSize; in ZSTD_decompressContinue() [all …]
|
/lib/kunit/ |
D | Kconfig | 35 expected.
|