Home
last modified time | relevance | path

Searched +defs:fmt +defs:test (Results 1 – 25 of 56) sorted by relevance

123

/linux-6.14.4/include/kunit/
Dtest.h309 static inline void kunit_set_failure(struct kunit *test) in kunit_set_failure()
447 static inline void *kunit_kmalloc(struct kunit *test, size_t size, gfp_t gfp) in kunit_kmalloc()
467 static inline void *kunit_kzalloc(struct kunit *test, size_t size, gfp_t gfp) in kunit_kzalloc()
481 static inline void *kunit_kcalloc(struct kunit *test, size_t n, size_t size, gfp_t gfp) in kunit_kcalloc()
506 static inline char *kunit_kstrdup(struct kunit *test, const char *str, gfp_t gfp) in kunit_kstrdup()
566 #define kunit_mark_skipped(test_or_suite, fmt, ...) \ argument
585 #define kunit_skip(test_or_suite, fmt, ...) \ argument
595 #define kunit_log(lvl, test_or_suite, fmt, ...) \ argument
602 #define kunit_printk(lvl, test, fmt, ...) \ argument
615 #define kunit_info(test, fmt, ...) \ argument
[all …]
/linux-6.14.4/sound/soc/
Dsoc-utils-test.c14 snd_pcm_format_t fmt; member
118 static void test_tdm_params_to_bclk_one(struct kunit *test, in test_tdm_params_to_bclk_one()
119 unsigned int rate, snd_pcm_format_t fmt, in test_tdm_params_to_bclk_one()
144 static void test_tdm_params_to_bclk(struct kunit *test) in test_tdm_params_to_bclk()
173 static void test_snd_soc_params_to_bclk_one(struct kunit *test, in test_snd_soc_params_to_bclk_one()
174 unsigned int rate, snd_pcm_format_t fmt, in test_snd_soc_params_to_bclk_one()
196 static void test_snd_soc_params_to_bclk(struct kunit *test) in test_snd_soc_params_to_bclk()
/linux-6.14.4/lib/
Doverflow_kunit.c7 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
253 #define check_one_op(t, fmt, op, sym, a, b, r, of) do { \ argument
300 #define check_self_op(fmt, op, sym, a, b) do { \ argument
326 #define DEFINE_TEST_FUNC_TYPED(n, t, fmt) \ argument
356 #define DEFINE_TEST_FUNC(t, fmt) \ argument
418 static void shift_sane_test(struct kunit *test) in shift_sane_test()
467 static void shift_overflow_test(struct kunit *test) in shift_overflow_test()
521 static void shift_truncate_test(struct kunit *test) in shift_truncate_test()
559 static void shift_nonsense_test(struct kunit *test) in shift_nonsense_test()
669 static void overflow_allocation_test(struct kunit *test) in overflow_allocation_test()
[all …]
Dtest-kstrtox.c5 #define for_each_test(i, test) \ argument
13 #define DEFINE_TEST_FAIL(test) \ argument
23 #define DEFINE_TEST_OK(type, test) \ argument
26 #define TEST_FAIL(fn, type, fmt, test) \ argument
45 #define TEST_OK(fn, type, fmt, test) \ argument
Dcmdline_kunit.c41 static void cmdline_do_one_test(struct kunit *test, const char *in, int rc, int offset) in cmdline_do_one_test()
43 const char *fmt = "Pattern: %s"; in cmdline_do_one_test() local
54 static void cmdline_test_noint(struct kunit *test) in cmdline_test_noint()
69 static void cmdline_test_lead_int(struct kunit *test) in cmdline_test_lead_int()
86 static void cmdline_test_tail_int(struct kunit *test) in cmdline_test_tail_int()
107 static void cmdline_do_one_range_test(struct kunit *test, const char *in, in cmdline_do_one_range_test()
130 static void cmdline_test_range(struct kunit *test) in cmdline_test_range()
Dusercopy_kunit.c11 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
46 static void usercopy_test_check_nonzero_user(struct kunit *test) in usercopy_test_check_nonzero_user()
105 static void usercopy_test_copy_struct_from_user(struct kunit *test) in usercopy_test_copy_struct_from_user()
176 static void usercopy_test_valid(struct kunit *test) in usercopy_test_valid()
217 static void usercopy_test_invalid(struct kunit *test) in usercopy_test_invalid()
288 static int usercopy_test_init(struct kunit *test) in usercopy_test_init()
Dstring_kunit.c6 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
16 #define STRCMP_TEST_EXPECT_EQUAL(test, fn, ...) KUNIT_EXPECT_EQ(test, fn(__VA_ARGS__), 0) argument
17 #define STRCMP_TEST_EXPECT_LOWER(test, fn, ...) KUNIT_EXPECT_LT(test, fn(__VA_ARGS__), 0) argument
18 #define STRCMP_TEST_EXPECT_GREATER(test, fn, ...) KUNIT_EXPECT_GT(test, fn(__VA_ARGS__), 0) argument
20 static void string_test_memset16(struct kunit *test) in string_test_memset16()
49 static void string_test_memset32(struct kunit *test) in string_test_memset32()
78 static void string_test_memset64(struct kunit *test) in string_test_memset64()
107 static void string_test_strchr(struct kunit *test) in string_test_strchr()
130 static void string_test_strnchr(struct kunit *test) in string_test_strnchr()
163 static void string_test_strspn(struct kunit *test) in string_test_strspn()
[all …]
Dmemcpy_kunit.c5 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
50 static void memcpy_test(struct kunit *test) in memcpy_test()
110 static void memmove_test(struct kunit *test) in memmove_test()
207 static void memset_test(struct kunit *test) in memset_test()
299 static void set_random_nonzero(struct kunit *test, u8 *byte) in set_random_nonzero()
310 static void init_large(struct kunit *test) in init_large()
327 static void copy_large_test(struct kunit *test, bool use_memmove) in copy_large_test()
366 static void memcpy_large_test(struct kunit *test) in memcpy_large_test()
371 static void memmove_large_test(struct kunit *test) in memmove_large_test()
395 static void inner_loop(struct kunit *test, int bytes, int d_off, int s_off) in inner_loop()
[all …]
Dstring_helpers_kunit.c5 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
14 static void test_string_check_buf(struct kunit *test, in test_string_check_buf()
54 static void test_string_unescape(struct kunit *test, in test_string_unescape()
395 test_string_escape_overflow(struct kunit *test, in test_string_escape_overflow()
405 static void test_string_escape(struct kunit *test, const char *name, in test_string_escape()
470 static void test_string_get_size_check(struct kunit *test, in test_string_get_size_check()
496 static void __test_string_get_size_one(struct kunit *test, in __test_string_get_size_one()
523 static void __test_string_get_size(struct kunit *test, in __test_string_get_size()
546 static void test_get_size(struct kunit *test) in test_get_size()
566 static void test_upper_lower(struct kunit *test) in test_upper_lower()
[all …]
Dfortify_kunit.c16 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
84 static void fortify_test_known_sizes(struct kunit *test) in fortify_test_known_sizes()
117 static void fortify_test_control_flow_split(struct kunit *test) in fortify_test_control_flow_split()
122 #define KUNIT_EXPECT_BOS(test, p, expected, name) \ argument
128 #define KUNIT_EXPECT_BDOS(test, p, expected, name) \ argument
132 #define KUNIT_EXPECT_BDOS(test, p, expected, name) \ argument
380 static void fortify_test_realloc_size(struct kunit *test) in fortify_test_realloc_size()
400 static void fortify_test_strlen(struct kunit *test) in fortify_test_strlen()
423 static void fortify_test_strnlen(struct kunit *test) in fortify_test_strnlen()
461 static void fortify_test_strcpy(struct kunit *test) in fortify_test_strcpy()
[all …]
Dsiphash_kunit.c14 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
113 #define chk(hash, vector, fmt...) \ argument
116 static void siphash_test(struct kunit *test) in siphash_test()
Dis_signed_type_kunit.c5 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
19 static void is_signed_type_test(struct kunit *test) in is_signed_type_test()
Dtest_hexdump.c4 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
68 int groupsize, char *test, in test_hexdump_prepare_test()
128 char test[TEST_HEXDUMP_BUF_SIZE]; in test_hexdump() local
164 char test[TEST_HEXDUMP_BUF_SIZE]; in test_hexdump_overflow() local
Dkunit_iov_iter.c8 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
48 static void *__init iov_kunit_create_buffer(struct kunit *test, in iov_kunit_create_buffer()
73 static void __init iov_kunit_load_kvec(struct kunit *test, in iov_kunit_load_kvec()
99 static void __init iov_kunit_copy_to_kvec(struct kunit *test) in iov_kunit_copy_to_kvec()
149 static void __init iov_kunit_copy_from_kvec(struct kunit *test) in iov_kunit_copy_from_kvec()
217 static void __init iov_kunit_load_bvec(struct kunit *test, in iov_kunit_load_bvec()
258 static void __init iov_kunit_copy_to_bvec(struct kunit *test) in iov_kunit_copy_to_bvec()
312 static void __init iov_kunit_copy_from_bvec(struct kunit *test) in iov_kunit_copy_from_bvec()
379 static void __init iov_kunit_load_folioq(struct kunit *test, in iov_kunit_load_folioq()
402 static struct folio_queue *iov_kunit_create_folioq(struct kunit *test) in iov_kunit_create_folioq()
[all …]
/linux-6.14.4/lib/kunit/
Dtest.c33 void __printf(3, 4) __kunit_fail_current_test_impl(const char *file, int line, const char *fmt, ...) in __kunit_fail_current_test_impl()
101 static void kunit_print_test_stats(struct kunit *test, in kunit_print_test_stats()
118 void kunit_log_append(struct string_stream *log, const char *fmt, ...) in kunit_log_append()
168 static void kunit_print_ok_not_ok(struct kunit *test, in kunit_print_ok_not_ok()
251 static void kunit_print_string_stream(struct kunit *test, in kunit_print_string_stream()
274 static void kunit_fail(struct kunit *test, const struct kunit_loc *loc, in kunit_fail()
299 void __noreturn __kunit_abort(struct kunit *test) in __kunit_abort()
313 void __kunit_do_failed_assertion(struct kunit *test, in __kunit_do_failed_assertion()
318 const char *fmt, ...) in __kunit_do_failed_assertion()
333 void kunit_init_test(struct kunit *test, const char *name, struct string_stream *log) in kunit_init_test()
[all …]
Dstring-stream.c42 const char *fmt, in string_stream_vadd()
90 int string_stream_add(struct string_stream *stream, const char *fmt, ...) in string_stream_add()
190 struct string_stream *kunit_alloc_string_stream(struct kunit *test, gfp_t gfp) in kunit_alloc_string_stream()
204 void kunit_free_string_stream(struct kunit *test, struct string_stream *stream) in kunit_free_string_stream()
/linux-6.14.4/drivers/gpu/drm/tests/
Ddrm_exec_test.c6 #define pr_fmt(fmt) "drm_exec: " fmt argument
26 static int drm_exec_test_init(struct kunit *test) in drm_exec_test_init()
45 static void sanitycheck(struct kunit *test) in sanitycheck()
54 static void test_lock(struct kunit *test) in test_lock()
74 static void test_lock_unlock(struct kunit *test) in test_lock_unlock()
101 static void test_duplicates(struct kunit *test) in test_duplicates()
128 static void test_prepare(struct kunit *test) in test_prepare()
150 static void test_prepare_array(struct kunit *test) in test_prepare_array()
173 static void test_multiple_loops(struct kunit *test) in test_multiple_loops()
/linux-6.14.4/sound/core/
Dsound_kunit.c14 #define DEFINE_FORMAT(fmt, pbits, wd, endianness, signd, silence_arr) { \ argument
99 static void test_phys_format_size(struct kunit *test) in test_phys_format_size()
112 static void test_format_width(struct kunit *test) in test_format_width()
125 static void test_format_signed(struct kunit *test) in test_format_signed()
140 static void test_format_endianness(struct kunit *test) in test_format_endianness()
157 static void _test_fill_silence(struct kunit *test, const struct snd_format_test_data *data, in _test_fill_silence()
168 static void test_format_fill_silence(struct kunit *test) in test_format_fill_silence()
207 static void test_playback_avail(struct kunit *test) in test_playback_avail()
235 static void test_capture_avail(struct kunit *test) in test_capture_avail()
256 static void test_card_set_id(struct kunit *test) in test_card_set_id()
[all …]
/linux-6.14.4/kernel/kcsan/
Dkcsan_test.c16 #define pr_fmt(fmt) "kcsan_test: " fmt argument
35 #define KCSAN_TEST_REQUIRES(test, cond) do { \ argument
528 static void test_barrier_nothreads(struct kunit *test) in test_barrier_nothreads()
713 static void test_basic(struct kunit *test) in test_basic()
744 static void test_concurrent_races(struct kunit *test) in test_concurrent_races()
773 static void test_novalue_change(struct kunit *test) in test_novalue_change()
805 static void test_novalue_change_exception(struct kunit *test) in test_novalue_change_exception()
831 static void test_unknown_origin(struct kunit *test) in test_unknown_origin()
853 static void test_write_write_assume_atomic(struct kunit *test) in test_write_write_assume_atomic()
879 static void test_write_write_struct(struct kunit *test) in test_write_write_struct()
[all …]
/linux-6.14.4/arch/parisc/kernel/
Dpdc_chassis.c15 #define DPRINTK(fmt, args...) printk(fmt, ## args) argument
17 #define DPRINTK(fmt, args...) argument
271 unsigned long test; in pdc_chassis_create_procfs() local
/linux-6.14.4/mm/kasan/
Dkasan_test_c.c8 #define pr_fmt(fmt) "kasan: test: " fmt argument
91 static void kasan_test_exit(struct kunit *test) in kasan_test_exit()
118 #define KUNIT_EXPECT_KASAN_FAIL(test, expression) do { \ argument
144 #define KASAN_TEST_NEEDS_CONFIG_ON(test, config) do { \ argument
149 #define KASAN_TEST_NEEDS_CONFIG_OFF(test, config) do { \ argument
154 #define KASAN_TEST_NEEDS_CHECKED_MEMINTRINSICS(test) do { \ argument
163 static void kmalloc_oob_right(struct kunit *test) in kmalloc_oob_right()
192 static void kmalloc_oob_left(struct kunit *test) in kmalloc_oob_left()
205 static void kmalloc_node_oob_right(struct kunit *test) in kmalloc_node_oob_right()
218 static void kmalloc_track_caller_oob_right(struct kunit *test) in kmalloc_track_caller_oob_right()
[all …]
/linux-6.14.4/drivers/net/ethernet/microchip/vcap/
Dvcap_api_debugfs_kunit.c259 int test_prf(void *out, const char *fmt, ...) in test_prf()
292 static void vcap_api_addr_keyset_test(struct kunit *test) in vcap_api_addr_keyset_test()
343 static void vcap_api_show_admin_raw_test(struct kunit *test) in vcap_api_show_admin_raw_test()
401 static void vcap_api_show_admin_test(struct kunit *test) in vcap_api_show_admin_test()
474 static void vcap_api_show_admin_rule_test(struct kunit *test) in vcap_api_show_admin_rule_test()
/linux-6.14.4/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Ddebug.h35 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
45 #define brcmf_err(fmt, ...) \ argument
54 #define bphy_err(drvr, fmt, ...) \ argument
63 #define bphy_info_once(drvr, fmt, ...) \ argument
74 #define brcmf_dbg(level, fmt, ...) \ argument
91 #define brcmf_info(fmt, ...) \ argument
96 #define brcmf_dbg(level, fmt, ...) no_printk(fmt, ##__VA_ARGS__) argument
110 #define brcmf_dbg_hex_dump(test, data, len, fmt, ...) \ argument
/linux-6.14.4/fs/unicode/
Dutf8-selftest.c8 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt argument
20 #define _test(cond, func, line, fmt, ...) do { \ argument
30 #define test_f(cond, fmt, ...) _test(cond, __func__, __LINE__, fmt, ##__VA_ARGS__) argument
31 #define test(cond) _test(cond, __func__, __LINE__, "") macro
/linux-6.14.4/tools/testing/selftests/nolibc/
Dnolibc-test.c76 struct test { struct
77 const char *name; /* test name */ argument
78 int (*func)(int min, int max); /* handler */
705 int test; in run_startup() local
1002 int test; in run_syscall() local
1115 int test; in run_stdlib() local
1235 #define EXPECT_VFPRINTF(c, expected, fmt, ...) \ argument
1238 static int expect_vfprintf(int llen, int c, const char *expected, const char *fmt, ...) in expect_vfprintf()
1289 int test; in run_vfprintf() local
1452 static int is_setting_valid(char *test) in is_setting_valid()
[all …]

123