Home
last modified time | relevance | path

Searched refs:sec (Results 1 – 25 of 33) sorted by relevance

12

/xnu-11215/bsd/kern/
H A Dkern_clock.c222 long sec; in hzto() local
234 sec = tv->tv_sec - now.tv_sec; in hzto()
240 ticks = sec * hz; in hzto()
278 long sec, usec; in tvtohz() local
300 sec = tv->tv_sec; in tvtohz()
303 sec--; in tvtohz()
306 if (sec < 0) { in tvtohz()
309 sec++; in tvtohz()
313 sec, usec); in tvtohz()
319 } else if (sec <= LONG_MAX / hz) { in tvtohz()
[all …]
H A Dkern_memorystatus_freeze.c232 clock_sec_t sec; in memorystatus_freeze_force_new_interval() local
235 clock_get_system_nanotime(&sec, &nsec); in memorystatus_freeze_force_new_interval()
236 now_ts.tv_sec = (unsigned int)(MIN(sec, UINT32_MAX)); in memorystatus_freeze_force_new_interval()
428 clock_sec_t sec; variable
451 clock_get_system_nanotime(&sec, &nsec);
1569 clock_sec_t sec; in memorystatus_freeze_reset_interval() local
1574 clock_get_system_nanotime(&sec, &nsec); in memorystatus_freeze_reset_interval()
2741 clock_sec_t sec; in memorystatus_freeze_out_of_budget() local
2746 clock_get_system_nanotime(&sec, &nsec); in memorystatus_freeze_out_of_budget()
2799 clock_sec_t sec; in memorystatus_freeze_update_throttle() local
[all …]
H A Dkern_ntptime.c302 clock_sec_t sec; in ntp_adjtime() local
369 clock_gettimeofday(&sec, &microsecs); in ntp_adjtime()
371 last_time_maxerror_update = sec; in ntp_adjtime()
/xnu-11215/tools/kt-dump/
H A Dkt-dump.cpp108 : section(sec), in macho_section()
110 data.subspan(sec.offset, sec.size / sizeof(T)).data()), in macho_section()
111 sec.size / sizeof(T)) in macho_section()
368 for (auto &sec : sections) { local
369 std::string_view segname(sec.segname);
370 std::string_view sectname(sec.sectname);
375 assert(sec.size % sec_types->elem_size() == 0 &&
451 if (auto &sec = *sec_types; sec_types) { in dump() local
453 auto usize = ucount * sec.elem_size(); in dump()
461 if (auto &sec = *sec_types_var; sec_types_var) { in dump() local
[all …]
/xnu-11215/osfmk/kern/
H A Dclock.c128 time_t sec; member
140 _bt->sec++; in bintime_addx()
152 _bt->sec--; in bintime_subx()
209 _bt->sec++; in bintime_add()
211 _bt->sec += _bt2->sec; in bintime_add()
222 _bt->sec--; in bintime_sub()
224 _bt->sec -= _bt2->sec; in bintime_sub()
230 _bt->sec = *secs; in clock2bintime()
515 bt.sec = 0; in scale_delta()
871 *secs = bt.sec; in clock_get_calendar_uptime()
[all …]
H A Dsync_sema.c78 unsigned int sec, in semaphore_deadline() argument
83 nanotime_to_absolutetime(sec, nsec, &abstime); in semaphore_deadline()
909 args->sec, args->nsec, thread_syscall_return); in semaphore_timedwait_trap()
916 unsigned int sec, in semaphore_timedwait_trap_internal() argument
924 wait_time.tv_sec = sec; in semaphore_timedwait_trap_internal()
935 if (sec == 0 && nsec == 0) { in semaphore_timedwait_trap_internal()
938 deadline = semaphore_deadline(sec, nsec); in semaphore_timedwait_trap_internal()
1065 unsigned int sec, in semaphore_timedwait_signal_trap_internal() argument
1074 wait_time.tv_sec = sec; in semaphore_timedwait_signal_trap_internal()
1087 if (sec == 0 && nsec == 0) { in semaphore_timedwait_signal_trap_internal()
[all …]
H A Dsync_sema.h99 unsigned int sec,
105 unsigned int sec,
H A Dclock.h116 uint64_t sec,
/xnu-11215/osfmk/mach/
H A Ddyld_kernel_fixups.h338 struct section_64 *sec; in kernel_collection_adjust_fileset_entry_addrs() local
358 sec = (struct section_64 *)((uintptr_t)seg + sizeof(*seg)); in kernel_collection_adjust_fileset_entry_addrs()
359 for (j = 0; j < seg->nsects; j++, sec++) { in kernel_collection_adjust_fileset_entry_addrs()
360 sec->addr += adj; in kernel_collection_adjust_fileset_entry_addrs()
405 struct section_64 *sec; in kernel_collection_adjust_mh_addrs() local
447 sec = (struct section_64 *)((uintptr_t)seg + sizeof(*seg)); in kernel_collection_adjust_mh_addrs()
448 for (j = 0; j < seg->nsects; j++, sec++) { in kernel_collection_adjust_mh_addrs()
449 sec->addr += adj; in kernel_collection_adjust_mh_addrs()
H A Dmach_traps.h147 unsigned int sec,
153 unsigned int sec,
514 PAD_ARG_(unsigned int, sec);
523 PAD_ARG_(unsigned int, sec);
/xnu-11215/bsd/net/
H A Ddevtimer.c256 clock_sec_t sec; in devtimer_current_time() local
259 clock_get_system_microtime(&sec, &usec); in devtimer_current_time()
260 tv.tv_sec = sec; in devtimer_current_time()
/xnu-11215/tests/workq/
H A Dworkq_sigmask.c63 dispatch_time_t sec = dispatch_time(DISPATCH_TIME_NOW, NSEC_PER_SEC); variable
64 dispatch_after(sec, q, ^{
/xnu-11215/bsd/dev/dtrace/
H A Ddtrace.c12990 dof_sec_t *sec; in dtrace_dof_create() local
13214 return (sec); in dtrace_dof_sect()
13514 if (sec->dofs_size < sec->dofs_entsize) { in dtrace_dof_actdesc()
13524 if (sec->dofs_size / sec->dofs_entsize > dtrace_actions_max) { in dtrace_dof_actdesc()
13529 for (offs = 0; offs < sec->dofs_size; offs += sec->dofs_entsize) { in dtrace_dof_actdesc()
13646 if (sec == NULL) in dtrace_dof_ecbdesc()
13821 if (sec->dofs_align & (sec->dofs_align - 1)) { in dtrace_dof_slurp()
13826 if (sec->dofs_offset & (sec->dofs_align - 1)) { in dtrace_dof_slurp()
13831 if (sec->dofs_offset > len || sec->dofs_size > len || in dtrace_dof_slurp()
13832 sec->dofs_offset + sec->dofs_size > len) { in dtrace_dof_slurp()
[all …]
/xnu-11215/tools/lldbmacros/
H A Dkext.py631 sec = next(sec_contains(seg.sections, self.address), None)
632 if sec:
633 return kmemory.MemoryRange(sec.addr, sec.addr + sec.size)
H A Dmacho.py225 self.make_seg(seg, sec)
227 for _, seg, sec in h.commands
/xnu-11215/tools/tests/MPMMTest/
H A DREADME9 throughput in messages/sec: 82978.7
/xnu-11215/osfmk/device/
H A Diokit_rpc.c627 clock_sec_t sec; in IOGetTime() local
629 clock_get_system_nanotime(&sec, &nsec); in IOGetTime()
630 clock_time->tv_sec = (typeof(clock_time->tv_sec))sec; in IOGetTime()
/xnu-11215/osfmk/i386/
H A Drtclock.c404 clock_gettimeofday_set_commpage(uint64_t abstime, uint64_t sec, uint64_t frac, uint64_t scale, uint… in clock_gettimeofday_set_commpage() argument
406 commpage_set_timestamp(abstime, sec, frac, scale, tick_per_sec); in clock_gettimeofday_set_commpage()
/xnu-11215/osfmk/arm/
H A Drtclock.c305 uint64_t sec, in clock_gettimeofday_set_commpage() argument
310 commpage_set_timestamp(abstime, sec, frac, scale, tick_per_sec); in clock_gettimeofday_set_commpage()
/xnu-11215/osfmk/i386/commpage/
H A Dcommpage.h137 extern void commpage_set_timestamp(uint64_t abstime, uint64_t sec, uint64_t frac, uint64_t scal…
H A Dcommpage.c775 uint64_t sec, in commpage_set_timestamp() argument
786 p32->TimeStamp_sec = sec; in commpage_set_timestamp()
787 p64->TimeStamp_sec = sec; in commpage_set_timestamp()
/xnu-11215/osfmk/x86_64/
H A Dpmap.c1292 kernel_section_t * sec; in pmap_lowmem_finalize() local
1312 for (sec = firstsect(seg); sec != NULL; sec = nextsect(seg, sec)) { in pmap_lowmem_finalize()
1313 if (sec->addr & PAGE_MASK) { in pmap_lowmem_finalize()
1316 if (!strcmp(sec->sectname, "__text")) { in pmap_lowmem_finalize()
1317 pmap_mark_range(kernel_pmap, sec->addr, round_page(sec->size), FALSE, TRUE); in pmap_lowmem_finalize()
1319 pmap_mark_range(kernel_pmap, sec->addr, round_page(sec->size), TRUE, FALSE); in pmap_lowmem_finalize()
/xnu-11215/osfmk/vm/
H A Dvm_compressor.c3867 clock_sec_t sec; in vm_compressor_compact_and_swap() local
3886 clock_get_system_nanotime(&sec, &nsec); in vm_compressor_compact_and_swap()
3888 if (sec > hibernate_flushing_deadline) { in vm_compressor_compact_and_swap()
4314 clock_sec_t sec; in c_current_seg_filled() local
4400 clock_get_system_nanotime(&sec, &nsec); in c_current_seg_filled()
4401 c_seg->c_creation_ts = (uint32_t)sec; in c_current_seg_filled()
4409 TIME_SUB(sec2, sec, nsec2, nsec, NSEC_PER_SEC); in c_current_seg_filled()
4485 clock_sec_t sec; in c_seg_swapin_requeue() local
4488 clock_get_system_nanotime(&sec, &nsec); in c_seg_swapin_requeue()
4529 c_seg->c_swappedin_ts = (uint32_t)sec; in c_seg_swapin_requeue()
/xnu-11215/libkern/c++/
H A DOSKext.cpp6887 for (sec = firstsect(seg); sec != NULL; sec = nextsect(seg, sec)) { in lookupSection()
6888 if (0 == strncmp(sec->sectname, secname, sizeof(sec->sectname))) { in lookupSection()
6889 found_section = sec; in lookupSection()
6962 for (sec = firstsect(seg); sec != NULL; sec = nextsect(seg, sec)) { in slidePrelinkedExecutable()
6963 sec->addr = ml_static_slide(sec->addr); in slidePrelinkedExecutable()
6967 sec->sectname, in slidePrelinkedExecutable()
6969 (unsigned long)sec->addr); in slidePrelinkedExecutable()
7740 sec = firstsect(dataSeg);
7741 while (sec != NULL) {
7742 lastSec = sec;
[all …]
/xnu-11215/bsd/sys/
H A Dpthread_shims.h95 …int32_t cvugen, user_addr_t mutex, uint64_t mugen, uint32_t flags, int64_t sec, uint32_t nsec, uin…

12