Home
last modified time | relevance | path

Searched refs:CLOCK_MONOTONIC (Results 1 – 104 of 104) sorted by relevance

/linux-4.4.14/include/uapi/linux/
Dtime.h48 #define CLOCK_MONOTONIC 1 macro
61 #define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
62 #define CLOCKS_MONO CLOCK_MONOTONIC
/linux-4.4.14/arch/um/os-Linux/
Dtime.c52 CLOCK_MONOTONIC, in os_timer_create()
162 clock_gettime(CLOCK_MONOTONIC,&ts); in os_nsecs()
186 if (clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, NULL)) { in os_idle_sleep()
/linux-4.4.14/tools/testing/selftests/timers/
Dadjtick.c86 clock_gettime(CLOCK_MONOTONIC, mon); in get_monotonic_and_raw()
93 clock_gettime(CLOCK_MONOTONIC, &start); in get_monotonic_and_raw()
95 clock_gettime(CLOCK_MONOTONIC, &end); in get_monotonic_and_raw()
Dmqueue-lat.c86 clock_gettime(CLOCK_MONOTONIC, &start); in mqueue_lat_test()
101 clock_gettime(CLOCK_MONOTONIC, &end); in mqueue_lat_test()
Dnanosleep.c46 #define CLOCK_MONOTONIC 1 macro
66 case CLOCK_MONOTONIC: in clockstring()
Dalarmtimer-suspend.c45 #define CLOCK_MONOTONIC 1 macro
73 case CLOCK_MONOTONIC: in clockstring()
Dnsleep-lat.c46 #define CLOCK_MONOTONIC 1 macro
66 case CLOCK_MONOTONIC: in clockstring()
Dinconsistency-check.c48 #define CLOCK_MONOTONIC 1 macro
66 case CLOCK_MONOTONIC: in clockstring()
Dthreadtest.c104 clock_gettime(CLOCK_MONOTONIC, &global_list[listcount++]); in shared_thread()
123 clock_gettime(CLOCK_MONOTONIC, &my_list[count]); in independent_thread()
Draw_skew.c90 clock_gettime(CLOCK_MONOTONIC, &start); in get_monotonic_and_raw()
92 clock_gettime(CLOCK_MONOTONIC, &end); in get_monotonic_and_raw()
Dset-timer-lat.c44 #define CLOCK_MONOTONIC 1 macro
72 case CLOCK_MONOTONIC: in clockstring()
Dleap-a-day.c367 clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, NULL); in main()
/linux-4.4.14/arch/arm64/kernel/vdso/
Dgettimeofday.S92 ccmp w0, #CLOCK_MONOTONIC, #0x4, ne
108 cmp w0, #CLOCK_MONOTONIC
178 ccmp w0, #CLOCK_MONOTONIC, #0x4, ne
/linux-4.4.14/tools/testing/selftests/vm/
Dtranshuge-stress.c108 clock_gettime(CLOCK_MONOTONIC, &a); in main()
136 clock_gettime(CLOCK_MONOTONIC, &b); in main()
/linux-4.4.14/tools/build/feature/
Dtest-timerfd.c10 int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK); in main()
/linux-4.4.14/drivers/power/reset/
Dltc2952-poweroff.c175 hrtimer_init(&data->timer_trigger, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in ltc2952_poweroff_default()
178 hrtimer_init(&data->timer_wde, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in ltc2952_poweroff_default()
/linux-4.4.14/samples/bpf/
Dtracex4_user.c27 clock_gettime(CLOCK_MONOTONIC, &ts); in time_get_ns()
Dtrace_output_user.c122 clock_gettime(CLOCK_MONOTONIC, &ts); in time_get_ns()
/linux-4.4.14/tools/perf/
Dperf.h28 clock_gettime(CLOCK_MONOTONIC, &ts); in rdclock()
Dbuiltin-record.c872 CLOCKID_MAP("monotonic", CLOCK_MONOTONIC),
881 CLOCKID_MAP("mono", CLOCK_MONOTONIC),
Dbuiltin-stat.c241 clock_gettime(CLOCK_MONOTONIC, &ts); in process_interval()
351 clock_gettime(CLOCK_MONOTONIC, &ref_time); in __run_perf_stat()
Dbuiltin-kvm.c815 kvm->timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK); in perf_kvm__timerfd_create()
Dbuiltin-sched.c182 clock_gettime(CLOCK_MONOTONIC, &ts); in get_nsecs()
/linux-4.4.14/kernel/time/
Dtick-broadcast-hrtimer.c107 hrtimer_init(&bctimer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); in tick_setup_hrtimer_broadcast()
Dhrtimer.c75 .clockid = CLOCK_MONOTONIC,
98 [CLOCK_MONOTONIC] = HRTIMER_BASE_MONOTONIC,
1136 clock_id = CLOCK_MONOTONIC; in __hrtimer_init()
1597 return hrtimer_nanosleep(&tu, rmtp, HRTIMER_MODE_REL, CLOCK_MONOTONIC); in SYSCALL_DEFINE2()
1799 CLOCK_MONOTONIC); in schedule_hrtimeout_range()
Dsched_clock.c249 hrtimer_init(&sched_clock_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in sched_clock_postinit()
Dtick-sched.c976 hrtimer_init(&ts->sched_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); in tick_nohz_switch_to_nohz()
1102 hrtimer_init(&ts->sched_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); in tick_setup_sched_timer()
Dposix-timers.c343 posix_timers_register_clock(CLOCK_MONOTONIC, &clock_monotonic); in init_posix_timers()
/linux-4.4.14/arch/powerpc/kernel/vdso64/
Dgettimeofday.S65 cmpwi cr1,r3,CLOCK_MONOTONIC
143 cmpwi cr1,r3,CLOCK_MONOTONIC
/linux-4.4.14/drivers/oprofile/
Dtimer_int.c40 hrtimer_init(hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in __oprofile_hrtimer_start()
/linux-4.4.14/arch/powerpc/kernel/vdso32/
Dgettimeofday.S76 cmpli cr1,r3,CLOCK_MONOTONIC
158 cmpwi cr1,r3,CLOCK_MONOTONIC
/linux-4.4.14/arch/arm64/kernel/
Dasm-offsets.c77 DEFINE(CLOCK_MONOTONIC, CLOCK_MONOTONIC); in main()
/linux-4.4.14/sound/core/
Dhrtimer.c68 hrtimer_init(&stime->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in snd_hrtimer_open()
/linux-4.4.14/arch/powerpc/oprofile/cell/
Dspu_profiler.c208 hrtimer_init(&timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in start_spu_profiling_cycles()
/linux-4.4.14/drivers/staging/android/
Dtimed_gpio.c106 hrtimer_init(&gpio_dat->timer, CLOCK_MONOTONIC, in timed_gpio_probe()
/linux-4.4.14/sound/drivers/pcsp/
Dpcsp.c102 hrtimer_init(&pcsp_chip.timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in snd_card_pcsp_probe()
/linux-4.4.14/arch/mips/vdso/
Dgettimeofday.c222 case CLOCK_MONOTONIC: in __vdso_clock_gettime()
/linux-4.4.14/arch/tile/kernel/vdso/
Dvgettimeofday.c183 case CLOCK_MONOTONIC: in __vdso_clock_gettime()
/linux-4.4.14/net/mac802154/
Dmain.c163 hrtimer_init(&local->ifs_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in ieee802154_register_hw()
/linux-4.4.14/arch/arm/vdso/
Dvgettimeofday.c216 case CLOCK_MONOTONIC: in __vdso_clock_gettime()
/linux-4.4.14/net/can/
Dbcm.c926 hrtimer_init(&op->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in bcm_tx_setup()
934 hrtimer_init(&op->thrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in bcm_tx_setup()
1096 hrtimer_init(&op->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in bcm_rx_setup()
1103 hrtimer_init(&op->thrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in bcm_rx_setup()
/linux-4.4.14/arch/x86/entry/vdso/
Dvclock_gettime.c287 case CLOCK_MONOTONIC: in __vdso_clock_gettime()
/linux-4.4.14/drivers/rtc/
Dclass.c221 hrtimer_init(&rtc->pie_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in rtc_device_register()
/linux-4.4.14/arch/ia64/kernel/
Dfsys.S136 #define CLOCK_MONOTONIC 1 macro
319 cmp4.ltu p6, p0 = CLOCK_MONOTONIC, r32
/linux-4.4.14/sound/sh/
Dsh_dac_audio.c366 hrtimer_init(&chip->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in snd_sh_dac_create()
/linux-4.4.14/virt/kvm/arm/
Darch_timer.c343 hrtimer_init(&timer->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); in kvm_timer_vcpu_init()
/linux-4.4.14/drivers/input/joystick/
Dwalkera0701.c239 hrtimer_init(&w->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in walkera0701_attach()
/linux-4.4.14/sound/soc/fsl/
Dimx-pcm-fiq.c188 hrtimer_init(&iprtd->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in snd_imx_open()
/linux-4.4.14/tools/testing/selftests/futex/functional/
Dfutex_requeue_pi.c296 ret = clock_gettime(CLOCK_MONOTONIC, &ts); in unit_test()
/linux-4.4.14/drivers/block/
Dnull_blk.c186 hrtimer_init(&cmd->timer, CLOCK_MONOTONIC, in __alloc_cmd()
360 hrtimer_init(&cmd->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in null_queue_rq()
/linux-4.4.14/drivers/mailbox/
Dmailbox.c457 hrtimer_init(&mbox->poll_hrt, CLOCK_MONOTONIC, in mbox_controller_register()
/linux-4.4.14/arch/s390/kernel/
Dasm-offsets.c86 DEFINE(__CLOCK_MONOTONIC, CLOCK_MONOTONIC); in main()
/linux-4.4.14/drivers/media/pci/cx88/
Dcx88-input.c197 hrtimer_init(&ir->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in __cx88_ir_start()
/linux-4.4.14/kernel/
Dwatchdog.c498 hrtimer_init(hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in watchdog_enable()
Dfutex.c2296 CLOCK_REALTIME : CLOCK_MONOTONIC, in futex_wait()
2708 CLOCK_REALTIME : CLOCK_MONOTONIC, in futex_wait_requeue_pi()
Dcompat.c256 HRTIMER_MODE_REL, CLOCK_MONOTONIC); in COMPAT_SYSCALL_DEFINE2()
Dfork.c1143 hrtimer_init(&sig->real_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in copy_signal()
/linux-4.4.14/fs/
Dtimerfd.c386 (clockid != CLOCK_MONOTONIC && in SYSCALL_DEFINE2()
/linux-4.4.14/drivers/net/ethernet/
Dec_bhf.c428 hrtimer_init(&priv->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in ec_bhf_open()
/linux-4.4.14/arch/x86/kernel/cpu/
Dperf_event_intel_rapl.c240 hrtimer_init(hr, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in rapl_hrtimer_init()
Dperf_event_intel_uncore.c301 hrtimer_init(&box->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in uncore_pmu_init_hrtimer()
/linux-4.4.14/include/linux/
Dwait.h467 hrtimer_init_on_stack(&__t.timer, CLOCK_MONOTONIC, \
/linux-4.4.14/drivers/media/usb/uvc/
Duvc_driver.c34 unsigned int uvc_clock_param = CLOCK_MONOTONIC;
2058 if (uvc_clock_param == CLOCK_MONOTONIC) in uvc_clock_param_get()
2070 uvc_clock_param = CLOCK_MONOTONIC; in uvc_clock_param_set()
Duvc_video.c374 if (uvc_clock_param == CLOCK_MONOTONIC) in uvc_video_get_ts()
/linux-4.4.14/drivers/usb/musb/
Dmusb_cppi41.c710 hrtimer_init(&controller->early_tx, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in cppi41_dma_controller_create()
/linux-4.4.14/drivers/usb/chipidea/
Dotg_fsm.c410 hrtimer_init(&ci->otg_fsm_hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); in ci_otg_init_timers()
/linux-4.4.14/drivers/net/wireless/rt2x00/
Drt2x00usb.c810 hrtimer_init(&rt2x00dev->txstatus_timer, CLOCK_MONOTONIC, in rt2x00usb_probe()
/linux-4.4.14/arch/powerpc/kernel/
Dasm-offsets.c424 DEFINE(CLOCK_MONOTONIC, CLOCK_MONOTONIC); in main()
/linux-4.4.14/arch/x86/kvm/
Di8254.c724 hrtimer_init(&pit_state->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); in kvm_create_pit()
Dlapic.c1801 hrtimer_init(&apic->lapic_timer.timer, CLOCK_MONOTONIC, in kvm_create_lapic()
Dvmx.c6792 hrtimer_init(&vmx->nested.preemption_timer, CLOCK_MONOTONIC, in handle_vmon()
/linux-4.4.14/Documentation/sound/alsa/
Dtimestamping.txt32 CLOCK_MONOTONIC (NTP corrections but never going backwards),
/linux-4.4.14/drivers/net/ethernet/tile/
Dtilegx.c1563 hrtimer_init(&tx_wake->timer, CLOCK_MONOTONIC, in tile_net_open()
2252 hrtimer_init(&info->egress_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in tile_net_init_module_percpu()
/linux-4.4.14/drivers/ata/
Dpata_octeon_cf.c985 hrtimer_init(&cf_port->delayed_finish, CLOCK_MONOTONIC, in octeon_cf_probe()
/linux-4.4.14/drivers/net/ethernet/hisilicon/
Dhip04_eth.c846 hrtimer_init(&priv->tx_coalesce_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in hip04_mac_probe()
/linux-4.4.14/fs/ubifs/
Dio.c1060 hrtimer_init(&wbuf->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in ubifs_wbuf_init()
/linux-4.4.14/drivers/usb/host/
Dehci-hcd.c471 hrtimer_init(&ehci->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); in ehci_init()
Dfotg210-hcd.c4952 hrtimer_init(&fotg210->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); in hcd_fotg210_init()
/linux-4.4.14/tools/perf/Documentation/
Dperf-record.txt297 records. See clock_gettime(). In particular CLOCK_MONOTONIC and
/linux-4.4.14/Documentation/ioctl/
Dbotching-up-ioctls.txt129 * Use CLOCK_MONOTONIC as your reference time, always. It's what alsa, drm and
/linux-4.4.14/sound/drivers/
Ddummy.c468 hrtimer_init(&dpcm->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in dummy_hrtimer_create()
/linux-4.4.14/arch/mips/kvm/
Dmips.c1194 hrtimer_init(&vcpu->arch.comparecount_timer, CLOCK_MONOTONIC, in kvm_arch_vcpu_init()
/linux-4.4.14/drivers/s390/crypto/
Dap_bus.c1802 hrtimer_init(&ap_poll_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); in ap_module_init()
/linux-4.4.14/kernel/sched/
Ddeadline.c698 hrtimer_init(timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in init_dl_task_timer()
Drt.c49 CLOCK_MONOTONIC, HRTIMER_MODE_REL); in init_rt_bandwidth()
Dfair.c3964 hrtimer_init(&cfs_b->period_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED); in init_cfs_bandwidth()
3966 hrtimer_init(&cfs_b->slack_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in init_cfs_bandwidth()
Dcore.c439 hrtimer_init(&rq->hrtick_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in init_rq_hrtick()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dinit.c504 hrtimer_init(&ppd->cca_timer[i].hrtimer, CLOCK_MONOTONIC, in hfi1_init_pportdata()
/linux-4.4.14/drivers/input/
Devdev.c201 case CLOCK_MONOTONIC: in evdev_set_clk_type()
/linux-4.4.14/drivers/usb/gadget/function/
Df_ncm.c1449 hrtimer_init(&ncm->task_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in ncm_bind()
/linux-4.4.14/drivers/net/ieee802154/
Dat86rf230.c806 hrtimer_init(&state->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in at86rf230_setup_spi_messages()
/linux-4.4.14/drivers/bus/
Darm-ccn.c1261 hrtimer_init(&ccn->dt.hrtimer, CLOCK_MONOTONIC, in arm_ccn_pmu_init()
/linux-4.4.14/drivers/net/usb/
Dcdc_ncm.c734 hrtimer_init(&ctx->tx_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in cdc_ncm_bind_common()
/linux-4.4.14/drivers/tty/serial/
Dsirfsoc_uart.c1408 hrtimer_init(&sirfport->hrt, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in sirfsoc_uart_probe()
/linux-4.4.14/net/sched/
Dsch_api.c595 hrtimer_init(&wd->timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED); in qdisc_watchdog_init()
Dsch_cbq.c1389 hrtimer_init(&q->delay_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED); in cbq_init()
/linux-4.4.14/drivers/firewire/
Dcore-cdev.c1218 case CLOCK_MONOTONIC: ktime_get_ts(&ts); break; in ioctl_get_cycle_timer2()
/linux-4.4.14/tools/perf/util/
Devsel.c1315 evsel->attr.clockid = CLOCK_MONOTONIC; /* should always work */ in __perf_evsel__open()
/linux-4.4.14/kernel/events/
Dcore.c803 hrtimer_init(timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED); in __perf_mux_hrtimer_init()
7220 hrtimer_init(&hwc->hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in perf_swevent_init_hrtimer()
8200 case CLOCK_MONOTONIC: in perf_event_set_clock()
/linux-4.4.14/arch/s390/kvm/
Dkvm-s390.c1422 hrtimer_init(&vcpu->arch.ckc_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL); in kvm_arch_vcpu_setup()
/linux-4.4.14/net/core/
Dpktgen.c2244 hrtimer_init_on_stack(&t.timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS); in spin()
Ddev.c4738 hrtimer_init(&napi->timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_PINNED); in netif_napi_add()
/linux-4.4.14/drivers/scsi/
Dscsi_debug.c4032 hrtimer_init(&sd_hp->hrt, CLOCK_MONOTONIC, in schedule_resp()
/linux-4.4.14/drivers/net/ethernet/marvell/
Dmvpp2.c6230 hrtimer_init(&port_pcpu->tx_done_timer, CLOCK_MONOTONIC, in mvpp2_port_probe()