Home
last modified time | relevance | path

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

12345678

/xnu-11215/tools/tests/affinity/
H A Dsets.c437 for (j = 0; j < stages; j++) { in main()
439 sp->stagenum = j; in main()
441 lp->stage[j] = sp; in main()
452 for (j = 0; j < stages; j++) { in main()
453 sp = lp->stage[j]; in main()
454 if (j == 0) { in main()
467 for (j = 0; j < buffers; j++) { in main()
468 work_array[j].data = lp->data + (lp->isize * j); in main()
471 &work_array[j], i, work_array[j].data); in main()
475 for (j = 0; j < stages; j++) { in main()
[all …]
H A Dpool.c313 int j; in main() local
436 for (j = 0; j < buffers; j++) { in main()
437 work_array[j].data = data + (isize * j); in main()
438 work_array[j].isize = isize; in main()
439 work_array[j].tag = 0; in main()
442 &work_array[j], work_array[j].data); in main()
457 for (j = 0; j < consumers; j++) { in main()
459 wp->setnum = j + 1; in main()
475 int j; in main() local
480 j = k; in main()
[all …]
/xnu-11215/tests/safe_allocation_src/
H A Dusage.two_dimensions.cpp25 for (int j = 0; j < 10; ++j) { in tests() local
26 array[i][j] = i + j; in tests()
31 for (int j = 0; j < 10; ++j) { in tests() local
32 CHECK(array[i][j] == i + j); in tests()
/xnu-11215/tests/skywalk/
H A Dskywalk_mptest_driver.c192 for (int j = 0; j < skt->skt_nchildren; j++) { in skywalk_mptest_driver_run() local
197 snprintf(argbuf, sizeof(argbuf), "%d", j); in skywalk_mptest_driver_run()
214 if ((pids[j] = fork()) == -1) { in skywalk_mptest_driver_run()
219 if (pids[j] == 0) { in skywalk_mptest_driver_run()
250 fds[j] = pfd[1]; in skywalk_mptest_driver_run()
254 for (int j = 0; j < skt->skt_nchildren; j++) { in skywalk_mptest_driver_run() local
257 if ((ret = read(fds[j], buf, sizeof(buf))) == -1) { in skywalk_mptest_driver_run()
269 for (int j = 0; j < skt->skt_nchildren; j++) { in skywalk_mptest_driver_run() local
272 if ((ret = write(fds[j], buf, sizeof(buf))) == -1) { in skywalk_mptest_driver_run()
278 error = close(fds[j]); in skywalk_mptest_driver_run()
[all …]
H A Dskywalk_test_driver.c241 for (int j = 0; j < maskCount; j++) { in skywalk_test_driver_run() local
243 if ((kr = task_set_exception_ports(mach_task_self(), masks[j], exc_port, in skywalk_test_driver_run()
244 EXCEPTION_DEFAULT | MACH_EXCEPTION_CODES, flavors[j])) != KERN_SUCCESS) { in skywalk_test_driver_run()
271 for (int j = 0; j < maskCount; j++) { in skywalk_test_driver_run() local
272 if ((kr = task_set_exception_ports(mach_task_self(), masks[j], handlers[j], in skywalk_test_driver_run()
273 EXCEPTION_DEFAULT | MACH_EXCEPTION_CODES, flavors[j])) != KERN_SUCCESS) { in skywalk_test_driver_run()
/xnu-11215/tests/
H A Dhost_statistics_rate_limiting.c39 unsigned long i, j; in check_host_info() local
42 for (j = 0; j < iter; j++) { in check_host_info()
43 datap = (char*) &data[j].host_vm_info64_rev0; in check_host_info()
45 T_QUIET; T_ASSERT_EQ(datap[i], lett, "HOST_VM_INFO64_REV0 byte %lu iter %lu", i, j); in check_host_info()
48 datap = (char*) &data[j].host_vm_info_rev0; in check_host_info()
50 T_QUIET; T_ASSERT_EQ(datap[i], lett, "HOST_VM_INFO_REV0 byte %lu iter %lu", i, j); in check_host_info()
53 datap = (char*) &data[j].host_vm_info_rev1; in check_host_info()
55 T_QUIET; T_ASSERT_EQ(datap[i], lett, "HOST_VM_INFO_REV1 byte %lu iter %lu", i, j); in check_host_info()
58 datap = (char*) &data[j].host_expired_task_info; in check_host_info()
69 for (j = MAX_ATTEMP_PER_SEC - 1; j < iter - 1; j++) { in check_host_info()
[all …]
H A Dmemcmp_zero.c39 for (size_t j = i; j < 256; ++j) { variable
43 } else if (k < j) {
45 } else if (k == j) {
55 int ref = j - i < m ? 1 : 0;
65 } else if (k < j) {
67 } else if (k == j) {
77 int ref = j - i < m ? 1 : 0;
H A Dperf_compressor.c82 int i, j; in allocate_mostly_zero_pages() local
87 for (j = 0; j < 40; j++) { in allocate_mostly_zero_pages()
88 buf[i][j] = (char)(j + 1); in allocate_mostly_zero_pages()
108 int i, j; in allocate_representative_pages() local
111 for (j = 0; j < num_pages; j++) { in allocate_representative_pages()
112 buf[j] = (char*)malloc((size_t)vmpgsize * sizeof(char)); in allocate_representative_pages()
115 memset(&buf[j][i], val, 16); in allocate_representative_pages()
286 int i, j, ret, size_mb, page_type, vmpgsize, freezable_state; variable
328 for (j = 0; j < num_pages; j++) {
329 i = buf[j][0];
H A Dkernel_inspection.c161 mach_msg_type_number_t i, j, tcnt, pcnt = 0; variable
177 for (j = 0; j < tcnt; j++) {
178 attempt_kernel_inspection(tasks[j]);
179 mach_port_deallocate(self, tasks[j]);
190 for (j = 0; j < tcnt; j++) {
191 attempt_kernel_inspection(tasks[j]);
192 mach_port_deallocate(self, tasks[j]);
H A Dmcast_group_race_82820812.c37 uint32_t j = 0; variable
48 for (j = 0; j < IP_MIN_MEMBERSHIPS - 1; ++j) {
49 filler_group.imr_multiaddr.s_addr = htonl(ntohl(inet_addr("224.0.0.3")) + j);
H A Dbpf_write.c62 size_t i, j, k; in HexDump() local
67 for (j = i, k = 0; j < i + MAXBUF && j < len; j++) { in HexDump()
68 unsigned char msnbl = ptr[j] >> 4; in HexDump()
69 unsigned char lsnbl = ptr[j] & 0x0f; in HexDump()
73 if ((j % 2) == 1) { in HexDump()
76 if ((j % MAXBUF) == MAXBUF - 1) { in HexDump()
/xnu-11215/osfmk/kern/
H A Dipc_host.c611 unsigned int i, j, count; in host_get_exception_ports() local
627 for (j = 0; j < count; j++) { in host_get_exception_ports()
635 masks[j] |= (1 << i); in host_get_exception_ports()
640 masks[j] = (1 << i); in host_get_exception_ports()
641 ports[j] = in host_get_exception_ports()
669 j, in host_swap_exception_ports() local
720 for (j = 0; j < count; j++) { in host_swap_exception_ports()
728 masks[j] |= (1 << i); in host_swap_exception_ports()
732 if (j == count) { in host_swap_exception_ports()
733 masks[j] = (1 << i); in host_swap_exception_ports()
[all …]
H A Dcoalition.c1117 cj = &coal->j; in i_coal_jetsam_adopt_task()
1139 coal->j.leader = NULL; in i_coal_jetsam_remove_task()
1160 cj = &coal->j; in i_coal_jetsam_set_taskrole()
1230 cj = &coal->j; in i_coal_jetsam_get_taskrole()
1268 cj = &coal->j; in i_coal_jetsam_iterate_tasks()
2441 return coal->j.leader; in kdp_coalition_get_leader()
2487 if (coal->j.leader) { in coalition_get_task_count()
2542 if (coal->j.leader) { in coalition_get_page_count()
2757 cj = &coal->j; in coalition_get_pid_list()
2812 cj = &coal->j; in coalition_mark_swappable()
[all …]
/xnu-11215/bsd/kern/
H A Dtty_pty.c146 int j; in pty_init() local
151 for (j = 0; j < 10; j++) { in pty_init()
153 int m = j * HEX_BASE + i; in pty_init()
159 "tty%c%x", j + START_CHAR, i); in pty_init()
162 "pty%c%x", j + START_CHAR, i); in pty_init()
H A Dmach_fat.c239 size_t nfat_arch, max_nfat_arch, i, j; in fatfile_validate_fatarches() local
290 for (j = i + 1; j < nfat_arch; j++) { in fatfile_validate_fatarches()
291 uint32_t j_begin = OSSwapBigToHostInt32(arches[j].offset); in fatfile_validate_fatarches()
292 uint32_t j_size = OSSwapBigToHostInt32(arches[j].size); in fatfile_validate_fatarches()
293 uint32_t j_cputype = OSSwapBigToHostInt32(arches[j].cputype); in fatfile_validate_fatarches()
294 uint32_t j_cpusubtype = OSSwapBigToHostInt32(arches[j].cpusubtype); in fatfile_validate_fatarches()
/xnu-11215/libkern/kxld/
H A Dkxld_util.c301 u_int j = 0; in validate_and_swap_macho_32() local
387 for (j = 0; j < seg_hdr->nsects; ++j) { in validate_and_swap_macho_32()
391 require_action((sects[j].flags & S_ZEROFILL) || in validate_and_swap_macho_32()
392 (size >= sects[j].offset + sects[j].size), finish, in validate_and_swap_macho_32()
400 sects[j].reloff + sects[j].nreloc * sizeof(*relocs), finish, in validate_and_swap_macho_32()
408 swap_relocation_info(relocs, sects[j].nreloc, in validate_and_swap_macho_32()
482 u_int j = 0; in validate_and_swap_macho_64() local
567 for (j = 0; j < seg_hdr->nsects; ++j) { in validate_and_swap_macho_64()
572 (size >= sects[j].offset + sects[j].size), finish, in validate_and_swap_macho_64()
580 sects[j].reloff + sects[j].nreloc * sizeof(*relocs), finish, in validate_and_swap_macho_64()
[all …]
/xnu-11215/tools/tests/execperf/
H A Dtest.sh43 for j in `jot $(sysctl -n hw.ncpu) 1`; do
44 printf "\t%dx\t" $j
45 METRIC_NAME="${i}_${j}x"
46 TIMEOUT=` /usr/bin/time ./${RUN} $j $((${COUNT}/$j)) ./$i 2>&1`
/xnu-11215/osfmk/i386/
H A Dpcb_native.c346 int i, j, lbr_tos; in i386_lbr_native_state_to_mach_thread_state() local
358 for (j = 0, i = lbr_tos;; (i = (i == 0) ? (cpu_lbr_setp->lbr_count - 1) : (i - 1)), j++) { in i386_lbr_native_state_to_mach_thread_state()
360 machlbrp->lbrs[j].to_ip = lbr_mode_based_filter(to_rip, from_userspace); in i386_lbr_native_state_to_mach_thread_state()
362 machlbrp->lbrs[j].from_ip = lbr_mode_based_filter(from_rip, from_userspace); in i386_lbr_native_state_to_mach_thread_state()
364 machlbrp->lbrs[j].tsx_abort = machlbrp->lbrs[j].in_tsx = 0; /* Not Supported */ in i386_lbr_native_state_to_mach_thread_state()
375 for (j = 0, i = lbr_tos;; (i = (i == 0) ? (cpu_lbr_setp->lbr_count - 1) : (i - 1)), j++) { in i386_lbr_native_state_to_mach_thread_state()
377 machlbrp->lbrs[j].to_ip = lbr_mode_based_filter(to_rip, from_userspace); in i386_lbr_native_state_to_mach_thread_state()
386 machlbrp->lbrs[j].tsx_abort = 0; in i386_lbr_native_state_to_mach_thread_state()
387 machlbrp->lbrs[j].in_tsx = 0; in i386_lbr_native_state_to_mach_thread_state()
399 for (j = 0, i = lbr_tos;; (i = (i == 0) ? (cpu_lbr_setp->lbr_count - 1) : (i - 1)), j++) { in i386_lbr_native_state_to_mach_thread_state()
[all …]
/xnu-11215/tools/
H A Dcred_dump_backtraces.c38 int err, i, j; in main() local
72 for (j = 0; j < btp->depth; j++) { in main()
73 printf("%p ", btp->stack[j]); in main()
/xnu-11215/libkern/zlib/
H A Dzutil.c188 uInt j; in zmemcmp() local
190 for (j = 0; j < len; j++) { in zmemcmp()
191 if (s1[j] != s2[j]) return 2*(s1[j] > s2[j])-1; in zmemcmp()
/xnu-11215/osfmk/tests/
H A Dpmap_tests.c381 for (unsigned int j = 0; j < (sizeof(nest_threads) / sizeof(nest_threads[0])); j++) { in test_pmap_nesting() local
382 args[j].pmap = nested_pmap; in test_pmap_nesting()
383 args[j].stop = FALSE; in test_pmap_nesting()
389 args[j].proc = ((j % 2) ? PROCESSOR_NULL : nest_proc); in test_pmap_nesting()
390 …thread_krs[j] = kernel_thread_start_priority(pmap_nest_thread, &args[j], MAXPRI_KERNEL - (j % 4), … in test_pmap_nesting()
391 if (thread_krs[j] == KERN_SUCCESS) { in test_pmap_nesting()
449 for (unsigned int j = 0; j < (sizeof(nest_threads) / sizeof(nest_threads[0])); j++) { in test_pmap_nesting() local
450 if (thread_krs[j] == KERN_SUCCESS) { in test_pmap_nesting()
451 assert_wait((event_t)&args[j], THREAD_UNINT); in test_pmap_nesting()
452 args[j].stop = TRUE; in test_pmap_nesting()
[all …]
/xnu-11215/bsd/dev/dtrace/
H A Dblist.c279 int j = BLIST_BMAP_RADIX / 2; local
284 while (j) {
286 r += j;
287 orig >>= j;
289 j >>= 1;
290 mask >>= j;
307 int j; local
313 for (j = 0; j <= n; ++j) {
316 return blk + j;
590 for (j = 0; j < (int)BLIST_BMAP_RADIX && j < count; ++j) {
[all …]
H A Dlockprof.c163 size_t event_id, i, j, len; in lockprof_provide() local
167 for (j = 0; probes[j].prefix != NULL; j++) { in lockprof_provide()
168 if (!(probes[j].flags & TIME_EVENT)) { in lockprof_provide()
169 probe_create(j, NULL, NULL, hold_defaults[i], 1); in lockprof_provide()
174 for (j = 0; probes[j].prefix != NULL; j++) { in lockprof_provide()
175 if (probes[j].flags & TIME_EVENT) { in lockprof_provide()
176 probe_create(j, cont_defaults[i].suffix, NULL, cont_defaults[i].time, cont_defaults[i].mult); in lockprof_provide()
H A Dprofile_prvd.c305 int i, j, rate, kind; in profile_provide() local
385 j = strlen(name) - len; in profile_provide()
390 for (j = strlen(name); j >= len; j--) { in profile_provide()
391 if (name[j] >= '0' && name[j] <= '9') { in profile_provide()
394 suffix = &name[j]; in profile_provide()
404 for (; j >= len; j--) { in profile_provide()
405 if (name[j] < '0' || name[j] > '9') { in profile_provide()
409 val += (name[j] - '0') * mult; in profile_provide()
/xnu-11215/tests/vfs/
H A Dfreeable_vnodes.c237 for (int j = 0; dlpaths[j] != NULL; j++) { variable
242 if (stat(dlpaths[j], &sb) != -1) {
244 T_ASSERT_POSIX_SUCCESS(dlpath_fd = open(dlpaths[j], O_RDONLY), NULL);
246 …ATH, &path), "path is %s, iteration number is %d and path number is %d", dlpaths[j], i + 1, j + 1);

12345678