/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 | 110 int i, j; in trace_event() local 129 for (j = 0; j < 15-(i & 15); j++) in trace_event() 131 for (j = i & ~15; j <= i; j++) { in trace_event() 133 isprint(raw_event[j]) ? in trace_event() 134 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 | 746 int len, j; in print_pmu_events() local 758 j = 0; in print_pmu_events() 769 aliases[j] = name; in print_pmu_events() 771 aliases[j] = format_alias_or(buf, sizeof(buf), in print_pmu_events() 773 aliases[j] = strdup(aliases[j]); in print_pmu_events() 774 j++; in print_pmu_events() 776 len = j; in print_pmu_events() 778 for (j = 0; j < len; j++) { in print_pmu_events() 780 printf("%s ", aliases[j]); in print_pmu_events() 783 printf(" %-50s [Kernel PMU event]\n", aliases[j]); in print_pmu_events() [all …]
|
/tools/thermal/tmon/ |
D | tui.c | 186 int i, j, x, y = 0; in show_cooling_device() local 196 for (j = 0; j < ptdata.nr_cooling_dev; j++) { in show_cooling_device() 200 mvwprintw(cooling_device_window, j + 2, 1, in show_cooling_device() 202 ptdata.cdi[j].instance, in show_cooling_device() 203 ptdata.cdi[j].type, in show_cooling_device() 204 ptdata.cdi[j].cur_state, in show_cooling_device() 205 ptdata.cdi[j].max_state); in show_cooling_device() 211 for (j = 0; j < ptdata.nr_cooling_dev; j++) { in show_cooling_device() 213 y = j; in show_cooling_device() 222 cdev_inst = ptdata.cdi[j].instance; in show_cooling_device() [all …]
|
D | tmon.c | 182 int j; in prepare_logging() local 185 for (j = 0; j < 32; j++) in prepare_logging() 186 binding_str[j] = (ptdata.tzi[i].cdev_binding & 1<<j) ? in prepare_logging() 193 for (j = 0; j < ptdata.tzi[i].nr_trip_pts; j++) { in prepare_logging() 194 fprintf(tmon_log, "#\tTP%02d type:%s, temp:%lu\n", j, in prepare_logging() 195 trip_type_name[ptdata.tzi[i].tp[j].type], in prepare_logging() 196 ptdata.tzi[i].tp[j].temp); in prepare_logging()
|
/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 48 for (j = 1; j < argc; j++, i++) in __cmd_record() 49 rec_argv[i] = argv[j]; in __cmd_record() 155 int ret, i = 0, j, rep_argc; in report_events() local 177 for (j = 1; j < argc; j++, i++) in report_events() 178 rep_argv[i] = argv[j]; in report_events()
|
D | builtin-script.c | 126 int j; in output_set_by_user() local 127 for (j = 0; j < PERF_TYPE_MAX; ++j) { in output_set_by_user() 128 if (output[j].user_set) in output_set_by_user() 272 int j; in perf_session__check_output_opt() local 275 for (j = 0; j < PERF_TYPE_MAX; ++j) { in perf_session__check_output_opt() 276 evsel = perf_session__find_first_evtype(session, j); in perf_session__check_output_opt() 282 if (!evsel && output[j].user_set && !output[j].wildcard_set) { in perf_session__check_output_opt() 285 event_type(j)); in perf_session__check_output_opt() 289 if (evsel && output[j].fields && in perf_session__check_output_opt() 320 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() 1127 unsigned int rec_argc, i, j, events_tp_size; in kvm_events_record() local 1151 for (j = 0; j < events_tp_size; j++) { in kvm_events_record() 1153 rec_argv[i++] = STRDUP_FAIL_EXIT(kvm_events_tp[j]); in kvm_events_record() 1159 for (j = 1; j < (unsigned int)argc; j++, i++) in kvm_events_record() 1160 rec_argv[i] = argv[j]; in kvm_events_record() 1429 int rec_argc, i = 0, j; in __cmd_record() local [all …]
|
/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/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/perf/bench/ |
D | futex-wake.c | 112 unsigned int i, j; in bench_futex_wake() local 149 for (j = 0; j < bench_repeat && !done; j++) { in bench_futex_wake() 177 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 146 for (j = 0; j < bench_repeat && !done; j++) { in bench_futex_requeue() 183 j + 1, nrequeued, nthreads, runtime.tv_usec/1e3); in bench_futex_requeue()
|
D | sched-messaging.c | 86 unsigned int i, j; in sender() local 92 for (j = 0; j < ctx->num_fds; j++) { in sender() 96 ret = write(ctx->out_fds[j], data + done, in sender()
|
/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)
|
D | test-record-branch-filter-u | 3 args = -j u kill >/dev/null 2>&1
|
D | test-record-branch-filter-hv | 3 args = -j hv kill >/dev/null 2>&1
|
D | test-record-branch-filter-any_call | 3 args = -j any_call kill >/dev/null 2>&1
|
D | test-record-branch-filter-k | 3 args = -j k kill >/dev/null 2>&1
|
D | test-record-branch-filter-any | 3 args = -j any kill >/dev/null 2>&1
|
/tools/perf/tests/ |
D | mmap-basic.c | 32 expected_nr_events[nsyscalls], i, j; in test__basic_mmap() local 98 for (j = 0; j < expected_nr_events[i]; ++j) { in test__basic_mmap()
|
/tools/power/acpi/tools/acpidump/ |
D | apmain.c | 166 int j; in ap_do_options() local 171 while ((j = in ap_do_options() 173 switch (j) { in ap_do_options()
|