/tools/perf/util/ |
D | levenshtein.c | 48 int i, j; in levenshtein() local 50 for (j = 0; j <= len2; j++) in levenshtein() 51 row1[j] = j * a; in levenshtein() 56 for (j = 0; j < len2; j++) { in levenshtein() 58 row2[j + 1] = row1[j] + s * (string1[i] != string2[j]); in levenshtein() 60 if (i > 0 && j > 0 && string1[i - 1] == string2[j] && in levenshtein() 61 string1[i] == string2[j - 1] && in levenshtein() 62 row2[j + 1] > row0[j - 1] + w) in levenshtein() 63 row2[j + 1] = row0[j - 1] + w; in levenshtein() 65 if (row2[j + 1] > row1[j + 1] + d) in levenshtein() [all …]
|
D | values.c | 133 int i, j; in perf_read_values__display_pretty() local 142 for (j = 0; j < values->counters; j++) in perf_read_values__display_pretty() 143 counterwidth[j] = strlen(values->countername[j]); in perf_read_values__display_pretty() 153 for (j = 0; j < values->counters; j++) { in perf_read_values__display_pretty() 154 width = snprintf(NULL, 0, "%" PRIu64, values->value[i][j]); in perf_read_values__display_pretty() 155 if (width > counterwidth[j]) in perf_read_values__display_pretty() 156 counterwidth[j] = width; in perf_read_values__display_pretty() 161 for (j = 0; j < values->counters; j++) in perf_read_values__display_pretty() 162 fprintf(fp, " %*s", counterwidth[j], values->countername[j]); in perf_read_values__display_pretty() 168 for (j = 0; j < values->counters; j++) in perf_read_values__display_pretty() [all …]
|
D | debug.c | 117 int i, j; in trace_event() local 136 for (j = 0; j < 15-(i & 15); j++) in trace_event() 138 for (j = i & ~15; j <= i; j++) { in trace_event() 140 isprint(raw_event[j]) ? in trace_event() 141 raw_event[j] : '.'); in trace_event()
|
D | help.c | 40 unsigned int i, j; in uniq() local 45 for (i = j = 1; i < cmds->cnt; i++) in uniq() 47 cmds->names[j++] = cmds->names[i]; in uniq() 49 cmds->cnt = j; in uniq() 80 int i, j; in pretty_print_string_list() local 92 for (j = 0; j < cols; j++) { in pretty_print_string_list() 93 unsigned int n = j * rows + i; in pretty_print_string_list() 98 if (j == cols-1 || n + rows >= cmds->cnt) in pretty_print_string_list()
|
D | pmu.c | 988 int len, j; in print_pmu_events() local 1003 j = 0; in print_pmu_events() 1018 aliases[j] = strdup(name); in print_pmu_events() 1019 if (aliases[j] == NULL) in print_pmu_events() 1021 j++; in print_pmu_events() 1028 aliases[j] = s; in print_pmu_events() 1029 j++; in print_pmu_events() 1032 len = j; in print_pmu_events() 1034 for (j = 0; j < len; j++) { in print_pmu_events() 1036 printf("%s ", aliases[j]); in print_pmu_events() [all …]
|
/tools/testing/selftests/powerpc/stringloops/ |
D | memcmp.c | 62 unsigned long j; in testcase() local 65 for (j = 0; j < SIZE; j++) in testcase() 66 s1[j] = random(); in testcase() 80 unsigned long j; in testcase() local 83 for (j = 0; j < SIZE; j++) in testcase() 84 s1[j] = random(); in testcase() 89 for (j = 0; j < SIZE / 8; j++) { in testcase()
|
/tools/perf/util/intel-pt-decoder/ |
D | gen-insn-attr-x86.awk | 235 function convert_operands(count,opnd, i,j,imm,mod) 239 for (j = 1; j <= count; j++) { 240 i = opnd[j] 364 for (j = 0; j < max_lprefix; j++) 365 if (etable[i,j]) 366 print " ["i"]["j"] = "etable[i,j]"," 373 for (j = 0; j < max_lprefix; j++) 374 if (gtable[i,j]) 375 print " ["i"]["j"] = "gtable[i,j]"," 382 for (j = 0; j < max_lprefix; j++) [all …]
|
/tools/thermal/tmon/ |
D | tui.c | 210 int i, j, x, y = 0; in show_cooling_device() local 220 for (j = 0; j < ptdata.nr_cooling_dev; j++) { in show_cooling_device() 224 mvwprintw(cooling_device_window, j + 2, 1, in show_cooling_device() 226 ptdata.cdi[j].instance, in show_cooling_device() 227 ptdata.cdi[j].type, in show_cooling_device() 228 ptdata.cdi[j].cur_state, in show_cooling_device() 229 ptdata.cdi[j].max_state); in show_cooling_device() 235 for (j = 0; j < ptdata.nr_cooling_dev; j++) { in show_cooling_device() 237 y = j; in show_cooling_device() 246 cdev_inst = ptdata.cdi[j].instance; in show_cooling_device() [all …]
|
D | tmon.c | 183 int j; in prepare_logging() local 186 for (j = 0; j < 32; j++) in prepare_logging() 187 binding_str[j] = (ptdata.tzi[i].cdev_binding & 1<<j) ? in prepare_logging() 194 for (j = 0; j < ptdata.tzi[i].nr_trip_pts; j++) { in prepare_logging() 195 fprintf(tmon_log, "#\tTP%02d type:%s, temp:%lu\n", j, in prepare_logging() 196 trip_type_name[ptdata.tzi[i].tp[j].type], in prepare_logging() 197 ptdata.tzi[i].tp[j].temp); in prepare_logging()
|
/tools/testing/selftests/powerpc/dscr/ |
D | dscr_sysfs_thread_test.c | 60 int i, j; in dscr_sysfs_thread() local 64 for (j = 0; j < DSCR_MAX; j++) { in dscr_sysfs_thread() 65 set_default_dscr(j); in dscr_sysfs_thread() 66 if (check_cpu_dscr_thread(j)) in dscr_sysfs_thread()
|
D | dscr_sysfs_test.c | 77 int i, j; in dscr_sysfs() local 81 for (j = 0; j < DSCR_MAX; j++) { in dscr_sysfs() 82 set_default_dscr(j); in dscr_sysfs() 83 if (check_all_cpu_dscr_defaults(j)) in dscr_sysfs()
|
/tools/testing/selftests/timers/ |
D | threadtest.c | 55 int i, j; in checklist() local 75 for (j = 0; j < size; j++) { in checklist() 76 if (j == i) in checklist() 78 printf("%lu:%lu\n", list[j].tv_sec, list[j].tv_nsec); in checklist() 79 if (j == i+1) in checklist()
|
/tools/perf/ |
D | perf-completion.sh | 6 local exclude i j first 16 for ((i=0, j=0; i < ${#COMP_WORDS[@]}; i++, j++)); do 28 if [ $j -ge 2 ] && [ -n "$first" ]; then 29 ((j--)) 32 words_[$j]=${words_[j]}${COMP_WORDS[i]} 34 cword_=$j 43 words_[$j]=${words_[j]}${COMP_WORDS[i]} 45 cword_=$j
|
D | builtin-mem.c | 26 int rec_argc, i = 0, j; in __cmd_record() local 52 for (j = 1; j < argc; j++, i++) in __cmd_record() 53 rec_argv[i] = argv[j]; in __cmd_record() 157 int ret, i = 0, j, rep_argc; in report_events() local 179 for (j = 1; j < argc; j++, i++) in report_events() 180 rep_argv[i] = argv[j]; in report_events()
|
D | builtin-script.c | 137 int j; in output_set_by_user() local 138 for (j = 0; j < PERF_TYPE_MAX; ++j) { in output_set_by_user() 139 if (output[j].user_set) in output_set_by_user() 303 int j; in perf_session__check_output_opt() local 306 for (j = 0; j < PERF_TYPE_MAX; ++j) { in perf_session__check_output_opt() 307 evsel = perf_session__find_first_evtype(session, j); in perf_session__check_output_opt() 313 if (!evsel && output[j].user_set && !output[j].wildcard_set) { in perf_session__check_output_opt() 316 event_type(j)); in perf_session__check_output_opt() 320 if (evsel && output[j].fields && in perf_session__check_output_opt() 351 j = PERF_TYPE_TRACEPOINT; in perf_session__check_output_opt() [all …]
|
D | builtin-kvm.c | 132 int j; in clear_events_cache_stats() local 141 for (j = 0; j < event->max_vcpu; ++j) { in clear_events_cache_stats() 142 event->vcpu[j].time = 0; in clear_events_cache_stats() 143 init_stats(&event->vcpu[j].stats); in clear_events_cache_stats() 1138 unsigned int rec_argc, i, j, events_tp_size; in kvm_events_record() local 1166 for (j = 0; j < events_tp_size; j++) { in kvm_events_record() 1168 rec_argv[i++] = STRDUP_FAIL_EXIT(kvm_events_tp[j]); in kvm_events_record() 1174 for (j = 1; j < (unsigned int)argc; j++, i++) in kvm_events_record() 1175 rec_argv[i] = argv[j]; in kvm_events_record() 1470 int rec_argc, i = 0, j; in __cmd_record() local [all …]
|
/tools/perf/tests/ |
D | builtin-test.c | 236 #define for_each_test(j, t) \ argument 237 for (j = 0; j < ARRAY_SIZE(tests); j++) \ 238 for (t = &tests[j][0]; t->func; t++) 243 unsigned int j; in __cmd_test() local 247 for_each_test(j, t) { in __cmd_test() 254 for_each_test(j, t) { in __cmd_test() 290 unsigned int j; in perf_test__list() local 294 for_each_test(j, t) { in perf_test__list()
|
D | mmap-basic.c | 31 expected_nr_events[nsyscalls], i, j; in test__basic_mmap() local 97 for (j = 0; j < expected_nr_events[i]; ++j) { in test__basic_mmap()
|
/tools/testing/selftests/ptrace/ |
D | peeksiginfo.c | 107 int i, j, ret, exit_code = -1; in check_direct_path() local 130 for (j = 0; j < ret; j++, i++) { in check_direct_path() 131 if (siginfo[j].si_code == si_code && in check_direct_path() 132 siginfo[j].si_int == i) in check_direct_path() 136 shared, i, siginfo[j].si_code, siginfo[j].si_int); in check_direct_path()
|
/tools/testing/selftests/powerpc/mm/ |
D | subpage_prot.c | 96 long i, j, pages, err; in run_test() local 121 for (j = 0; j < 16; j++, addr += 0x1000) { in run_test() 123 check_faulted(addr, i, j, 0); in run_test() 125 check_faulted(addr, i, j, 1); in run_test()
|
/tools/usb/usbip/src/ |
D | usbip_list.c | 57 int rc, j; in get_exported_devices() local 107 for (j = 0; j < udev.bNumInterfaces; j++) { in get_exported_devices() 111 j); in get_exported_devices() 121 printf("%11s: %2d - %s\n", "", j, class_name); in get_exported_devices()
|
/tools/usb/ffs-aio-example/multibuff/device_app/ |
D | aio_multibuff.c | 237 unsigned i, j; in main() local 331 for (j = 0; j < iobuf[i].cnt; ++j) { in main() 332 io_prep_pwrite(iobuf[i].iocb[j], ep1, in main() 333 iobuf[i].buf[j], in main() 336 iobuf[i].iocb[j]->u.c.flags |= IOCB_FLAG_RESFD; in main() 337 iobuf[i].iocb[j]->u.c.resfd = evfd; in main()
|
/tools/perf/tests/attr/ |
D | README | 37 perf record -j any kill (test-record-branch-filter-any) 38 perf record -j any_call kill (test-record-branch-filter-any_call) 39 perf record -j any_ret kill (test-record-branch-filter-any_ret) 40 perf record -j hv kill (test-record-branch-filter-hv) 41 perf record -j ind_call kill (test-record-branch-filter-ind_call) 42 perf record -j k kill (test-record-branch-filter-k) 43 perf record -j u kill (test-record-branch-filter-u)
|
/tools/perf/bench/ |
D | futex-wake.c | 117 unsigned int i, j; in bench_futex_wake() local 154 for (j = 0; j < bench_repeat && !done; j++) { in bench_futex_wake() 182 j + 1, nwoken, nthreads, runtime.tv_usec/1e3); in bench_futex_wake()
|
D | futex-requeue.c | 111 unsigned int i, j; in bench_futex_requeue() local 149 for (j = 0; j < bench_repeat && !done; j++) { in bench_futex_requeue() 184 j + 1, nrequeued, nthreads, runtime.tv_usec/1e3); in bench_futex_requeue()
|