Home
last modified time | relevance | path

Searched refs:ASSERT_NEQ (Results 1 – 25 of 66) sorted by relevance

123

/linux/tools/testing/selftests/bpf/prog_tests/
H A Dtest_ima.c110 ASSERT_NEQ(ima_hash_from_bpf[0], 0, "ima_hash"); in test_test_ima()
125 ASSERT_NEQ(ima_hash_from_bpf[0], 0, "ima_hash"); in test_test_ima()
126 ASSERT_NEQ(ima_hash_from_bpf[1], 0, "ima_hash"); in test_test_ima()
157 ASSERT_NEQ(ima_hash_from_bpf[0], 0, "ima_hash"); in test_test_ima()
163 ASSERT_NEQ(ima_hash_from_bpf[fresh_digest_idx], 0, "ima_hash"); in test_test_ima()
165 ASSERT_NEQ(ima_hash_from_bpf[fresh_digest_idx], bin_true_sample, in test_test_ima()
183 ASSERT_NEQ(ima_hash_from_bpf[0], 0, "ima_hash"); in test_test_ima()
184 ASSERT_NEQ(ima_hash_from_bpf[1], 0, "ima_hash"); in test_test_ima()
185 ASSERT_NEQ(ima_hash_from_bpf[2], 0, "ima_hash"); in test_test_ima()
186 ASSERT_NEQ(ima_hash_from_bpf[3], 0, "ima_hash"); in test_test_ima()
[all …]
H A Dskb_ctx.c43 ASSERT_NEQ(err, 0, "ctx_size_in"); in test_skb_ctx()
50 ASSERT_NEQ(err, 0, "ctx_size_out"); in test_skb_ctx()
57 ASSERT_NEQ(err, 0, "len"); in test_skb_ctx()
62 ASSERT_NEQ(err, 0, "tc_index"); in test_skb_ctx()
69 ASSERT_NEQ(err, 0, "hash"); in test_skb_ctx()
74 ASSERT_NEQ(err, 0, "sk"); in test_skb_ctx()
H A Dksyms.c19 if (!ASSERT_NEQ(err, -EINVAL, "bpf_link_fops: kallsyms_fopen")) in test_ksyms()
21 if (!ASSERT_NEQ(err, -ENOENT, "bpf_link_fops: ksym_find")) in test_ksyms()
25 if (!ASSERT_NEQ(err, -EINVAL, "__per_cpu_start: kallsyms_fopen")) in test_ksyms()
27 if (!ASSERT_NEQ(err, -ENOENT, "__per_cpu_start: ksym_find")) in test_ksyms()
H A Dverifier_log.c183 ASSERT_NEQ(res, -ENOSPC, "prog_load_res_fixed"); in verif_log_subtest()
194 ASSERT_NEQ(res, -ENOSPC, "prog_load_res_fixed_null"); in verif_log_subtest()
203 ASSERT_NEQ(res, -ENOSPC, "prog_load_res_rolling"); in verif_log_subtest()
214 ASSERT_NEQ(res, -ENOSPC, "prog_load_res_rolling_null"); in verif_log_subtest()
231 ASSERT_NEQ(res, -ENOSPC, "prog_load_res_just_right_fixed"); in verif_log_subtest()
246 ASSERT_NEQ(res, -ENOSPC, "prog_load_res_just_right_rolling"); in verif_log_subtest()
367 ASSERT_NEQ(res, -ENOSPC, "btf_load_res_fixed"); in verif_btf_log_subtest()
378 ASSERT_NEQ(res, -ENOSPC, "btf_load_res_fixed_null"); in verif_btf_log_subtest()
387 ASSERT_NEQ(res, -ENOSPC, "btf_load_res_rolling"); in verif_btf_log_subtest()
398 ASSERT_NEQ(res, -ENOSPC, "btf_load_res_rolling_null"); in verif_btf_log_subtest()
[all …]
H A Dxdp_devmap_attach.c76 if (!ASSERT_NEQ(err, 0, "Attach of BPF_XDP_DEVMAP program")) in test_xdp_with_devmap_helpers()
82 ASSERT_NEQ(err, 0, "Add non-BPF_XDP_DEVMAP program to devmap entry"); in test_xdp_with_devmap_helpers()
91 ASSERT_NEQ(err, 0, "Add BPF_XDP program with frags to devmap entry"); in test_xdp_with_devmap_helpers()
147 ASSERT_NEQ(err, 0, "Add BPF_XDP program to devmap entry"); in test_xdp_with_devmap_frags_helpers()
175 if (!ASSERT_NEQ(val.ifindex, 0, "val.ifindex") || in test_xdp_with_devmap_helpers_veth()
176 !ASSERT_NEQ(ifindex_dst, 0, "ifindex_dst")) in test_xdp_with_devmap_helpers_veth()
H A Dxdp_cpumap_attach.c50 if (!ASSERT_NEQ(err, 0, "Attach of BPF_XDP_CPUMAP program")) in test_xdp_with_cpumap_helpers()
56 ASSERT_NEQ(err, 0, "Add non-BPF_XDP_CPUMAP program to cpumap entry"); in test_xdp_with_cpumap_helpers()
65 ASSERT_NEQ(err, 0, "Add BPF_XDP program with frags to cpumap entry"); in test_xdp_with_cpumap_helpers()
108 ASSERT_NEQ(err, 0, "Add BPF_XDP program to cpumap entry"); in test_xdp_with_cpumap_frags_helpers()
H A Dtc_links.c33 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in serial_test_tc_links_basic()
83 ASSERT_NEQ(lid1, lid2, "link_ids_1_2"); in serial_test_tc_links_basic()
148 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in test_tc_links_before_target()
149 ASSERT_NEQ(pid3, pid4, "prog_ids_3_4"); in test_tc_links_before_target()
150 ASSERT_NEQ(pid2, pid3, "prog_ids_2_3"); in test_tc_links_before_target()
302 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in test_tc_links_after_target()
303 ASSERT_NEQ(pid3, pid4, "prog_ids_3_4"); in test_tc_links_after_target()
304 ASSERT_NEQ(pid2, pid3, "prog_ids_2_3"); in test_tc_links_after_target()
449 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in test_tc_links_revision_target()
551 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in test_tc_chain_classic()
[all …]
H A Dkprobe_multi_testmod_test.c56 ASSERT_NEQ(addrs[0], 0, "ksym_get_addr_local"); in test_testmod_attach_api_addrs()
58 ASSERT_NEQ(addrs[1], 0, "ksym_get_addr_local"); in test_testmod_attach_api_addrs()
60 ASSERT_NEQ(addrs[2], 0, "ksym_get_addr_local"); in test_testmod_attach_api_addrs()
H A Dbpf_iter_setsockopt_unix.c20 if (!ASSERT_NEQ(fd, -1, "socket")) in create_unix_socket()
45 if (!ASSERT_NEQ(skel->data->sndbuf_getsockopt[i], -1, in test_sndbuf()
80 if (!ASSERT_NEQ(unix_fd, -1, "create_unix_server")) in test_bpf_iter_setsockopt_unix()
H A Dtype_cast.c38 ASSERT_NEQ(skel->bss->inum, 0, "xdp_md inum"); in test_xdp()
71 ASSERT_NEQ(skel->bss->kskb_len, 0, "skb len"); in test_tc()
72 ASSERT_NEQ(skel->bss->kskb2_len, 0, "skb2 len"); in test_tc()
H A Dtcp_custom_syncookie.c97 if (!ASSERT_NEQ(server, -1, "start_server")) in create_connection()
101 if (!ASSERT_NEQ(client, -1, "connect_to_fd")) in create_connection()
105 if (!ASSERT_NEQ(child, -1, "accept")) in create_connection()
H A Dtc_opts.c33 ASSERT_NEQ(id1, id2, "prog_ids_1_2"); in serial_test_tc_opts_basic()
135 ASSERT_NEQ(id1, id2, "prog_ids_1_2"); in test_tc_opts_before_target()
136 ASSERT_NEQ(id3, id4, "prog_ids_3_4"); in test_tc_opts_before_target()
137 ASSERT_NEQ(id2, id3, "prog_ids_2_3"); in test_tc_opts_before_target()
287 ASSERT_NEQ(id1, id2, "prog_ids_1_2"); in test_tc_opts_after_target()
288 ASSERT_NEQ(id3, id4, "prog_ids_3_4"); in test_tc_opts_after_target()
289 ASSERT_NEQ(id2, id3, "prog_ids_2_3"); in test_tc_opts_after_target()
474 ASSERT_NEQ(id1, id2, "prog_ids_1_2"); in test_tc_opts_revision_target()
586 ASSERT_NEQ(id1, id2, "prog_ids_1_2"); in test_tc_chain_classic()
587 ASSERT_NEQ(id2, id3, "prog_ids_2_3"); in test_tc_chain_classic()
[all …]
H A Dtcpbpf_user.c55 if (!ASSERT_NEQ(listen_fd, -1, "start_server")) in run_test()
59 if (!ASSERT_NEQ(cli_fd, -1, "connect_to_fd(listen_fd)")) in run_test()
63 if (!ASSERT_NEQ(accept_fd, -1, "accept(listen_fd)")) in run_test()
H A Dtask_local_storage.c71 ASSERT_NEQ(sync_rcu_calls, MAX_SYNC_RCU_CALLS, in test_exit_creds()
73 ASSERT_NEQ(run_count, 0, "run_count"); in test_exit_creds()
75 ASSERT_NEQ(skel->bss->null_ptr_count, 0, "null_ptr_count"); in test_exit_creds()
89 if (!ASSERT_NEQ(task_fd, -1, "sys_pidfd_open")) in test_recursion()
H A Dglobal_map_resize.c174 if (!ASSERT_NEQ(bpf_map__btf_value_type_id(map), 0, ".data.custom initial btf")) in global_map_resize_invalid_subtest()
180 if (!ASSERT_NEQ(desired_sz % element_sz, 0, "my_array alignment")) in global_map_resize_invalid_subtest()
191 if (!ASSERT_NEQ(bpf_map__btf_value_type_id(map), 0, ".data.non_array initial btf")) in global_map_resize_invalid_subtest()
206 if (!ASSERT_NEQ(bpf_map__btf_value_type_id(map), 0, ".data.array_not_last initial btf")) in global_map_resize_invalid_subtest()
H A Dtest_tunnel.c423 if (!ASSERT_NEQ(ifindex, 0, "vxlan11 ifindex")) in test_vxlan_tunnel()
437 if (!ASSERT_NEQ(ifindex, 0, "veth1 ifindex")) in test_vxlan_tunnel()
451 if (!ASSERT_NEQ(ifindex, 0, "vxlan00 ifindex")) in test_vxlan_tunnel()
507 if (!ASSERT_NEQ(ifindex, 0, "ip6vxlan11 ifindex")) in test_ip6vxlan_tunnel()
524 if (!ASSERT_NEQ(ifindex, 0, "ip6vxlan00 ifindex")) in test_ip6vxlan_tunnel()
577 if (!ASSERT_NEQ(ifindex, 0, "ipip11 ifindex")) in test_ipip_tunnel()
650 if (!ASSERT_NEQ(ifindex, 0, "veth1 ifindex")) in test_xfrm_tunnel()
H A Dtest_xdp_veth.c101 if (!ASSERT_NEQ(interface, 0, "non zero interface index")) in attach_programs_to_veth_pair()
111 if (!ASSERT_NEQ(interface, 0, "non zero interface index")) { in attach_programs_to_veth_pair()
150 if (!ASSERT_NEQ(interface_id, 0, "non zero interface index")) in configure_network()
H A Dtime_tai.c55 ASSERT_NEQ(ts1, 0, "tai_ts1"); in test_time_tai()
56 ASSERT_NEQ(ts2, 0, "tai_ts2"); in test_time_tai()
H A Dtc_helpers.h21 ASSERT_NEQ(prog_info.id, 0, "prog_info.id"); in id_from_prog_fd()
35 ASSERT_NEQ(link_info.id, 0, "link_info.id"); in id_from_link_fd()
H A Dcgroup_storage.c63 ASSERT_NEQ(err, 0, "second ping"); in test_cgroup_storage()
85 ASSERT_NEQ(err, 0, "fifth ping"); in test_cgroup_storage()
H A Draw_tp_test_run.c42 ASSERT_NEQ(skel->bss->count, 0, "check_count"); in test_raw_tp_test_run()
50 ASSERT_NEQ(err, 0, "test_run should fail for too small ctx"); in test_raw_tp_test_run()
H A Dtest_bpf_syscall_macro.c46 ASSERT_NEQ(skel->bss->arg4_cx, exp_arg4, "syscall_arg4_from_cx"); in test_bpf_syscall_macro()
59 ASSERT_NEQ(skel->bss->arg4_core_cx, exp_arg4, "syscall_arg4_from_cx_core_variant"); in test_bpf_syscall_macro()
H A Dtc_netkit.c194 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in serial_test_tc_netkit_basic()
244 ASSERT_NEQ(lid1, lid2, "link_ids_1_2"); in serial_test_tc_netkit_basic()
308 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in serial_test_tc_netkit_multi_links_target()
363 ASSERT_NEQ(lid1, lid2, "link_ids_1_2"); in serial_test_tc_netkit_multi_links_target()
430 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in serial_test_tc_netkit_multi_opts_target()
535 ASSERT_NEQ(ifindex, ifindex2, "ifindex_1_2"); in serial_test_tc_netkit_device()
555 ASSERT_NEQ(pid1, pid2, "prog_ids_1_2"); in serial_test_tc_netkit_device()
723 ASSERT_NEQ(ifindex, ifindex2, "ifindex_1_2");
H A Dxdp_metadata.c81 if (!ASSERT_NEQ(xsk->umem_area, MAP_FAILED, "mmap")) in open_xsk()
259 ASSERT_NEQ(meta->completion.tx_timestamp, 0, "tx_timestamp"); in complete_tx()
324 if (!ASSERT_NEQ(meta->rx_timestamp, 0, "rx_timestamp")) in verify_xsk_metadata()
327 if (!ASSERT_NEQ(meta->rx_hash, 0, "rx_hash")) in verify_xsk_metadata()
331 if (!ASSERT_NEQ(meta->rx_hash_type & XDP_RSS_TYPE_L4, 0, "rx_hash_type")) in verify_xsk_metadata()
H A Dmigrate_reuseport.c153 if (!ASSERT_NEQ(fd, -1, "open")) in setup_fastopen()
230 if (!ASSERT_NEQ(test_case->servers[i], -1, "socket")) in start_servers()
286 if (!ASSERT_NEQ(test_case->clients[i], -1, "socket")) in start_clients()
422 if (!ASSERT_NEQ(client, -1, "accept")) in count_requests()

123