Home
last modified time | relevance | path

Searched refs:j (Results 1 – 25 of 211) sorted by relevance

123456789

/tools/perf/util/
Dlevenshtein.c51 int i, j; in levenshtein() local
53 for (j = 0; j <= len2; j++) in levenshtein()
54 row1[j] = j * a; in levenshtein()
59 for (j = 0; j < len2; j++) { in levenshtein()
61 row2[j + 1] = row1[j] + s * (string1[i] != string2[j]); in levenshtein()
63 if (i > 0 && j > 0 && string1[i - 1] == string2[j] && in levenshtein()
64 string1[i] == string2[j - 1] && in levenshtein()
65 row2[j + 1] > row0[j - 1] + w) in levenshtein()
66 row2[j + 1] = row0[j - 1] + w; in levenshtein()
68 if (row2[j + 1] > row1[j + 1] + d) in levenshtein()
[all …]
Dvalues.c136 int j; in perf_read_values__enlarge_counters() local
143 for (j = values->counters_max; j < counters_max; j++) in perf_read_values__enlarge_counters()
144 value[j] = 0; in perf_read_values__enlarge_counters()
204 int i, j; in perf_read_values__display_pretty() local
215 for (j = 0; j < values->counters; j++) in perf_read_values__display_pretty()
216 counterwidth[j] = strlen(values->countername[j]); in perf_read_values__display_pretty()
226 for (j = 0; j < values->counters; j++) { in perf_read_values__display_pretty()
227 width = snprintf(NULL, 0, "%" PRIu64, values->value[i][j]); in perf_read_values__display_pretty()
228 if (width > counterwidth[j]) in perf_read_values__display_pretty()
229 counterwidth[j] = width; in perf_read_values__display_pretty()
[all …]
Dprint_binary.c10 size_t i, j, mask; in binary__fprintf() local
29 for (j = 0; j < mask-(i & mask); j++) in binary__fprintf()
33 for (j = i & ~mask; j <= i; j++) in binary__fprintf()
34 printed += printer(BINARY_PRINT_CHAR_DATA, data[j], extra, fp); in binary__fprintf()
35 for (j = 0; j < mask-(i & mask); j++) in binary__fprintf()
Ddemangle-ocaml.c32 int j = 0; in ocaml_demangle_sym() local
53 result[j++] = '.'; in ocaml_demangle_sym()
58 result[j++] = (hex(sym[i + 1]) << 4) | hex(sym[i + 2]); in ocaml_demangle_sym()
62 result[j++] = sym[i++]; in ocaml_demangle_sym()
65 result[j] = '\0'; in ocaml_demangle_sym()
/tools/testing/selftests/net/
Dreuseaddr_ports_exhausted.c84 int i, j, fd[2]; in TEST() local
89 for (j = 0; j < 2; j++) in TEST()
90 fd[j] = bind_port(_metadata, opts->reuseaddr[j], opts->reuseport[j]); in TEST()
95 for (j = 0; j < 2; j++) in TEST()
96 if (fd[j] != -1) in TEST()
97 close(fd[j]); in TEST()
104 int i, j, fd[2]; in TEST() local
109 for (j = 0; j < 2; j++) in TEST()
110 fd[j] = bind_port(_metadata, opts->reuseaddr[j], opts->reuseport[j]); in TEST()
120 for (j = 0; j < 2; j++) in TEST()
[all …]
/tools/testing/selftests/powerpc/math/
Dvmx_signal.c52 int j; in signal_vmx_sig() local
61 for (j = 20; j < 32; j++) { in signal_vmx_sig()
62 printf("%d | 0x%04x%04x%04x%04x | 0x%04x%04x%04x%04x\n", j, mc->v_regs->vrregs[j][0], in signal_vmx_sig()
63 mc->v_regs->vrregs[j][1], mc->v_regs->vrregs[j][2], mc->v_regs->vrregs[j][3], in signal_vmx_sig()
64 varray[j - 20][0], varray[j - 20][1], varray[j - 20][2], varray[j - 20][3]); in signal_vmx_sig()
74 int i, j; in signal_vmx_c() local
85 for (j = 0; j < 4; j++) in signal_vmx_c()
86 varray[i][j] = rand(); in signal_vmx_c()
95 int i, j, rc, threads; in test_signal_vmx() local
124 for (j = 0; j < threads; j++) { in test_signal_vmx()
[all …]
/tools/testing/selftests/arm64/mte/
Dcheck_buffer_fill.c31 int i, j, item; in check_buffer_by_byte() local
43 for (j = 0; j < sizes[i]; j++) in check_buffer_by_byte()
44 ptr[j] = '1'; in check_buffer_by_byte()
48 for (j = 0; j < sizes[i] && !err; j++) { in check_buffer_by_byte()
49 if (ptr[j] != '1') in check_buffer_by_byte()
67 int i, j, item, last_index; in check_buffer_underflow_by_byte() local
83 for (j = sizes[i] - 1; (j >= -underflow_range) && in check_buffer_underflow_by_byte()
84 (!cur_mte_cxt.fault_valid); j--) { in check_buffer_underflow_by_byte()
85 ptr[j] = '1'; in check_buffer_underflow_by_byte()
86 last_index = j; in check_buffer_underflow_by_byte()
[all …]
/tools/testing/selftests/powerpc/tm/
Dtm-signal-context-chk-vmx.c58 int i, j; in signal_usr1() local
70 for (j = 0; j < 4; j++) in signal_usr1()
71 printf("%08x", ucp->uc_mcontext.v_regs->vrregs[VMX20 + i][j]); in signal_usr1()
74 for (j = 0; j < 4; j++) in signal_usr1()
75 printf("%08x", vms[i][j]); in signal_usr1()
88 for (j = 0; j < 4; j++) in signal_usr1()
89 printf("%08x", tm_ucp->uc_mcontext.v_regs->vrregs[VMX20 + i][j]); in signal_usr1()
92 for (j = 0; j < 4; j++) in signal_usr1()
93 printf("%08x", vms[NV_VMX_REGS + i][j]); in signal_usr1()
Dtm-signal-context-chk-vsx.c59 int i, j; in signal_usr1() local
114 for (j = 0; j < 16; j++) in signal_usr1()
115 printf("%02x", vsx[j]); in signal_usr1()
117 for (j = 0; j < 4; j++) in signal_usr1()
118 printf("%08x", vsxs[i][j]); in signal_usr1()
138 for (j = 0; j < 16; j++) in signal_usr1()
139 printf("%02x", vsx_tm[j]); in signal_usr1()
141 for (j = 0; j < 4; j++) in signal_usr1()
142 printf("%08x", vsxs[NV_VSX_REGS + i][j]); in signal_usr1()
/tools/arch/x86/tools/
Dgen-insn-attr-x86.awk239 function convert_operands(count,opnd, i,j,imm,mod)
243 for (j = 1; j <= count; j++) {
244 i = opnd[j]
373 for (j = 0; j < max_lprefix; j++)
374 if (etable[i,j])
375 print " ["i"]["j"] = "etable[i,j]","
382 for (j = 0; j < max_lprefix; j++)
383 if (gtable[i,j])
384 print " ["i"]["j"] = "gtable[i,j]","
391 for (j = 0; j < max_lprefix; j++)
[all …]
/tools/testing/selftests/bpf/progs/
Dloop1.c17 int i, j, sum = 0, m; in nested_loops() local
19 for (j = 0; j < 300; j++) in nested_loops()
20 for (i = 0; i < j; i++) { in nested_loops()
21 if (j & 1) in nested_loops()
24 m = j; in nested_loops()
/tools/testing/selftests/powerpc/security/
Dflush_utils.c33 for (unsigned long j = 0; j < zero_size; j += CACHELINE_SIZE) in syscall_loop() local
34 load(p + j); in syscall_loop()
45 for (unsigned long j = 0; j < zero_size; j += CACHELINE_SIZE) in syscall_loop_uaccess() local
46 load(p + j); in syscall_loop_uaccess()
/tools/testing/selftests/resctrl/
Dresctrl_val.c66 void membw_initialize_perf_event_attr(int i, int j) in membw_initialize_perf_event_attr() argument
68 memset(&imc_counters_config[i][j].pe, 0, in membw_initialize_perf_event_attr()
70 imc_counters_config[i][j].pe.type = imc_counters_config[i][j].type; in membw_initialize_perf_event_attr()
71 imc_counters_config[i][j].pe.size = sizeof(struct perf_event_attr); in membw_initialize_perf_event_attr()
72 imc_counters_config[i][j].pe.disabled = 1; in membw_initialize_perf_event_attr()
73 imc_counters_config[i][j].pe.inherit = 1; in membw_initialize_perf_event_attr()
74 imc_counters_config[i][j].pe.exclude_guest = 0; in membw_initialize_perf_event_attr()
75 imc_counters_config[i][j].pe.config = in membw_initialize_perf_event_attr()
76 imc_counters_config[i][j].umask << 8 | in membw_initialize_perf_event_attr()
77 imc_counters_config[i][j].event; in membw_initialize_perf_event_attr()
[all …]
/tools/testing/selftests/rcutorture/bin/
Dconfig2csv.sh54 for (j = 1; j <= ns; j++)
55 printf ",\"%s\"", ss[j];
59 for (j = 1; j <= ns; j++) {
60 printf ",\"%s\"", p[cs[i] ":" ss[j]];
/tools/thermal/tmon/
Dtui.c201 int i, j, x, y = 0; in show_cooling_device() local
211 for (j = 0; j < ptdata.nr_cooling_dev; j++) { in show_cooling_device()
215 mvwprintw(cooling_device_window, j + 2, 1, in show_cooling_device()
217 ptdata.cdi[j].instance, in show_cooling_device()
218 ptdata.cdi[j].type, in show_cooling_device()
219 ptdata.cdi[j].cur_state, in show_cooling_device()
220 ptdata.cdi[j].max_state); in show_cooling_device()
226 for (j = 0; j < ptdata.nr_cooling_dev; j++) { in show_cooling_device()
228 y = j; in show_cooling_device()
237 cdev_inst = ptdata.cdi[j].instance; in show_cooling_device()
[all …]
/tools/testing/selftests/powerpc/stringloops/
Dmemcmp.c99 unsigned long j; in testcase() local
104 for (j = 0; j < alloc_size; j++) in testcase()
105 s1[j] = random(); in testcase()
125 unsigned long j; in testcase() local
130 for (j = 0; j < alloc_size; j++) in testcase()
131 s1[j] = random(); in testcase()
138 for (j = 0; j < comp_size / 8; j++) { in testcase()
Dstrlen.c76 unsigned long j; in testcase() local
78 for (j = 0; j < SIZE; j++) { in testcase()
84 s[j] = c; in testcase()
86 for (j = 0; j < sizeof(long); j++) { in testcase()
87 s[SIZE - 1 - j] = 0; in testcase()
/tools/testing/selftests/bpf/map_tests/
Darray_map_batch_ops.c17 int i, j, err; in map_batch_update() local
28 for (j = 0; j < nr_cpus; j++) in map_batch_update()
29 (values + cpu_offset)[j] = i + 1 + j; in map_batch_update()
42 int i, j; in map_batch_verify() local
49 for (j = 0; j < nr_cpus; j++) { in map_batch_verify()
50 __s64 value = (values + cpu_offset)[j]; in map_batch_verify()
51 CHECK(keys[i] + j + 1 != value, in map_batch_verify()
54 j, keys[i], value); in map_batch_verify()
/tools/perf/tests/shell/
Dtest_uprobe_from_different_cu.sh50 int j, res = 0;
51 for (j = 0; j < i && j < t->c; j++)
52 res += t->p[j];
67 int j[argc];
69 g.p = j;
71 j[i] = (int) argv[i][0];
/tools/testing/selftests/powerpc/dscr/
Ddscr_sysfs_thread_test.c57 int i, j; in dscr_sysfs_thread() local
63 for (j = 0; j < DSCR_MAX; j++) { in dscr_sysfs_thread()
64 set_default_dscr(j); in dscr_sysfs_thread()
65 if (check_cpu_dscr_thread(j)) in dscr_sysfs_thread()
/tools/testing/radix-tree/
Dmultiorder.c38 int i, j, err; in multiorder_iteration() local
51 for (j = 0; j < 256; j++) { in multiorder_iteration()
53 if (j <= (index[i] | ((1 << order[i]) - 1))) in multiorder_iteration()
56 xas_set(&xas, j); in multiorder_iteration()
78 int i, j; in multiorder_tagged_iteration() local
97 for (j = 0; j < 256; j++) { in multiorder_tagged_iteration()
103 if (j <= (index[k] | ((1 << order[k]) - 1))) in multiorder_tagged_iteration()
107 xas_set(&xas, j); in multiorder_tagged_iteration()
125 for (j = 0; j < 256; j++) { in multiorder_tagged_iteration()
131 if (j <= (index[k] | ((1 << order[k]) - 1))) in multiorder_tagged_iteration()
[all …]
/tools/testing/selftests/drivers/net/mlxsw/spectrum/
Ddevlink_resources.sh47 local j
58 for j in $KVDL_CHILDREN; do
59 devlink_resource_size_set 0 kvd linear "$j"
74 local j
83 for j in $KVD_CHILDREN; do
84 if [ "$i" != "$j" ]; then
85 min_size=$(devlink_resource_get kvd "$j" | \
/tools/power/x86/intel-speed-select/
Disst-display.c89 int i, j = 0; in format_and_print_txt() local
98 j += snprintf(&delimiters[j], sizeof(delimiters) - j, in format_and_print_txt()
130 int j = 0; in format_and_print() local
133 j += snprintf(&delimiters[j], sizeof(delimiters) - j, in format_and_print()
149 for (j = i; j > 0; --j) in format_and_print()
242 int print = 0, j; in _isst_fact_display_information() local
244 for (j = 0; j < ISST_FACT_MAX_BUCKETS; ++j) { in _isst_fact_display_information()
245 if (fact_bucket != 0xff && fact_bucket != j) in _isst_fact_display_information()
248 if (!bucket_info[j].high_priority_cores_count) in _isst_fact_display_information()
260 for (j = 0; j < ISST_FACT_MAX_BUCKETS; ++j) { in _isst_fact_display_information()
[all …]
/tools/testing/selftests/bpf/prog_tests/
Dresolve_btfids.c123 unsigned int i, j; in test_resolve_btfids() local
132 for (j = 0; j < ARRAY_SIZE(test_lists); j++) { in test_resolve_btfids()
133 test_list = test_lists[j]; in test_resolve_btfids()
149 for (j = 0; j < ARRAY_SIZE(test_symbols); j++) { in test_resolve_btfids()
150 if (test_symbols[j].id != test_set.ids[i]) in test_resolve_btfids()
Dmap_lock.c21 int vars[17], i, j, rnd, key = 0; in parallel_map_access() local
34 for (j = 2; j < 17; j++) { in parallel_map_access()
35 if (vars[j] == rnd) in parallel_map_access()
38 i, rnd, j, vars[j]); in parallel_map_access()
39 CHECK_FAIL(vars[j] != rnd); in parallel_map_access()

123456789