Home
last modified time | relevance | path

Searched refs:ARRAY_SIZE (Results 1 – 25 of 396) sorted by relevance

12345678910>>...16

/tools/testing/cxl/test/
A Dcxl.c64 for (i = 0; i < ARRAY_SIZE(cxl_hb_single); i++) in is_single_bridge()
94 for (i = 0; i < ARRAY_SIZE(cxl_mem); i++) in is_mock_dev()
100 for (i = 0; i < ARRAY_SIZE(cxl_rcd); i++) in is_mock_dev()
115 for (i = 0; i < ARRAY_SIZE(host_bridge); i++) in is_mock_adev()
521 for (i = 0; i < ARRAY_SIZE(cxl_rch); i++) in is_mock_bridge()
931 array_size = ARRAY_SIZE(cxl_root_port); in mock_cxl_port_enumerate_dports()
934 array_size = ARRAY_SIZE(cxl_root_single); in mock_cxl_port_enumerate_dports()
948 array_size = ARRAY_SIZE(cxl_swd_single); in mock_cxl_port_enumerate_dports()
1062 for (i = 0; i < ARRAY_SIZE(cxl_rch); i++) { in cxl_rch_topo_init()
1260 for (i = 0; i < ARRAY_SIZE(cxl_mem); i++) { in cxl_mem_init()
[all …]
/tools/testing/selftests/bpf/prog_tests/
A Dcgroup_attach_autodetach.c17 size_t insns_cnt = ARRAY_SIZE(prog); in prog_load()
33 for (i = 0; i < ARRAY_SIZE(allow_prog); i++) { in serial_test_cgroup_attach_autodetach()
51 for (i = 0; i < ARRAY_SIZE(allow_prog); i++) in serial_test_cgroup_attach_autodetach()
72 for (i = 0; i < ARRAY_SIZE(allow_prog); i++) { in serial_test_cgroup_attach_autodetach()
86 for (i = 0; i < ARRAY_SIZE(prog_ids); i++) { in serial_test_cgroup_attach_autodetach()
104 for (i = 0; i < ARRAY_SIZE(allow_prog); i++) in serial_test_cgroup_attach_autodetach()
A Dsignal_pending.c25 for (i = 0; i < ARRAY_SIZE(prog); i++) in test_signal_pending_by_type()
27 prog[ARRAY_SIZE(prog) - 1] = BPF_EXIT_INSN(); in test_signal_pending_by_type()
29 prog_fd = bpf_test_load_program(prog_type, prog, ARRAY_SIZE(prog), in test_signal_pending_by_type()
A Dresolve_btfids.c78 for (i = 0; i < ARRAY_SIZE(test_symbols); i++) { in BTF_ID()
132 for (j = 0; j < ARRAY_SIZE(test_lists); j++) { in test_resolve_btfids()
134 for (i = 0; i < ARRAY_SIZE(test_symbols); i++) { in test_resolve_btfids()
149 for (j = 0; j < ARRAY_SIZE(test_symbols); j++) { in test_resolve_btfids()
A Dpreempted_bpf_ma_op.c58 for (i = 0; i < ARRAY_SIZE(ctx); i++) { in test_preempted_bpf_ma_op()
73 for (i = 0; i < ARRAY_SIZE(tid); i++) { in test_preempted_bpf_ma_op()
79 for (i = 0; i < ARRAY_SIZE(tid); i++) { in test_preempted_bpf_ma_op()
/tools/testing/selftests/bpf/progs/
A Diters.c376 bpf_for(i, 0, ARRAY_SIZE(arr)) { in iter_array_fill()
381 bpf_for(i, 0, ARRAY_SIZE(arr)) { in iter_array_fill()
402 bpf_for(row, 0, ARRAY_SIZE(arr2d)) { in iter_nested_iters()
410 bpf_for(row, 0, ARRAY_SIZE(arr2d)) { in iter_nested_iters()
418 bpf_for(row, 0, ARRAY_SIZE(arr2d)) { in iter_nested_iters()
643 bpf_for(i, 0, ARRAY_SIZE(arr1)) { in iter_stack_array_loop()
653 bpf_for(i, 0, ARRAY_SIZE(arr1)) { in iter_stack_array_loop()
697 n = ARRAY_SIZE(arr1); in iter_pass_iter_ptr_to_subprog()
703 n = ARRAY_SIZE(arr2); in iter_pass_iter_ptr_to_subprog()
709 n = ARRAY_SIZE(arr1); in iter_pass_iter_ptr_to_subprog()
[all …]
A Dsetget_sockopt.c159 if (i >= ARRAY_SIZE(sol_socket_tests)) in bpf_test_socket_sockopt()
176 if (i >= ARRAY_SIZE(sol_ip_tests)) in bpf_test_ip_sockopt()
193 if (i >= ARRAY_SIZE(sol_ipv6_tests)) in bpf_test_ipv6_sockopt()
212 if (i >= ARRAY_SIZE(sol_tcp_tests)) in bpf_test_tcp_sockopt()
267 if (n != ARRAY_SIZE(sol_socket_tests)) in bpf_test_sockopt()
271 n = bpf_loop(ARRAY_SIZE(sol_tcp_tests), bpf_test_tcp_sockopt, &lc, 0); in bpf_test_sockopt()
272 if (n != ARRAY_SIZE(sol_tcp_tests)) in bpf_test_sockopt()
277 n = bpf_loop(ARRAY_SIZE(sol_ip_tests), bpf_test_ip_sockopt, &lc, 0); in bpf_test_sockopt()
278 if (n != ARRAY_SIZE(sol_ip_tests)) in bpf_test_sockopt()
281 n = bpf_loop(ARRAY_SIZE(sol_ipv6_tests), bpf_test_ipv6_sockopt, &lc, 0); in bpf_test_sockopt()
[all …]
A Duprobe_multi_session_recursive.c24 if (idx_return >= ARRAY_SIZE(test_uprobe_cookie_return)) in check_cookie()
30 if (idx_entry >= ARRAY_SIZE(test_uprobe_cookie_entry)) in check_cookie()
A Dtest_get_xattr.c45 for (i = 0; i < ARRAY_SIZE(xattr_names); i++) { in BPF_PROG()
71 for (i = 0; i < ARRAY_SIZE(xattr_names); i++) { in BPF_PROG()
/tools/perf/tests/
A Dhists_link.c105 for (k = 0; k < ARRAY_SIZE(fake_samples[i]); k++) { in add_hist_entries()
139 for (i = 0; i < ARRAY_SIZE(fake_common_samples); i++) in put_fake_samples()
141 for (i = 0; i < ARRAY_SIZE(fake_samples); i++) { in put_fake_samples()
142 for (j = 0; j < ARRAY_SIZE(fake_samples[0]); j++) in put_fake_samples()
182 ARRAY_SIZE(fake_common_samples), in __validate_match()
194 if (count != ARRAY_SIZE(fake_common_samples)) { in __validate_match()
196 count, ARRAY_SIZE(fake_common_samples)); in __validate_match()
234 ARRAY_SIZE(fake_common_samples), in __validate_link()
237 ARRAY_SIZE(fake_samples[idx]), in __validate_link()
257 count_dummy, ARRAY_SIZE(fake_samples[1]) - 1); in __validate_link()
[all …]
A Dhists_common.c79 { "perf", perf_syms, ARRAY_SIZE(perf_syms) },
80 { "bash", bash_syms, ARRAY_SIZE(bash_syms) },
81 { "libc", libc_syms, ARRAY_SIZE(libc_syms) },
82 { "[kernel]", kernel_syms, ARRAY_SIZE(kernel_syms) },
95 for (i = 0; i < ARRAY_SIZE(fake_threads); i++) { in setup_fake_machine()
107 for (i = 0; i < ARRAY_SIZE(fake_mmap_info); i++) { in setup_fake_machine()
127 for (i = 0; i < ARRAY_SIZE(fake_symbols); i++) { in setup_fake_machine()
A Dmem2node.c53 .nr_memory_nodes = ARRAY_SIZE(nodes), in test__mem2node()
58 for (i = 0; i < ARRAY_SIZE(nodes); i++) { in test__mem2node()
75 for (i = 0; i < ARRAY_SIZE(nodes); i++) in test__mem2node()
A Dmaps.c107 for (i = 0; i < ARRAY_SIZE(bpf_progs); i++) { in test__maps__merge_in()
143 ret = check_maps(merged12, ARRAY_SIZE(merged12), maps); in test__maps__merge_in()
149 ret = check_maps(merged12, ARRAY_SIZE(merged12), maps); in test__maps__merge_in()
155 ret = check_maps(merged3, ARRAY_SIZE(merged3), maps); in test__maps__merge_in()
A Dhists_cumulate.c88 for (i = 0; i < ARRAY_SIZE(fake_samples); i++) { in add_hist_entries()
158 for (i = 0; i < ARRAY_SIZE(fake_samples); i++) { in put_fake_samples()
305 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test1()
452 err = do_test(hists, expected, ARRAY_SIZE(expected), in test2()
453 expected_callchain, ARRAY_SIZE(expected_callchain)); in test2()
510 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test3()
696 err = do_test(hists, expected, ARRAY_SIZE(expected), in test4()
697 expected_callchain, ARRAY_SIZE(expected_callchain)); in test4()
739 for (i = 0; i < ARRAY_SIZE(testcases); i++) { in test__hists_cumulate()
/tools/perf/pmu-events/
A Dempty-pmu-events.c129 .num_entries = ARRAY_SIZE(pmu_events__common_software),
134 .num_entries = ARRAY_SIZE(pmu_events__common_tool),
169 .num_entries = ARRAY_SIZE(pmu_events__test_soc_cpu_default_core),
179 .num_entries = ARRAY_SIZE(pmu_events__test_soc_cpu_hisi_sccl_l3c),
184 .num_entries = ARRAY_SIZE(pmu_events__test_soc_cpu_uncore_cbox),
189 .num_entries = ARRAY_SIZE(pmu_events__test_soc_cpu_uncore_imc),
293 .num_pmus = ARRAY_SIZE(pmu_events__common),
302 .num_pmus = ARRAY_SIZE(pmu_events__test_soc_cpu),
306 .num_pmus = ARRAY_SIZE(pmu_metrics__test_soc_cpu),
327 .num_pmus = ARRAY_SIZE(pmu_events__test_soc_sys)
[all …]
/tools/testing/selftests/kvm/lib/x86/
A Dpmu.c23 kvm_static_assert(ARRAY_SIZE(intel_pmu_arch_events) == NR_INTEL_ARCH_EVENTS);
31 kvm_static_assert(ARRAY_SIZE(amd_pmu_zen_events) == NR_AMD_ZEN_EVENTS);
/tools/testing/selftests/powerpc/pmu/sampling_tests/
A Dbhrb_filter_map_test.c73 for (i = 0; i < ARRAY_SIZE(bhrb_filter_map_valid_common); i++) { in bhrb_filter_map_test()
89 for (i = 0; i < ARRAY_SIZE(bhrb_filter_map_valid_p10); i++) { in bhrb_filter_map_test()
96 for (i = 0; i < ARRAY_SIZE(bhrb_filter_map_valid_p10); i++) { in bhrb_filter_map_test()
/tools/testing/selftests/powerpc/dexcr/
A Dlsdexcr.c26 const char *enabled_aspects[ARRAY_SIZE(aspects) + 1] = {NULL}; in print_dexcr()
36 for (size_t i = 0; i < ARRAY_SIZE(aspects); i++) { in print_dexcr()
147 for (size_t i = 0; i < ARRAY_SIZE(aspects); i++) in main()
167 for (size_t i = 0; i < ARRAY_SIZE(aspects); i++) in main()
/tools/testing/selftests/arm64/mte/
A Dcheck_user_mem.c82 for (i = 0; i < ARRAY_SIZE(sizes); i++) { in check_usermem_access_fault()
220 for (s = 0; s < ARRAY_SIZE(mte_sync); s++) { in main()
221 for (m = 0; m < ARRAY_SIZE(maps); m++) { in main()
222 for (l = 0; l < ARRAY_SIZE(tag_lens); l++) { in main()
223 for (o = 0; o < ARRAY_SIZE(tag_offsets); o++) { in main()
/tools/lib/bpf/
A Dfeatures.c37 attr.insn_cnt = (__u32)ARRAY_SIZE(insns); in probe_kern_prog_name()
64 int ret, map, insn_cnt = ARRAY_SIZE(insns); in probe_kern_global_data()
235 int fd, insn_cnt = ARRAY_SIZE(insns); in probe_kern_exp_attach_type()
260 int fd, insn_cnt = ARRAY_SIZE(insns); in probe_kern_probe_read_kernel()
280 int ret, map, prog, insn_cnt = ARRAY_SIZE(insns); in probe_prog_bind_map()
346 insns, ARRAY_SIZE(insns), &opts); in probe_perf_link()
379 insns, ARRAY_SIZE(insns), &load_opts); in probe_uprobe_multi_link()
438 int ret, insn_cnt = ARRAY_SIZE(insns); in probe_kern_bpf_cookie()
492 int prog_fd, btf_fd, insn_cnt = ARRAY_SIZE(insns); in probe_kern_arg_ctx_tag()
500 opts.func_info_cnt = ARRAY_SIZE(func_infos); in probe_kern_arg_ctx_tag()
/tools/testing/selftests/cgroup/
A Dtest_cpu.c327 for (i = 0; i < ARRAY_SIZE(children); i++) { in run_cpucg_weight_test()
340 for (i = 0; i < ARRAY_SIZE(children); i++) { in run_cpucg_weight_test()
347 for (i = 0; i < ARRAY_SIZE(children); i++) { in run_cpucg_weight_test()
357 for (i = 0; i < ARRAY_SIZE(children); i++) in run_cpucg_weight_test()
366 for (i = 0; i < ARRAY_SIZE(children); i++) { in run_cpucg_weight_test()
517 for (i = 0; i < ARRAY_SIZE(leaf); i++) { in run_cpucg_nested_weight_test()
539 for (i = 0; i < ARRAY_SIZE(leaf); i++) { in run_cpucg_nested_weight_test()
557 for (i = 0; i < ARRAY_SIZE(leaf); i++) { in run_cpucg_nested_weight_test()
567 for (i = 0; i < ARRAY_SIZE(leaf); i++) { in run_cpucg_nested_weight_test()
590 for (i = 0; i < ARRAY_SIZE(leaf); i++) { in run_cpucg_nested_weight_test()
[all …]
/tools/testing/selftests/bpf/
A Dbpf_util.h50 #ifndef ARRAY_SIZE
51 # define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro
/tools/testing/selftests/kvm/arm64/
A Dset_id_regs.c433 for (int i = 0; i < ARRAY_SIZE(test_regs); i++) { in test_vm_ftr_id_regs()
739 for (int i = 0; i < ARRAY_SIZE(test_regs); i++) in test_reset_preserves_id_regs()
782 test_cnt = ARRAY_SIZE(ftr_id_aa64dfr0_el1) + ARRAY_SIZE(ftr_id_dfr0_el1) + in main()
783 ARRAY_SIZE(ftr_id_aa64isar0_el1) + ARRAY_SIZE(ftr_id_aa64isar1_el1) + in main()
784 ARRAY_SIZE(ftr_id_aa64isar2_el1) + ARRAY_SIZE(ftr_id_aa64pfr0_el1) + in main()
785 ARRAY_SIZE(ftr_id_aa64pfr1_el1) + ARRAY_SIZE(ftr_id_aa64mmfr0_el1) + in main()
786 ARRAY_SIZE(ftr_id_aa64mmfr1_el1) + ARRAY_SIZE(ftr_id_aa64mmfr2_el1) + in main()
787 ARRAY_SIZE(ftr_id_aa64mmfr3_el1) + ARRAY_SIZE(ftr_id_aa64zfr0_el1) - in main()
788 ARRAY_SIZE(test_regs) + 3 + MPAM_IDREG_TEST + MTE_IDREG_TEST; in main()
/tools/bpf/bpftool/
A Dfeature.c437 char *values[ARRAY_SIZE(options)] = { }; in probe_kernel_image_config()
476 for (i = 0; i < ARRAY_SIZE(options); i++) { in probe_kernel_image_config()
485 for (i = 0; i < ARRAY_SIZE(options); i++) { in probe_kernel_image_config()
818 probe_misc_feature(insns, ARRAY_SIZE(insns), in probe_large_insn_limit()
839 probe_misc_feature(insns, ARRAY_SIZE(insns), in probe_bounded_loops()
860 probe_misc_feature(insns, ARRAY_SIZE(insns), in probe_v2_isa_extension()
881 probe_misc_feature(insns, ARRAY_SIZE(insns), in probe_v3_isa_extension()
903 probe_misc_feature(insns, ARRAY_SIZE(insns), in probe_v4_isa_extension()
1078 cap_value_t cap_list[ARRAY_SIZE(bpf_caps)]; in handle_perms()
1097 for (i = 0; i < ARRAY_SIZE(bpf_caps); i++) { in handle_perms()
[all …]
/tools/testing/selftests/resctrl/
A Dresctrl_tests.c73 for (i = 0; i < ARRAY_SIZE(resctrl_tests); i++) { in cmd_help()
241 int tests = ARRAY_SIZE(resctrl_tests); in main()
272 for (i = 0; i < ARRAY_SIZE(resctrl_tests); i++) in main()
280 for (i = 0; i < ARRAY_SIZE(resctrl_tests); i++) { in main()
345 for (i = 0; i < ARRAY_SIZE(resctrl_tests); i++) in main()

Completed in 45 milliseconds

12345678910>>...16