Home
last modified time | relevance | path

Searched refs:ASSERT_STREQ (Results 1 – 14 of 14) sorted by relevance

/tools/testing/selftests/bpf/prog_tests/
Dbtf_write.c36 ASSERT_STREQ(btf__str_by_offset(btf, t->name_off), "int", "int_name"); in test_btf_write()
41 ASSERT_STREQ(btf_type_raw_dump(btf, 1), in test_btf_write()
63 ASSERT_STREQ(btf_type_raw_dump(btf, 2), in test_btf_write()
71 ASSERT_STREQ(btf_type_raw_dump(btf, 3), in test_btf_write()
79 ASSERT_STREQ(btf_type_raw_dump(btf, 4), in test_btf_write()
87 ASSERT_STREQ(btf_type_raw_dump(btf, 5), in test_btf_write()
98 ASSERT_STREQ(btf_type_raw_dump(btf, 6), in test_btf_write()
112 ASSERT_STREQ(btf__str_by_offset(btf, t->name_off), "s1", "struct_name"); in test_btf_write()
118 ASSERT_STREQ(btf__str_by_offset(btf, m->name_off), "f1", "f1_name"); in test_btf_write()
123 ASSERT_STREQ(btf__str_by_offset(btf, m->name_off), "f2", "f2_name"); in test_btf_write()
[all …]
Dsnprintf.c54 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()
Dbtf_split.c49 ASSERT_STREQ(btf__str_by_offset(btf2, t->name_off), "int", "int_name"); in test_btf_split()
65 ASSERT_STREQ(btf__str_by_offset(btf2, t->name_off), "s2", "split_struct_name"); in test_btf_split()
81 ASSERT_STREQ(dump_buf, in test_btf_split()
Dbtf_dedup_split.c31 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()
Dsockopt_qos_to_cc.c25 if (!ASSERT_STREQ(cc, "reno", "getsockopt(sock_fd, TCP_CONGESTION)")) in run_setsockopt_test()
Dpinning.c129 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()
Dsk_storage_tracing.c42 if (!ASSERT_STREQ(sk_stg.comm, skel->bss->task_comm, "task_comm")) in check_sk_stg()
Dbtf_endian.c92 ASSERT_STREQ(btf__str_by_offset(swap_btf, t->name_off), "some_var", "var_name"); in test_btf_endian()
Dbpf_tcp_ca.c289 ASSERT_STREQ(dctcp_skel->bss->cc_res, "cubic", "cc_res"); in test_dctcp_fallback()
295 ASSERT_STREQ(srv_cc, "cubic", "srv_fd cc"); in test_dctcp_fallback()
Dbtf_dump.c181 ASSERT_STREQ(dump_buf, in test_btf_dump_incremental()
220 ASSERT_STREQ(dump_buf, in test_btf_dump_incremental()
279 if (!ASSERT_STREQ(str, expected_val, "ensure expected/actual match")) in btf_dump_data()
Dmigrate_reuseport.c429 if (!ASSERT_STREQ(buf, MSG, "read")) in count_requests()
/tools/testing/selftests/bpf/
Dbtf_helpers.c216 if (!ASSERT_STREQ(btf_type_raw_dump(btf, i), exp_types[i - 1], "raw_dump")) in btf_validate_raw()
Dtest_progs.h213 #define ASSERT_STREQ(actual, expected, name) ({ \ macro
/tools/testing/selftests/
Dkselftest_harness.h542 #define ASSERT_STREQ(expected, seen) \ macro