Home
last modified time | relevance | path

Searched +defs:test +defs:src (Results 1 – 25 of 31) sorted by relevance

12

/linux-6.15/lib/tests/
H A Dfortify_kunit.c139 #define KUNIT_EXPECT_BOS(test, p, expected, name) \ argument
415 static void fortify_test_strlen(struct kunit *test) in fortify_test_strlen()
476 static void fortify_test_strcpy(struct kunit *test) in fortify_test_strcpy()
479 char src[sizeof(pad.buf) + 1] = { }; in fortify_test_strcpy() local
537 char src[] = "Copy me fully into a small buffer and I will overflow!"; in fortify_test_strncpy() local
595 char src[] = "Copy me fully into a small buffer and I will overflow!"; in fortify_test_strscpy() local
653 char src[sizeof(pad.buf) / 2] = { }; in fortify_test_strcat() local
710 char src[sizeof(pad.buf)] = { }; in fortify_test_strncat() local
783 char src[sizeof(pad.buf)] = { }; in fortify_test_strlcat() local
1029 char src[] = "I got Doom running on it!"; in fortify_test_kmemdup() local
[all …]
H A Dstring_kunit.c20 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()
199 static void string_test_strcmp(struct kunit *test) in string_test_strcmp()
229 static void string_test_strncmp(struct kunit *test) in string_test_strncmp()
344 static void strscpy_check(struct kunit *test, char *src, int count, in strscpy_check()
401 static void string_test_strscpy(struct kunit *test) in string_test_strscpy()
[all …]
H A Dstring_helpers_kunit.c14 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()
482 static void __strchrcut(char *dst, const char *src, const char *cut) in __strchrcut()
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 …]
/linux-6.15/drivers/gpu/drm/tests/
H A Ddrm_rect_test.c25 static void drm_test_rect_clip_scaled_div_by_zero(struct kunit *test) in drm_test_rect_clip_scaled_div_by_zero()
27 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_div_by_zero() local
53 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_not_clipped() local
101 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_clipped() local
191 struct drm_rect src, dst, clip; in drm_test_rect_clip_scaled_signed_vs_unsigned() local
336 static void drm_test_rect_intersect(struct kunit *test) in drm_test_rect_intersect()
350 struct drm_rect src, dst; member
407 static void drm_test_rect_calc_hscale(struct kunit *test) in drm_test_rect_calc_hscale()
418 static void drm_test_rect_calc_vscale(struct kunit *test) in drm_test_rect_calc_vscale()
489 static void drm_test_rect_rotate(struct kunit *test) in drm_test_rect_rotate()
[all …]
H A Ddrm_format_helper_test.c649 struct iosys_map dst, src; in drm_test_fb_xrgb8888_to_gray8() local
682 struct iosys_map dst, src; in drm_test_fb_xrgb8888_to_rgb332() local
715 struct iosys_map dst, src; in drm_test_fb_xrgb8888_to_rgb565() local
769 struct iosys_map dst, src; in drm_test_fb_xrgb8888_to_xrgb1555() local
816 struct iosys_map dst, src; in drm_test_fb_xrgb8888_to_argb1555() local
863 struct iosys_map dst, src; in drm_test_fb_xrgb8888_to_rgba5551() local
910 struct iosys_map dst, src; in drm_test_fb_xrgb8888_to_rgb888() local
958 struct iosys_map dst, src; in drm_test_fb_xrgb8888_to_bgr888() local
1004 struct iosys_map dst, src; in drm_test_fb_xrgb8888_to_argb8888() local
1051 struct iosys_map dst, src; in drm_test_fb_xrgb8888_to_xrgb2101010() local
[all …]
H A Ddrm_plane_helper_test.c34 } src, src_expected; member
47 static int drm_plane_helper_init(struct kunit *test) in drm_plane_helper_init()
82 static void check_src_eq(struct kunit *test, struct drm_plane_state *plane_state, in check_src_eq()
101 static void check_crtc_eq(struct kunit *test, struct drm_plane_state *plane_state, in check_crtc_eq()
112 static void drm_test_check_plane_state(struct kunit *test) in drm_test_check_plane_state()
254 static void drm_test_check_invalid_plane_state(struct kunit *test) in drm_test_check_invalid_plane_state()
/linux-6.15/mm/kmsan/
H A Dkmsan_test.c179 static void test_init_kmalloc(struct kunit *test) in test_init_kmalloc()
192 static void test_init_kzalloc(struct kunit *test) in test_init_kzalloc()
246 static void test_params(struct kunit *test) in test_params()
365 static void test_uaf(struct kunit *test) in test_uaf()
403 static void test_printk(struct kunit *test) in test_printk()
423 const volatile void *src, size_t size) in memcpy_noinline()
429 static void test_init_memcpy(struct kunit *test) in test_init_memcpy()
432 volatile long long src; in test_init_memcpy() local
646 char buf[4], src[4]; in test_copy_from_kernel_nofault() local
689 static int test_init(struct kunit *test) in test_init()
[all …]
/linux-6.15/drivers/gpu/drm/xe/tests/
H A Dxe_migrate.c16 const char *str, struct kunit *test) in sanity_fence_failed()
39 struct kunit *test) in run_sanity_job()
73 struct kunit *test, u32 region) in test_copy()
164 struct kunit *test) in test_copy_sysmem()
170 struct kunit *test) in test_copy_vram()
341 struct kunit *test = kunit_get_current_test(); in migrate_test_run_device() local
378 struct ttm_resource *src = src_bo->ttm.resource, *dst = dst_bo->ttm.resource; in blt_copy() local
496 struct kunit *test) in test_migrate()
638 struct kunit *test) in validate_ccs_test_run_tile()
743 struct kunit *test = kunit_get_current_test(); in validate_ccs_test_run_device() local
[all …]
/linux-6.15/tools/testing/selftests/x86/
H A Dlam.c243 static uint64_t set_metadata(uint64_t src, unsigned long lam) in set_metadata()
271 static int handle_lam_test(void *src, unsigned int lam) in handle_lam_test()
288 int handle_max_bits(struct testcases *test) in handle_max_bits()
307 static int handle_malloc(struct testcases *test) in handle_malloc()
339 static int handle_mmap(struct testcases *test) in handle_mmap()
375 static int handle_syscall(struct testcases *test) in handle_syscall()
736 int handle_uring(struct testcases *test) in handle_uring()
754 static int fork_test(struct testcases *test) in fork_test()
774 static int handle_execve(struct testcases *test) in handle_execve()
847 struct testcases *test = arg; in thread_fn_set_lam() local
[all …]
/linux-6.15/tools/testing/selftests/mm/
H A Dmremap_test.c40 struct test { struct
64 (struct test){ \ argument
330 void *src, *dest; in mremap_move_within_range() local
571 void *src = NULL, *dest = NULL; in mremap_move_1mb_from_start() local
/linux-6.15/mm/kasan/
H A Dkasan_test_c.c91 static void kasan_test_exit(struct kunit *test) in kasan_test_exit()
449 static void krealloc_uaf(struct kunit *test) in krealloc_uaf()
648 static void kmalloc_uaf(struct kunit *test) in kmalloc_uaf()
680 static void kmalloc_uaf2(struct kunit *test) in kmalloc_uaf2()
714 static void kmalloc_uaf3(struct kunit *test) in kmalloc_uaf3()
855 static void ksize_uaf(struct kunit *test) in ksize_uaf()
892 static void rcu_uaf(struct kunit *test) in rcu_uaf()
1570 char *src; in kasan_strings() local
1735 static void vmalloc_oob(struct kunit *test) in vmalloc_oob()
1786 static void vmap_tags(struct kunit *test) in vmap_tags()
[all …]
/linux-6.15/tools/testing/selftests/bpf/prog_tests/
H A Dflow_dissector_classification.c122 static void build_ipv4_header(void *header, uint8_t proto, uint32_t src, in build_ipv4_header()
150 const struct sockaddr_in6 *src, in build_ipv6_header()
206 static int build_packet(const struct test_configuration *test, uint16_t sport) in build_packet()
329 static int setup_tx(const struct test_configuration *test) in setup_tx()
385 static int setup_rx(const struct test_configuration *test) in setup_rx()
446 static int run_test(const struct test_configuration *test, in run_test()
771 const struct test_configuration *test; in test_flow_dissector_classification() local
H A Dcls_redirect.c35 struct addr_port src; member
173 static int test_str(void *buf, size_t len, const struct test_cfg *test, in test_str()
244 static size_t build_input(const struct test_cfg *test, void *const buf, in build_input()
368 struct test_cfg *test = &tests[i]; in test_cls_redirect_common() local
/linux-6.15/net/mctp/test/
H A Droute-test.c63 static void mctp_test_route_destroy(struct kunit *test, in mctp_test_route_destroy()
141 static void mctp_test_fragment(struct kunit *test) in mctp_test_fragment()
246 static void mctp_test_rx_input(struct kunit *test) in mctp_test_rx_input()
293 static void __mctp_route_test_init(struct kunit *test, in __mctp_route_test_init()
328 static void __mctp_route_test_fini(struct kunit *test, in __mctp_route_test_fini()
344 static void mctp_test_route_input_sk(struct kunit *test) in mctp_test_route_input_sk()
1034 static void mctp_test_flow_init(struct kunit *test, in mctp_test_flow_init()
1072 static void mctp_test_flow_fini(struct kunit *test, in mctp_test_flow_fini()
1081 static void mctp_test_packet_flow(struct kunit *test) in mctp_test_packet_flow()
1155 static void mctp_test_packet_flow(struct kunit *test) in mctp_test_packet_flow()
[all …]
/linux-6.15/drivers/thunderbolt/
H A Dtest.c31 static void kunit_ida_init(struct kunit *test, struct ida *ida) in kunit_ida_init()
72 static struct tb_switch *alloc_host(struct kunit *test) in alloc_host()
423 static void tb_test_path_basic(struct kunit *test) in tb_test_path_basic()
1334 static void tb_test_tunnel_pcie(struct kunit *test) in tb_test_tunnel_pcie()
1389 static void tb_test_tunnel_dp(struct kunit *test) in tb_test_tunnel_dp()
1603 static void tb_test_tunnel_3dp(struct kunit *test) in tb_test_tunnel_3dp()
1668 static void tb_test_tunnel_usb3(struct kunit *test) in tb_test_tunnel_usb3()
1789 static void tb_test_tunnel_dma(struct kunit *test) in tb_test_tunnel_dma()
1832 static void tb_test_tunnel_dma_rx(struct kunit *test) in tb_test_tunnel_dma_rx()
1869 static void tb_test_tunnel_dma_tx(struct kunit *test) in tb_test_tunnel_dma_tx()
[all …]
/linux-6.15/net/core/
H A Dnet_test.c147 static void gso_test_func(struct kunit *test) in gso_test_func()
280 #define IP_TUNNEL_FLAGS_TEST(n, src, comp, eval, exp) { \ argument
352 static void ip_tunnel_flags_test_run(struct kunit *test) in ip_tunnel_flags_test_run()
/linux-6.15/tools/testing/selftests/bpf/
H A Dtest_progs.c403 static void dump_test_log(const struct prog_test_def *test, in dump_test_log()
521 struct prog_test_def *test = env.test; in test__end_subtest() local
547 struct prog_test_def *test = env.test; in test__start_subtest() local
1377 struct prog_test_def *test = &prog_test_defs[test_num]; in run_one_test() local
1504 struct prog_test_def *test; in dispatch_thread() local
1641 struct prog_test_def *test = &prog_test_defs[i]; in calculate_summary_and_print_errors() local
1724 struct prog_test_def *test = &prog_test_defs[i]; in server_main() local
1750 char *src; in worker_main_send_log() local
1853 struct prog_test_def *test = &prog_test_defs[test_to_run]; in worker_main() local
1990 struct prog_test_def *test = &prog_test_defs[i]; in main() local
[all …]
H A Dtest_sockmap.c1049 static int run_options(struct sockmap_options *options, int cg_fd, int test) in run_options()
1401 static char *test_to_str(int test) in test_to_str()
1412 static void append_str(char *dst, const char *src, size_t dst_cap) in append_str()
1468 static int __test_exec(int cgrp, int test, struct sockmap_options *opt) in __test_exec()
1985 struct _test test[] = { variable
2112 int test = SELFTESTS; in main() local
/linux-6.15/lib/
H A Dtest_bpf.c80 } test[MAX_SUBTESTS]; member
877 s64 dst, src; in __bpf_fill_pattern() local
895 s64 dst, src; in __bpf_fill_pattern() local
979 struct bpf_insn *insns, s64 dst, s64 src) in __bpf_emit_alu64_reg()
1001 struct bpf_insn *insns, s64 dst, s64 src) in __bpf_emit_alu32_reg()
1424 u64 dst, src, res, same; in __bpf_fill_alu_reg_pairs() local
1709 struct bpf_insn *insns, s64 dst, s64 src) in __bpf_emit_cmpxchg64()
1749 struct bpf_insn *insns, s64 dst, s64 src) in __bpf_emit_cmpxchg32()
1948 u64 cmp, src; in __bpf_fill_atomic_reg_pairs() local
15470 struct tail_call_test *test = &tail_call_tests[which]; in prepare_tail_call_tests() local
[all …]
/linux-6.15/net/bridge/
H A Dbr_mrp.c134 const u8 *src, const u8 *dst) in br_mrp_skb_alloc()
703 struct br_mrp_start_test *test) in br_mrp_start_test()
/linux-6.15/crypto/
H A Dtestmgr.c148 int (*test)(const struct alg_test_desc *desc, const char *driver, member
741 struct test_sglist src; member
2364 struct scatterlist src[2], dst; in generate_aead_message() local
3057 struct scatterlist src, dst; in generate_random_cipher_testvec() local
3332 struct scatterlist src, dst; in test_acomp() local
3676 static int drbg_cavs_test(const struct drbg_testvec *test, int pr, in drbg_cavs_test()
3783 struct scatterlist src, dst; in do_test_kpp() local
3967 struct scatterlist src, dst, src_tab[2]; in test_akcipher_one() local
/linux-6.15/net/sunrpc/auth_gss/
H A Dsvcauth_gss.c146 static int dup_to_netobj(struct xdr_netobj *dst, char *src, int len) in dup_to_netobj()
155 static inline int dup_netobj(struct xdr_netobj *dst, struct xdr_netobj *src) in dup_netobj()
814 struct auth_domain *test; in svcauth_gss_register_pseudoflavor() local
/linux-6.15/drivers/video/fbdev/
H A Dpxa168fb.h234 #define CFG_GRA_TSTMODE(test) ((test) << 13) argument
251 #define CFG_DMA_TSTMODE(test) ((test) << 5) argument
332 #define SCLK_SOURCE_SELECT(src) ((src) << 31) argument
/linux-6.15/net/ethtool/
H A Dioctl.c345 struct ethtool_link_ksettings *src) in ethtool_intersect_link_masks()
369 const unsigned long *src) in ethtool_convert_link_mode_to_legacy_u32()
2195 struct ethtool_test test; in ethtool_self_test() local
/linux-6.15/drivers/net/ethernet/myricom/myri10ge/
H A Dmyri10ge.c849 char *test = " "; in myri10ge_dma_test() local
1164 struct mcp_kreq_ether_recv *src) in myri10ge_submit_8rx()
2520 struct mcp_kreq_ether_send *src, int cnt) in myri10ge_submit_req_backwards()
2540 myri10ge_submit_req(struct myri10ge_tx_buf *tx, struct mcp_kreq_ether_send *src, in myri10ge_submit_req()

12