/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | btf_write.c | 33 ASSERT_STREQ(btf__str_by_offset(btf, t->name_off), "int", "int_name"); in gen_btf() 38 ASSERT_STREQ(btf_type_raw_dump(btf, 1), in gen_btf() 60 ASSERT_STREQ(btf_type_raw_dump(btf, 2), in gen_btf() 68 ASSERT_STREQ(btf_type_raw_dump(btf, 3), in gen_btf() 76 ASSERT_STREQ(btf_type_raw_dump(btf, 4), in gen_btf() 84 ASSERT_STREQ(btf_type_raw_dump(btf, 5), in gen_btf() 95 ASSERT_STREQ(btf_type_raw_dump(btf, 6), in gen_btf() 109 ASSERT_STREQ(btf__str_by_offset(btf, t->name_off), "s1", "struct_name"); in gen_btf() 115 ASSERT_STREQ(btf__str_by_offset(btf, m->name_off), "f1", "f1_name"); in gen_btf() 120 ASSERT_STREQ(btf__str_by_offset(btf, m->name_off), "f2", "f2_name"); in gen_btf() [all …]
|
H A D | snprintf.c | 54 ASSERT_STREQ(skel->bss->num_out, EXP_NUM_OUT, "num_out"); in test_snprintf_positive() 57 ASSERT_STREQ(skel->bss->ip_out, EXP_IP_OUT, "ip_out"); in test_snprintf_positive() 68 ASSERT_STREQ(skel->bss->str_out, EXP_STR_OUT, "str_out"); in test_snprintf_positive() 71 ASSERT_STREQ(skel->bss->over_out, EXP_OVER_OUT, "over_out"); in test_snprintf_positive() 74 ASSERT_STREQ(skel->bss->pad_out, EXP_PAD_OUT, "pad_out"); in test_snprintf_positive() 77 ASSERT_STREQ(skel->bss->noarg_out, EXP_NO_ARG_OUT, "no_arg_out"); in test_snprintf_positive()
|
H A D | log_buf.c | 123 ASSERT_STREQ(obj_log_buf, "", "obj_log__empty"); in obj_load_log_buf() 124 …ASSERT_STREQ(good_log_buf, "processed 4 insns (limit 1000000) max_states_per_insn 0 total_states 0… in obj_load_log_buf() 126 ASSERT_STREQ(bad_log_buf, "", "bad_log_empty"); in obj_load_log_buf() 168 ASSERT_STREQ(log_buf, "", "good_log_0"); in bpf_prog_load_log_buf() 229 ASSERT_STREQ(log_buf, "", "good_log_0"); in bpf_btf_load_log_buf()
|
H A D | libbpf_str.c | 55 ASSERT_STREQ(buf, attach_type_name, "exp_str_value"); in test_libbpf_bpf_attach_type_str() 100 ASSERT_STREQ(buf, link_type_name, "exp_str_value"); in test_libbpf_bpf_link_type_str() 157 ASSERT_STREQ(buf, map_type_name, "exp_str_value"); in test_libbpf_bpf_map_type_str() 202 ASSERT_STREQ(buf, prog_type_name, "exp_str_value"); in test_libbpf_bpf_prog_type_str()
|
H A D | btf_split.c | 48 ASSERT_STREQ(btf__str_by_offset(btf2, t->name_off), "int", "int_name"); in test_btf_split() 64 ASSERT_STREQ(btf__str_by_offset(btf2, t->name_off), "s2", "split_struct_name"); in test_btf_split() 79 ASSERT_STREQ(dump_buf, in test_btf_split()
|
H A D | btf_dedup_split.c | 31 ASSERT_STREQ(btf_type_c_dump(btf1), "\ in test_split_simple() 50 ASSERT_STREQ(btf__str_by_offset(btf2, t->name_off), "int", "int_name"); in test_split_simple() 80 ASSERT_STREQ(btf_type_c_dump(btf2), "\ in test_split_simple() 110 ASSERT_STREQ(btf_type_c_dump(btf2), "\ in test_split_simple()
|
H A D | subskeleton.c | 35 ASSERT_STREQ(bpf_program__name(lib->progs.lib_perf_handler), in subskeleton_lib_subresult() 39 ASSERT_STREQ(bpf_map__name(lib->maps.map1), "map1", "map name"); in subskeleton_lib_subresult()
|
H A D | bpf_obj_id.c | 92 !ASSERT_STREQ((char *)map_infos[i].name, expected_map_name, "map_name")) in serial_test_bpf_obj_id() 133 !ASSERT_STREQ((char *)prog_infos[i].name, expected_prog_name, "prog_name")) in serial_test_bpf_obj_id() 147 !ASSERT_STREQ(u64_to_ptr(link_infos[i].raw_tracepoint.tp_name), "sys_enter", "tp_name")) in serial_test_bpf_obj_id()
|
H A D | skeleton.c | 42 ASSERT_STREQ(bpf_map__name(skel->maps.rodata_dyn), ".rodata.dyn", "rodata_dyn_name"); in test_skeleton() 43 ASSERT_STREQ(bpf_map__name(skel->maps.data_dyn), ".data.dyn", "data_dyn_name"); in test_skeleton()
|
H A D | verifier_log.c | 168 if (!ASSERT_STREQ(logs.buf + i, logs.filler + i, op_name)) { in verif_log_subtest() 344 if (!ASSERT_STREQ(logs.buf, exp_log, op_name)) { in verif_btf_log_subtest() 353 if (!ASSERT_STREQ(logs.buf + i, logs.filler + i, op_name)) { in verif_btf_log_subtest()
|
H A D | pinning.c | 129 if (!ASSERT_STREQ(bpf_map__pin_path(map), pinpath, "get pin path")) in test_pinning() 142 if (!ASSERT_STREQ(bpf_map__pin_path(map), custpinpath, in test_pinning()
|
H A D | sockopt_qos_to_cc.c | 25 if (!ASSERT_STREQ(cc, "reno", "getsockopt(sock_fd, TCP_CONGESTION)")) in run_setsockopt_test()
|
H A D | cgroup_iter.c | 84 ASSERT_STREQ(buf, expected_output, testname); in read_from_cgroup_iter() 253 ASSERT_STREQ(buf, expected_output, "dead cgroup output"); in test_walk_dead_self_only()
|
H A D | btf_endian.c | 92 ASSERT_STREQ(btf__str_by_offset(swap_btf, t->name_off), "some_var", "var_name"); in test_btf_endian()
|
H A D | type_cast.c | 37 ASSERT_STREQ(skel->bss->name, "lo", "xdp_md name"); in test_xdp()
|
H A D | sk_storage_tracing.c | 42 if (!ASSERT_STREQ(sk_stg.comm, skel->bss->task_comm, "task_comm")) in check_sk_stg()
|
H A D | bpf_tcp_ca.c | 302 ASSERT_STREQ(dctcp_skel->bss->cc_res, "cubic", "cc_res"); in test_dctcp_fallback() 312 ASSERT_STREQ(srv_cc, "cubic", "srv_fd cc"); in test_dctcp_fallback()
|
H A D | btf_dump.c | 193 ASSERT_STREQ(dump_buf, in test_btf_dump_incremental() 242 ASSERT_STREQ(dump_buf, in test_btf_dump_incremental() 302 if (!ASSERT_STREQ(str, expected_val, "ensure expected/actual match")) in btf_dump_data()
|
H A D | migrate_reuseport.c | 429 if (!ASSERT_STREQ(buf, MSG, "read")) in count_requests()
|
H A D | bpf_iter.c | 553 if (!ASSERT_STREQ(buf, expected, "read")) in do_read_with_fd() 1472 ASSERT_STREQ(task_vma_output, proc_maps_output, "compare_output"); in test_task_vma_common()
|
H A D | fill_link_info.c | 457 ASSERT_STREQ(path_buf, path, "info.uprobe_multi.path"); in verify_umulti_link_info()
|
/linux/tools/testing/selftests/bpf/ |
H A D | btf_helpers.c | 242 if (!ASSERT_STREQ(btf_type_raw_dump(btf, i), exp_types[i - 1], "raw_dump")) in btf_validate_raw()
|
H A D | test_progs.h | 307 #define ASSERT_STREQ(actual, expected, name) ({ \ macro
|
/linux/tools/testing/selftests/ |
H A D | kselftest_harness.h | 607 #define ASSERT_STREQ(expected, seen) \ macro
|
/linux/Documentation/dev-tools/ |
H A D | kselftest.rst | 436 ASSERT_STREQ ASSERT_STRNE EXPECT_EQ EXPECT_NE EXPECT_LT
|