/tools/perf/tests/ |
D | hists_link.c | 78 for (k = 0; k < ARRAY_SIZE(fake_common_samples); k++) { in add_hist_entries() 102 for (k = 0; k < ARRAY_SIZE(fake_samples[i]); k++) { in add_hist_entries() 169 ARRAY_SIZE(fake_common_samples), in __validate_match() 181 if (count != ARRAY_SIZE(fake_common_samples)) { in __validate_match() 183 count, ARRAY_SIZE(fake_common_samples)); in __validate_match() 221 ARRAY_SIZE(fake_common_samples), in __validate_link() 224 ARRAY_SIZE(fake_samples[idx]), in __validate_link() 242 if (count_dummy != ARRAY_SIZE(fake_samples[1]) - 1) { in __validate_link() 244 count_dummy, ARRAY_SIZE(fake_samples[1]) - 1); in __validate_link() 247 if (count != count_pair + ARRAY_SIZE(fake_samples[0])) { in __validate_link() [all …]
|
D | hists_common.c | 74 { "perf", perf_syms, ARRAY_SIZE(perf_syms) }, 75 { "bash", bash_syms, ARRAY_SIZE(bash_syms) }, 76 { "libc", libc_syms, ARRAY_SIZE(libc_syms) }, 77 { "[kernel]", kernel_syms, ARRAY_SIZE(kernel_syms) }, 90 for (i = 0; i < ARRAY_SIZE(fake_threads); i++) { in setup_fake_machine() 101 for (i = 0; i < ARRAY_SIZE(fake_mmap_info); i++) { in setup_fake_machine() 119 for (i = 0; i < ARRAY_SIZE(fake_symbols); i++) { in setup_fake_machine()
|
D | hists_cumulate.c | 83 for (i = 0; i < ARRAY_SIZE(fake_samples); i++) { in add_hist_entries() 286 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test1() 432 err = do_test(hists, expected, ARRAY_SIZE(expected), in test2() 433 expected_callchain, ARRAY_SIZE(expected_callchain)); in test2() 489 err = do_test(hists, expected, ARRAY_SIZE(expected), NULL, 0); in test3() 672 err = do_test(hists, expected, ARRAY_SIZE(expected), in test4() 673 expected_callchain, ARRAY_SIZE(expected_callchain)); in test4() 714 for (i = 0; i < ARRAY_SIZE(testcases); i++) { in test__hists_cumulate()
|
D | pmu.c | 93 for (i = 0; i < ARRAY_SIZE(test_formats); i++) { in test_format_dir_get() 130 for (i = 0; i < ARRAY_SIZE(test_terms); i++) in test_terms_list()
|
D | code-reading.c | 198 if (state->done_cnt >= ARRAY_SIZE(state->done)) { in read_object_code() 320 for (i = 0; i < (int)ARRAY_SIZE(buf); i++) in do_sort_something() 321 buf[i] = ARRAY_SIZE(buf) - i - 1; in do_sort_something() 323 qsort(buf, ARRAY_SIZE(buf), sizeof(int), comp); in do_sort_something() 325 for (i = 0; i < (int)ARRAY_SIZE(buf); i++) { in do_sort_something()
|
D | parse-no-sample-id-all.c | 104 err = process_events(events, ARRAY_SIZE(events)); in test__parse_no_sample_id_all()
|
D | evsel-roundtrip-name.c | 96 __perf_evsel__name_array_test(names, ARRAY_SIZE(names))
|
D | sample-parsing.c | 293 for (i = 0; i < ARRAY_SIZE(rf); i++) { in test__sample_parsing() 314 for (i = 0; i < ARRAY_SIZE(rf); i++) { in test__sample_parsing()
|
D | mmap-basic.c | 30 #define nsyscalls ARRAY_SIZE(syscall_names) in test__basic_mmap()
|
/tools/testing/selftests/net/ |
D | socket.c | 33 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) macro 43 for (i = 0; i < ARRAY_SIZE(tests); i++) { in run_tests()
|
/tools/power/cpupower/utils/ |
D | cpupower.c | 23 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) macro 71 for (i = 0; i < ARRAY_SIZE(commands); i++) in print_help() 213 for (i = 0; i < ARRAY_SIZE(commands); i++) { in main()
|
/tools/lib/traceevent/ |
D | plugin_xen.c | 101 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) macro 105 if (op < ARRAY_SIZE(xen_hypercall_names) && in xen_hypercall_name()
|
/tools/virtio/ |
D | vringh_test.c | 219 ARRAY_SIZE(host_riov)); in parallel_test() 222 ARRAY_SIZE(host_wiov)); in parallel_test() 511 vringh_iov_init(&riov, host_riov, ARRAY_SIZE(host_riov)); in main() 512 vringh_iov_init(&wiov, host_wiov, ARRAY_SIZE(host_wiov)); in main() 580 vringh_iov_init(&riov, host_riov, ARRAY_SIZE(host_riov)); in main() 581 vringh_iov_init(&wiov, host_wiov, ARRAY_SIZE(host_wiov)); in main() 632 vringh_iov_init(&riov, host_riov, ARRAY_SIZE(host_riov)); in main() 633 vringh_iov_init(&wiov, host_wiov, ARRAY_SIZE(host_wiov)); in main() 717 vringh_iov_init(&riov, host_riov, ARRAY_SIZE(host_riov)); in main() 718 vringh_iov_init(&wiov, host_wiov, ARRAY_SIZE(host_wiov)); in main()
|
/tools/vm/ |
D | page-types.c | 211 #define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0])) macro 312 for (i = 0, j = 0; i < ARRAY_SIZE(page_flag_names); i++) { in page_flag_name() 330 for (i = 0, n = 0; i < ARRAY_SIZE(page_flag_names); i++) { in page_flag_longname() 400 for (i = 0; i < ARRAY_SIZE(nr_pages); i++) { in show_summary() 551 for (i = 1; i < ARRAY_SIZE(page_flags); i++, k++) { in hash_slot() 552 if (!k || k >= ARRAY_SIZE(page_flags)) in hash_slot() 739 for (i = 0, j = 0; i < ARRAY_SIZE(page_flag_names); i++) { in usage() 1019 for (i = 0; i < ARRAY_SIZE(page_flag_names); i++) { in parse_flag_name()
|
/tools/lib/lockdep/ |
D | preload.c | 125 #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0])) macro 132 return lock >= __locks && lock < __locks + ARRAY_SIZE(__locks); in is_static_lock() 151 if (idx >= ARRAY_SIZE(__locks)) { in alloc_lock()
|
/tools/perf/util/ |
D | sort.c | 1415 for (i = 0; i < ARRAY_SIZE(common_sort_dimensions); i++) { in sort_dimension__add() 1440 for (i = 0; i < ARRAY_SIZE(hpp_sort_dimensions); i++) { in sort_dimension__add() 1449 for (i = 0; i < ARRAY_SIZE(bstack_sort_dimensions); i++) { in sort_dimension__add() 1465 for (i = 0; i < ARRAY_SIZE(memory_sort_dimensions); i++) { in sort_dimension__add() 1494 BUG_ON(sort__mode >= ARRAY_SIZE(default_sort_orders)); in get_default_sort_order() 1671 for (i = 0; i < ARRAY_SIZE(common_sort_dimensions); i++) { in output_field_add() 1680 for (i = 0; i < ARRAY_SIZE(hpp_sort_dimensions); i++) { in output_field_add() 1689 for (i = 0; i < ARRAY_SIZE(bstack_sort_dimensions); i++) { in output_field_add() 1698 for (i = 0; i < ARRAY_SIZE(memory_sort_dimensions); i++) { in output_field_add() 1714 for (i = 0; i < ARRAY_SIZE(common_sort_dimensions); i++) in reset_dimensions() [all …]
|
D | color.c | 17 for (i = 0; i < (int)ARRAY_SIZE(color_names); i++) { in parse_color() 36 for (i = 0; i < ARRAY_SIZE(attr_names); i++) { in parse_attr()
|
D | session.h | 124 __perf_session__set_tracepoints_handlers(session, array, ARRAY_SIZE(array))
|
D | thread.c | 213 for (i = 0; i < ARRAY_SIZE(cpumodes); i++) { in thread__find_cpumode_addr_location()
|
/tools/virtio/linux/ |
D | kernel.h | 41 #define ARRAY_SIZE(x) (sizeof(x)/sizeof(x[0])) macro
|
/tools/perf/ |
D | builtin-lock.c | 906 for (i = 0; i < ARRAY_SIZE(lock_tracepoints); i++) { in __cmd_record() 915 rec_argc = ARRAY_SIZE(record_args) + argc - 1; in __cmd_record() 917 rec_argc += 2 * ARRAY_SIZE(lock_tracepoints); in __cmd_record() 923 for (i = 0; i < ARRAY_SIZE(record_args); i++) in __cmd_record() 926 for (j = 0; j < ARRAY_SIZE(lock_tracepoints); j++) { in __cmd_record()
|
D | builtin-help.c | 285 for (i = 0; i < ARRAY_SIZE(common_cmds); i++) { in list_common_cmds_help() 291 for (i = 0; i < ARRAY_SIZE(common_cmds); i++) { in list_common_cmds_help()
|
D | builtin-timechart.c | 1653 unsigned int common_args_nr = ARRAY_SIZE(common_args); in timechart__io_record() 1682 unsigned int disk_events_nr = ARRAY_SIZE(disk_events); in timechart__io_record() 1699 unsigned int net_events_nr = ARRAY_SIZE(net_events); in timechart__io_record() 1716 unsigned int poll_events_nr = ARRAY_SIZE(poll_events); in timechart__io_record() 1786 unsigned int common_args_nr = ARRAY_SIZE(common_args); in timechart__record() 1791 unsigned int backtrace_args_no = ARRAY_SIZE(backtrace_args); in timechart__record() 1797 unsigned int power_args_nr = ARRAY_SIZE(power_args); in timechart__record() 1806 unsigned int old_power_args_nr = ARRAY_SIZE(old_power_args); in timechart__record() 1812 unsigned int tasks_args_nr = ARRAY_SIZE(tasks_args); in timechart__record()
|
D | builtin-kmem.c | 536 #define NUM_AVAIL_SORTS ((int)ARRAY_SIZE(avail_sorts)) 645 rec_argc = ARRAY_SIZE(record_args) + argc - 1; in __cmd_record() 651 for (i = 0; i < ARRAY_SIZE(record_args); i++) in __cmd_record()
|
D | perf.c | 211 for (i = 0; i < ARRAY_SIZE(commands); i++) { in handle_options() 386 for (i = 0; i < ARRAY_SIZE(commands); i++) { in handle_internal_command()
|