Home
last modified time | relevance | path

Searched refs:k (Results 1 – 25 of 56) sorted by relevance

123

/tools/lib/
Dbitmap.c12 int k, w = 0, lim = bits/BITS_PER_LONG; in __bitmap_weight() local
14 for (k = 0; k < lim; k++) in __bitmap_weight()
15 w += hweight_long(bitmap[k]); in __bitmap_weight()
18 w += hweight_long(bitmap[k] & BITMAP_LAST_WORD_MASK(bits)); in __bitmap_weight()
26 int k; in __bitmap_or() local
29 for (k = 0; k < nr; k++) in __bitmap_or()
30 dst[k] = bitmap1[k] | bitmap2[k]; in __bitmap_or()
65 unsigned int k; in __bitmap_and() local
69 for (k = 0; k < lim; k++) in __bitmap_and()
70 result |= (dst[k] = bitmap1[k] & bitmap2[k]); in __bitmap_and()
[all …]
/tools/include/linux/
Djhash.h73 const u8 *k = key; in jhash() local
80 a += __get_unaligned_cpu32(k); in jhash()
81 b += __get_unaligned_cpu32(k + 4); in jhash()
82 c += __get_unaligned_cpu32(k + 8); in jhash()
85 k += 12; in jhash()
90 case 12: c += (u32)k[11]<<24; in jhash()
91 case 11: c += (u32)k[10]<<16; in jhash()
92 case 10: c += (u32)k[9]<<8; in jhash()
93 case 9: c += k[8]; in jhash()
94 case 8: b += (u32)k[7]<<24; in jhash()
[all …]
/tools/perf/tests/
Dhists_link.c71 size_t i = 0, k; in add_hist_entries() local
81 for (k = 0; k < ARRAY_SIZE(fake_common_samples); k++) { in add_hist_entries()
83 sample.pid = fake_common_samples[k].pid; in add_hist_entries()
84 sample.tid = fake_common_samples[k].pid; in add_hist_entries()
85 sample.ip = fake_common_samples[k].ip; in add_hist_entries()
97 fake_common_samples[k].thread = al.thread; in add_hist_entries()
98 fake_common_samples[k].map = al.map; in add_hist_entries()
99 fake_common_samples[k].sym = al.sym; in add_hist_entries()
102 for (k = 0; k < ARRAY_SIZE(fake_samples[i]); k++) { in add_hist_entries()
103 sample.pid = fake_samples[i][k].pid; in add_hist_entries()
[all …]
Dhists_common.c126 size_t k; in setup_fake_machine() local
136 for (k = 0; k < fake_symbols[i].nr_syms; k++) { in setup_fake_machine()
138 struct fake_sym *fsym = &fake_symbols[i].syms[k]; in setup_fake_machine()
Dkmod-path.c48 #define T(path, an, ae, k, c, n, e) \ argument
49 TEST_ASSERT_VAL("failed", !test(path, an, ae, k, c, n, e))
/tools/testing/selftests/tc-testing/
Dtdc_helper.py60 for k in tcase.keys():
61 if (type(tcase[k]) == list):
62 print(k + ":")
63 print_list(tcase[k])
65 print(k + ": " + tcase[k])
Dtdc_batch.py51 for k in range(0x100):
52 mac = ("%02x:%02x:%02x" % (i, j, k))
Dtdc.py178 return not(all(k for k in idlist))
190 for k in testlist:
191 k['filename'] = filename
/tools/testing/radix-tree/
Dmultiorder.c297 int k; in multiorder_tagged_iteration() local
300 for (k = i; index[k] < tag_index[i]; k++) in multiorder_tagged_iteration()
302 if (j <= (index[k] | ((1 << order[k]) - 1))) in multiorder_tagged_iteration()
309 for (k = i; index[k] < tag_index[i]; k++) in multiorder_tagged_iteration()
311 mask = (1UL << order[k]) - 1; in multiorder_tagged_iteration()
316 assert(item->order == order[k]); in multiorder_tagged_iteration()
325 int mask, k; in multiorder_tagged_iteration() local
328 for (k = i; index[k] < tag_index[i]; k++) in multiorder_tagged_iteration()
330 if (j <= (index[k] | ((1 << order[k]) - 1))) in multiorder_tagged_iteration()
336 for (k = i; index[k] < tag_index[i]; k++) in multiorder_tagged_iteration()
[all …]
/tools/thermal/tmon/
Dsysfs.c292 int i, j, n, k = 0; in scan_tzones() local
311 sysfs_get_string(tz_name, "type", ptdata.tzi[k].type); in scan_tzones()
312 ptdata.tzi[k].instance = i; in scan_tzones()
315 ptdata.tzi[k].nr_cdev = 0; in scan_tzones()
316 ptdata.tzi[k].nr_trip_pts = 0; in scan_tzones()
321 &ptdata.tzi[k], k)) in scan_tzones()
329 &ptdata.tzi[k], i, j)) in scan_tzones()
338 ptdata.tzi[k].nr_cdev); in scan_tzones()
339 k++; in scan_tzones()
350 int i, n, k = 0; in scan_cdevs() local
[all …]
/tools/testing/selftests/bpf/
Dtest_l4lb.c62 const unsigned char *k = key; in jhash() local
67 a += *(u32 *)(k); in jhash()
68 b += *(u32 *)(k + 4); in jhash()
69 c += *(u32 *)(k + 8); in jhash()
72 k += 12; in jhash()
75 case 12: c += (u32)k[11]<<24; in jhash()
76 case 11: c += (u32)k[10]<<16; in jhash()
77 case 10: c += (u32)k[9]<<8; in jhash()
78 case 9: c += k[8]; in jhash()
79 case 8: b += (u32)k[7]<<24; in jhash()
[all …]
/tools/iio/
Diio_generic_buffer.c178 int k; in process_scan() local
180 for (k = 0; k < num_channels; k++) in process_scan()
181 switch (channels[k].bytes) { in process_scan()
184 print1byte(*(uint8_t *)(data + channels[k].location), in process_scan()
185 &channels[k]); in process_scan()
188 print2byte(*(uint16_t *)(data + channels[k].location), in process_scan()
189 &channels[k]); in process_scan()
192 print4byte(*(uint32_t *)(data + channels[k].location), in process_scan()
193 &channels[k]); in process_scan()
196 print8byte(*(uint64_t *)(data + channels[k].location), in process_scan()
[all …]
/tools/perf/scripts/python/
Dsyscall-counts.py62 for id, val in sorted(syscalls.iteritems(), key = lambda(k, v): (v, k), \
Dsyscall-counts-by-pid.py73 key = lambda(k, v): (v, k), reverse = True):
Dsctop.py73 for id, val in sorted(syscalls.iteritems(), key = lambda(k, v): (v, k), \
Dfailed-syscalls-by-pid.py77 …for ret, val in sorted(syscalls[comm][pid][id].iteritems(), key = lambda(k, v): (v, k), reverse =…
Devent_analyzing_sample.py190 print ' '.join(['%s=%s'%(k,str(v))for k,v in sorted(event_fields_dict.items())])
Dintel-pt-events.py31 print ' '.join(['%s=%s'%(k,str(v))for k,v in sorted(event_fields_dict.items())])
/tools/perf/tests/attr/
Dtest-record-branch-filter-k3 args = -j k kill >/dev/null 2>&1
/tools/perf/
Dbuiltin-probe.c351 int i, k; in perf_add_probe_events() local
371 for (i = k = 0; i < npevs; i++) in perf_add_probe_events()
372 k += pevs[i].ntevs; in perf_add_probe_events()
374 pr_info("Added new event%s\n", (k > 1) ? "s:" : ":"); in perf_add_probe_events()
378 for (k = 0; k < pev->ntevs; k++) { in perf_add_probe_events()
379 struct probe_trace_event *tev = &pev->tevs[k]; in perf_add_probe_events()
/tools/testing/selftests/powerpc/mm/
DMakefile16 dd if=/dev/zero of=$@ bs=64k count=1
/tools/net/
Dbpf_exp.y43 static void bpf_set_curr_instr(uint16_t op, uint8_t jt, uint8_t jf, uint32_t k);
480 uint32_t k) in bpf_set_curr_instr() argument
486 out[curr_instr].k = k; in bpf_set_curr_instr()
543 out[i].k = (uint32_t) (off - i - 1); in bpf_reduce_k_jumps()
585 out[i].jt, out[i].jf, out[i].k); in bpf_pretty_print_c()
595 out[i].jt, out[i].jf, out[i].k); in bpf_pretty_print()
/tools/vm/
Dpage-types.c568 size_t k = HASH_KEY(flags); in hash_slot() local
578 for (i = 1; i < ARRAY_SIZE(page_flags); i++, k++) { in hash_slot()
579 if (!k || k >= ARRAY_SIZE(page_flags)) in hash_slot()
580 k = 1; in hash_slot()
581 if (page_flags[k] == 0) { in hash_slot()
582 page_flags[k] = flags; in hash_slot()
583 return k; in hash_slot()
585 if (page_flags[k] == flags) in hash_slot()
586 return k; in hash_slot()
/tools/perf/util/
Dbpf-loader.c827 } k; member
844 parse_events__clear_array(&op->k.array); in bpf_map_op__delete()
878 sizeof(op->k.array.ranges[0]); in bpf_map_op_setkey()
880 op->k.array.ranges = memdup(term->array.ranges, memsz); in bpf_map_op_setkey()
881 if (!op->k.array.ranges) { in bpf_map_op_setkey()
886 op->k.array.nr_ranges = term->array.nr_ranges; in bpf_map_op_setkey()
925 size_t memsz = op->k.array.nr_ranges * in bpf_map_op__clone()
926 sizeof(op->k.array.ranges[0]); in bpf_map_op__clone()
928 newop->k.array.ranges = memdup(op->k.array.ranges, memsz); in bpf_map_op__clone()
929 if (!newop->k.array.ranges) { in bpf_map_op__clone()
[all …]
/tools/perf/Documentation/
Dperf-buildid-list.txt33 -k::

123