arch/arm/mach-imx/mmdc.c
512
hrtimer_setup(&pmu_mmdc->hrtimer, mmdc_pmu_timer_handler, CLOCK_MONOTONIC,
arch/arm/mm/cache-l2x0-pmu.c
542
hrtimer_setup(&l2x0_pmu_hrtimer, l2x0_pmu_poll, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
arch/arm64/kvm/arch_timer.c
1068
hrtimer_setup(&ctxt->hrtimer, kvm_hrtimer_expire, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_HARD);
arch/arm64/kvm/arch_timer.c
1096
hrtimer_setup(&timer->bg_timer, kvm_bg_timer_expire, CLOCK_MONOTONIC,
arch/loongarch/kvm/vcpu.c
1539
hrtimer_setup(&vcpu->arch.swtimer, kvm_swtimer_wakeup, CLOCK_MONOTONIC,
arch/mips/kvm/mips.c
291
hrtimer_setup(&vcpu->arch.comparecount_timer, kvm_mips_comparecount_wakeup, CLOCK_MONOTONIC,
arch/powerpc/kernel/watchdog.c
503
hrtimer_setup(hrtimer, watchdog_timer_fn, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
arch/powerpc/perf/vpa-dtl.c
412
hrtimer_setup(&hwc->hrtimer, vpa_dtl_hrtimer_handle, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
arch/riscv/kvm/vcpu_timer.c
258
hrtimer_setup(&t->hrt, kvm_riscv_vcpu_vstimer_expired, CLOCK_MONOTONIC,
arch/riscv/kvm/vcpu_timer.c
263
hrtimer_setup(&t->hrt, kvm_riscv_vcpu_hrtimer_expired, CLOCK_MONOTONIC,
arch/s390/kvm/interrupt.c
3156
hrtimer_setup(&gi->timer, gisa_vcpu_kicker, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
arch/s390/kvm/kvm-s390.c
3672
hrtimer_setup(&vcpu->arch.ckc_timer, kvm_s390_idle_wakeup, CLOCK_MONOTONIC,
arch/sparc/vdso/vclock_gettime.c
283
case CLOCK_MONOTONIC:
arch/sparc/vdso/vclock_gettime.c
311
case CLOCK_MONOTONIC:
arch/um/os-Linux/time.c
107
clock_gettime(CLOCK_MONOTONIC,&ts);
arch/um/os-Linux/time.c
55
if (timer_create(CLOCK_MONOTONIC, &sev, t) == -1)
arch/x86/events/amd/uncore.c
132
hrtimer_setup(&ctx->hrtimer, amd_uncore_hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD);
arch/x86/events/intel/uncore.c
343
hrtimer_setup(&box->hrtimer, uncore_pmu_hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD);
arch/x86/events/rapl.c
278
hrtimer_setup(hr, rapl_hrtimer_handle, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
arch/x86/kvm/hyperv.c
959
hrtimer_setup(&stimer->timer, stimer_timer_callback, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
arch/x86/kvm/i8254.c
762
hrtimer_setup(&pit_state->timer, pit_timer_fn, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
arch/x86/kvm/lapic.c
3080
hrtimer_setup(&apic->lapic_timer.timer, apic_timer_fn, CLOCK_MONOTONIC,
arch/x86/kvm/vmx/nested.c
5415
hrtimer_setup(&vmx->nested.preemption_timer, vmx_preemption_timer_fn, CLOCK_MONOTONIC,
arch/x86/kvm/xen.c
2303
hrtimer_setup(&vcpu->arch.xen.timer, xen_timer_callback, CLOCK_MONOTONIC,
block/bfq-iosched.c
7272
hrtimer_setup(&bfqd->idle_slice_timer, bfq_idle_slice_timer, CLOCK_MONOTONIC,
block/blk-iocost.c
3004
hrtimer_setup(&iocg->waitq_timer, iocg_waitq_timer_fn, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
drivers/ata/pata_octeon_cf.c
938
hrtimer_setup(&cf_port->delayed_finish, octeon_cf_delayed_finish, CLOCK_MONOTONIC,
drivers/base/power/runtime.c
1859
hrtimer_setup(&dev->power.suspend_timer, pm_suspend_timer_fn, CLOCK_MONOTONIC,
drivers/block/null_blk/main.c
1488
hrtimer_setup(&nullb->bw_timer, nullb_bwtimer_fn, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/block/null_blk/main.c
1665
hrtimer_setup(&cmd->timer, null_cmd_timer_expired, CLOCK_MONOTONIC,
drivers/char/hw_random/timeriomem-rng.c
155
hrtimer_setup(&priv->timer, timeriomem_rng_trigger, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
drivers/devfreq/event/rockchip-dfi.c
684
hrtimer_setup(&dfi->timer, rockchip_dfi_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/firewire/core-cdev.c
1269
case CLOCK_MONOTONIC: ktime_get_ts64(&ts); break;
drivers/gpu/drm/amd/amdgpu/amdgpu_vkms.c
192
hrtimer_setup(&amdgpu_crtc->vblank_timer, &amdgpu_vkms_vblank_simulate, CLOCK_MONOTONIC,
drivers/gpu/drm/drm_vblank.c
2226
CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/gpu/drm/i915/gt/uc/intel_huc.c
234
hrtimer_setup(&huc->delayed_load.timer, huc_delayed_load_timer_callback, CLOCK_MONOTONIC,
drivers/gpu/drm/i915/gvt/display.c
588
hrtimer_setup(&vblank_timer->timer, vblank_timer_fn, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
drivers/gpu/drm/i915/gvt/sched_policy.c
290
hrtimer_setup(&data->timer, tbs_timer_fn, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
drivers/gpu/drm/i915/i915_perf.c
3366
hrtimer_setup(&stream->poll_check_timer, oa_poll_check_timer_cb, CLOCK_MONOTONIC,
drivers/gpu/drm/i915/i915_pmu.c
1160
hrtimer_setup(&pmu->timer, i915_sample, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/gpu/drm/i915/i915_request.c
298
hrtimer_setup(&wdg->timer, __rq_watchdog_expired, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/gpu/drm/i915/intel_uncore.c
2108
hrtimer_setup(&d->timer, intel_uncore_fw_release_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/gpu/drm/msm/msm_atomic.c
128
CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
drivers/gpu/drm/msm/msm_fence.c
68
hrtimer_setup(&fctx->deadline_timer, deadline_timer, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
drivers/gpu/drm/msm/msm_gpu_devfreq.c
200
CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/gpu/drm/msm/msm_gpu_devfreq.c
202
CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/gpu/drm/scheduler/tests/mock_scheduler.c
129
CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
drivers/gpu/drm/vmwgfx/vmwgfx_vkms.c
291
hrtimer_setup(&du->vkms.timer, &vmw_vkms_vblank_simulate, CLOCK_MONOTONIC,
drivers/gpu/drm/xe/xe_oa.c
1812
hrtimer_setup(&stream->poll_check_timer, xe_oa_poll_check_timer_cb, CLOCK_MONOTONIC,
drivers/gpu/drm/xe/xe_query.c
77
case CLOCK_MONOTONIC:
drivers/hid/bpf/progs/hid_bpf_async.h
146
err = bpf_timer_init(&elem->t, &hid_bpf_async_ctx_map, CLOCK_MONOTONIC);
drivers/hte/hte-tegra194.c
583
ci->type = CLOCK_MONOTONIC;
drivers/hwtracing/stm/heartbeat.c
85
CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
drivers/i2c/busses/i2c-imx.c
1735
hrtimer_setup(&i2c_imx->slave_timer, i2c_imx_slave_timeout, CLOCK_MONOTONIC,
drivers/iio/adc/ti-tsc2046.c
810
hrtimer_setup(&priv->trig_timer, tsc2046_adc_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_SOFT);
drivers/iio/industrialio-core.c
1457
[CLOCK_MONOTONIC] = "monotonic",
drivers/iio/industrialio-core.c
1479
case CLOCK_MONOTONIC:
drivers/iio/industrialio-core.c
1507
case CLOCK_MONOTONIC:
drivers/iio/industrialio-core.c
327
case CLOCK_MONOTONIC:
drivers/iio/trigger/iio-trig-hrtimer.c
148
hrtimer_setup(&trig_info->timer, iio_hrtimer_trig_handler, CLOCK_MONOTONIC,
drivers/infiniband/hw/hfi1/init.c
641
hrtimer_setup(&ppd->cca_timer[i].hrtimer, cca_timer_fn, CLOCK_MONOTONIC,
drivers/infiniband/sw/rdmavt/qp.c
1109
hrtimer_setup(&qp->s_rnr_timer, rvt_rc_rnr_retry, CLOCK_MONOTONIC,
drivers/input/evdev.c
184
case CLOCK_MONOTONIC:
drivers/input/joystick/walkera0701.c
235
hrtimer_setup(&w->timer, timer_handler, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/leds/trigger/ledtrig-pattern.c
486
hrtimer_setup(&data->hrtimer, pattern_trig_hrtimer_function, CLOCK_MONOTONIC,
drivers/mailbox/mailbox.c
526
hrtimer_setup(&mbox->poll_hrt, txdone_hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/md/dm-vdo/indexer/delta-index.c
1556
start_time = current_time_ns(CLOCK_MONOTONIC);
drivers/md/dm-vdo/indexer/delta-index.c
1573
end_time = current_time_ns(CLOCK_MONOTONIC);
drivers/md/dm-vdo/time-utils.h
20
return clock == CLOCK_MONOTONIC ? ktime_get_ns() : ktime_get_real_ns();
drivers/media/cec/core/cec-pin.c
1376
hrtimer_setup(&pin->timer, cec_pin_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/media/pci/cx88/cx88-input.c
193
hrtimer_setup(&ir->timer, cx88_ir_work, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/media/platform/chips-media/wave5/wave5-vpu.c
343
hrtimer_setup(&dev->hrtimer, &wave5_vpu_timer_callback, CLOCK_MONOTONIC,
drivers/media/rc/pwm-ir-tx.c
172
hrtimer_setup(&pwm_ir->timer, pwm_ir_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/media/usb/uvc/uvc_driver.c
2456
if (uvc_clock_param == CLOCK_MONOTONIC)
drivers/media/usb/uvc/uvc_driver.c
2468
uvc_clock_param = CLOCK_MONOTONIC;
drivers/media/usb/uvc/uvc_driver.c
33
unsigned int uvc_clock_param = CLOCK_MONOTONIC;
drivers/media/usb/uvc/uvc_video.c
499
if (uvc_clock_param == CLOCK_MONOTONIC)
drivers/misc/lkdtm/bugs.c
120
CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD);
drivers/misc/lkdtm/bugs.c
150
CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD);
drivers/misc/ntsync.c
831
clockid_t clock = CLOCK_MONOTONIC;
drivers/misc/vcpu_stall_detector.c
114
hrtimer_setup(vcpu_hrtimer, vcpu_stall_detect_timer_fn, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/mmc/host/dw_mmc.c
1878
hrtimer_setup(&host->fault_timer, dw_mci_fault_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/net/can/m_can/m_can.c
2545
hrtimer_setup(&cdev->hrtimer, m_can_polling_timer, CLOCK_MONOTONIC,
drivers/net/can/m_can/m_can.c
2548
hrtimer_setup(&cdev->hrtimer, m_can_coalescing_timer, CLOCK_MONOTONIC,
drivers/net/can/spi/mcp251xfd/mcp251xfd-ring.c
544
hrtimer_setup(&priv->rx_irq_timer, mcp251xfd_rx_irq_timer, CLOCK_MONOTONIC,
drivers/net/can/spi/mcp251xfd/mcp251xfd-ring.c
547
hrtimer_setup(&priv->tx_irq_timer, mcp251xfd_tx_irq_timer, CLOCK_MONOTONIC,
drivers/net/ethernet/cortina/gemini.c
1857
hrtimer_setup(&port->rx_coalesce_timer, &gmac_coalesce_delay_expired, CLOCK_MONOTONIC,
drivers/net/ethernet/ec_bhf.c
419
hrtimer_setup(&priv->hrtimer, ec_bhf_timer_fun, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/net/ethernet/hisilicon/hip04_eth.c
945
hrtimer_setup(&priv->tx_coalesce_timer, tx_done, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/net/ethernet/intel/igc/igc_main.c
7295
hrtimer_setup(&adapter->hrtimer, &igc_qbv_scheduling_timer, CLOCK_MONOTONIC,
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c
7011
hrtimer_setup(&port_pcpu->tx_done_timer, mvpp2_hr_timer_cb, CLOCK_MONOTONIC,
drivers/net/ethernet/marvell/octeontx2/af/ptp.c
548
hrtimer_setup(&ptp->hrtimer, ptp_reset_thresh, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/net/ethernet/microchip/sparx5/sparx5_packet.c
378
hrtimer_setup(&port->inj_timer, sparx5_injection_timeout, CLOCK_MONOTONIC,
drivers/net/ethernet/qualcomm/rmnet/rmnet_map_data.c
689
hrtimer_setup(&port->hrtimer, rmnet_map_flush_tx_packet_queue, CLOCK_MONOTONIC,
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
3382
hrtimer_setup(&tx_q->txtimer, stmmac_tx_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/net/ethernet/stmicro/stmmac/stmmac_main.c
7155
hrtimer_setup(&tx_q->txtimer, stmmac_tx_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/net/ethernet/ti/am65-cpsw-nuss.c
2226
CLOCK_MONOTONIC, HRTIMER_MODE_REL_PINNED);
drivers/net/ethernet/ti/am65-cpsw-nuss.c
2479
hrtimer_setup(&flow->rx_hrtimer, &am65_cpsw_nuss_rx_timer_callback, CLOCK_MONOTONIC,
drivers/net/ethernet/ti/icssg/icssg_common.c
367
hrtimer_setup(&tx_chn->tx_hrtimer, &emac_tx_timer_callback, CLOCK_MONOTONIC,
drivers/net/ethernet/ti/icssg/icssg_prueth.c
1564
hrtimer_setup(&emac->rx_hrtimer, &emac_rx_timer_callback, CLOCK_MONOTONIC,
drivers/net/ethernet/ti/icssm/icssm_prueth.c
1598
CLOCK_MONOTONIC, HRTIMER_MODE_REL_PINNED);
drivers/net/ieee802154/at86rf230.c
779
hrtimer_setup(&state->timer, at86rf230_async_state_timer, CLOCK_MONOTONIC,
drivers/net/netdevsim/netdev.c
532
hrtimer_setup(&rq->napi_timer, nsim_napi_schedule, CLOCK_MONOTONIC,
drivers/net/usb/cdc_ncm.c
836
hrtimer_setup(&ctx->tx_timer, &cdc_ncm_tx_timer_cb, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c
267
hrtimer_setup(&dev->pre_tbtt_timer, mt76x02u_pre_tbtt_interrupt, CLOCK_MONOTONIC,
drivers/net/wireless/ralink/rt2x00/rt2x00dev.c
1400
hrtimer_setup(&rt2x00dev->txstatus_timer, hrtimer_dummy_timeout, CLOCK_MONOTONIC,
drivers/net/wireless/virtual/mac80211_hwsim.c
5523
CLOCK_MONOTONIC, HRTIMER_MODE_ABS_SOFT);
drivers/net/wireless/virtual/mac80211_hwsim.c
5805
CLOCK_MONOTONIC, HRTIMER_MODE_ABS_SOFT);
drivers/net/wwan/iosm/iosm_ipc_imem.c
1383
hrtimer_setup(&ipc_imem->startup_timer, ipc_imem_startup_timer_cb, CLOCK_MONOTONIC,
drivers/net/wwan/iosm/iosm_ipc_imem.c
1386
hrtimer_setup(&ipc_imem->tdupdate_timer, ipc_imem_td_update_timer_cb, CLOCK_MONOTONIC,
drivers/net/wwan/iosm/iosm_ipc_imem.c
1389
hrtimer_setup(&ipc_imem->fast_update_timer, ipc_imem_fast_update_timer_cb, CLOCK_MONOTONIC,
drivers/net/wwan/iosm/iosm_ipc_imem.c
1392
hrtimer_setup(&ipc_imem->td_alloc_timer, ipc_imem_td_alloc_timer_cb, CLOCK_MONOTONIC,
drivers/net/wwan/iosm/iosm_ipc_imem.c
1395
hrtimer_setup(&ipc_imem->adb_timer, ipc_imem_adb_timer_cb, CLOCK_MONOTONIC,
drivers/ntb/test/ntb_pingpong.c
287
hrtimer_setup(&pp->timer, pp_timer_func, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/perf/arm-ccn.c
1276
hrtimer_setup(&ccn->dt.hrtimer, arm_ccn_pmu_timer_handler, CLOCK_MONOTONIC,
drivers/perf/marvell_cn10k_ddr_pmu.c
1067
hrtimer_setup(&ddr_pmu->hrtimer, cn10k_ddr_pmu_timer_handler, CLOCK_MONOTONIC,
drivers/perf/thunderx2_pmu.c
755
hrtimer_setup(&tx2_pmu->hrtimer, tx2_pmu->hrtimer_callback, CLOCK_MONOTONIC,
drivers/power/reset/ltc2952-poweroff.c
165
hrtimer_setup(&data->timer_trigger, ltc2952_poweroff_timer_trigger, CLOCK_MONOTONIC,
drivers/power/reset/ltc2952-poweroff.c
168
hrtimer_setup(&data->timer_wde, ltc2952_poweroff_timer_wde, CLOCK_MONOTONIC,
drivers/power/supply/ab8500_chargalg.c
1793
hrtimer_setup(&di->safety_timer, ab8500_chargalg_safety_timer_expired, CLOCK_MONOTONIC,
drivers/power/supply/ab8500_chargalg.c
1798
CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/powercap/idle_inject.c
341
hrtimer_setup(&ii_dev->timer, idle_inject_timer_fn, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/powercap/intel_rapl_common.c
2082
hrtimer_setup(&data->hrtimer, rapl_hrtimer_handle, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/ptp/ptp_chardev.c
368
case CLOCK_MONOTONIC:
drivers/pwm/pwm-gpio.c
210
hrtimer_setup(&gpwm->gpio_timer, pwm_gpio_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/rtc/class.c
243
hrtimer_setup(&rtc->pie_timer, rtc_pie_update_irq, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/s390/crypto/ap_bus.c
2490
hrtimer_setup(&ap_poll_timer, ap_poll_timeout, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
drivers/scsi/ibmvscsi_tgt/ibmvscsi_tgt.c
2925
hrtimer_setup(&p_timer->timer, ibmvscsis_service_wait_q, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/scsi/lpfc/lpfc_init.c
7957
hrtimer_setup(&phba->cmf_timer, lpfc_cmf_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/scsi/lpfc/lpfc_init.c
7959
hrtimer_setup(&phba->cmf_stats_timer, lpfc_cmf_stats_timer, CLOCK_MONOTONIC,
drivers/scsi/scsi_debug.c
9509
hrtimer_setup(&sd_dp->hrt, sdebug_q_cmd_hrt_complete, CLOCK_MONOTONIC,
drivers/tty/serial/8250/8250_bcm7271.c
1059
hrtimer_setup(&priv->hrt, brcmuart_hrtimer_func, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
drivers/tty/serial/8250/8250_port.c
562
hrtimer_setup(&p->em485->stop_tx_timer, &serial8250_em485_handle_stop_tx, CLOCK_MONOTONIC,
drivers/tty/serial/8250/8250_port.c
564
hrtimer_setup(&p->em485->start_tx_timer, &serial8250_em485_handle_start_tx, CLOCK_MONOTONIC,
drivers/tty/serial/amba-pl011.c
2921
hrtimer_setup(&uap->trigger_start_tx, pl011_trigger_start_tx, CLOCK_MONOTONIC,
drivers/tty/serial/amba-pl011.c
2923
hrtimer_setup(&uap->trigger_stop_tx, pl011_trigger_stop_tx, CLOCK_MONOTONIC,
drivers/tty/serial/imx.c
2592
hrtimer_setup(&sport->trigger_start_tx, imx_trigger_start_tx, CLOCK_MONOTONIC,
drivers/tty/serial/imx.c
2594
hrtimer_setup(&sport->trigger_stop_tx, imx_trigger_stop_tx, CLOCK_MONOTONIC,
drivers/tty/serial/sh-sci.c
1881
hrtimer_setup(&s->rx_timer, sci_dma_rx_timer_fn, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/tty/serial/xilinx_uartps.c
1625
hrtimer_setup(&cdns_uart->tx_timer, &cdns_rs485_tx_callback, CLOCK_MONOTONIC,
drivers/usb/chipidea/otg_fsm.c
427
hrtimer_setup(&ci->otg_fsm_hrtimer, ci_otg_hrtimer_func, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
drivers/usb/dwc2/hcd_queue.c
1462
hrtimer_setup(&qh->wait_timer, &dwc2_wait_timer_fn, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/usb/fotg210/fotg210-hcd.c
4904
hrtimer_setup(&fotg210->hrtimer, fotg210_hrtimer_func, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
drivers/usb/gadget/function/f_ncm.c
1559
hrtimer_setup(&ncm->task_timer, ncm_tx_timeout, CLOCK_MONOTONIC, HRTIMER_MODE_REL_SOFT);
drivers/usb/gadget/udc/dummy_hcd.c
2493
hrtimer_setup(&dum_hcd->timer, dummy_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_SOFT);
drivers/usb/gadget/udc/dummy_hcd.c
2522
hrtimer_setup(&dum_hcd->timer, dummy_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_SOFT);
drivers/usb/host/ehci-hcd.c
469
hrtimer_setup(&ehci->hrtimer, ehci_hrtimer_func, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
drivers/usb/musb/musb_cppi41.c
763
hrtimer_setup(&controller->early_tx, cppi41_recheck_tx_req, CLOCK_MONOTONIC,
drivers/usb/typec/tcpm/tcpm.c
7849
hrtimer_setup(&port->state_machine_timer, state_machine_timer_handler, CLOCK_MONOTONIC,
drivers/usb/typec/tcpm/tcpm.c
7852
CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/usb/typec/tcpm/tcpm.c
7853
hrtimer_setup(&port->enable_frs_timer, enable_frs_timer_handler, CLOCK_MONOTONIC,
drivers/usb/typec/tcpm/tcpm.c
7855
hrtimer_setup(&port->send_discover_timer, send_discover_timer_handler, CLOCK_MONOTONIC,
drivers/virtio/virtio_mem.c
2953
hrtimer_setup(&vm->retry_timer, virtio_mem_timer_expired, CLOCK_MONOTONIC,
drivers/watchdog/softdog.c
190
hrtimer_setup(&softdog_ticktock, softdog_fire, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
drivers/watchdog/softdog.c
194
hrtimer_setup(&softdog_preticktock, softdog_pretimeout, CLOCK_MONOTONIC,
drivers/watchdog/watchdog_dev.c
1049
hrtimer_setup(&wd_data->timer, watchdog_timer_expired, CLOCK_MONOTONIC,
drivers/watchdog/watchdog_hrtimer_pretimeout.c
26
hrtimer_setup(&wd_data->pretimeout_timer, watchdog_hrtimer_pretimeout, CLOCK_MONOTONIC,
fs/aio.c
1337
hrtimer_setup_sleeper_on_stack(&t, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
fs/proc/base.c
1678
strcmp(clock, __stringify(CLOCK_MONOTONIC)) == 0)
fs/proc/base.c
1679
off->clockid = CLOCK_MONOTONIC;
fs/timerfd.c
404
(clockid != CLOCK_MONOTONIC &&
fs/ubifs/io.c
1177
hrtimer_setup(&wbuf->timer, wbuf_timer_callback_nolock, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
include/kunit/run-in-irq-context.h
114
CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD);
include/linux/skbuff.h
4451
case CLOCK_MONOTONIC:
include/linux/wait.h
550
hrtimer_setup_sleeper_on_stack(&__t, CLOCK_MONOTONIC, \
include/trace/events/timer.h
168
{ CLOCK_MONOTONIC, "CLOCK_MONOTONIC" }, \
include/uapi/linux/time.h
78
#define CLOCKS_MASK (CLOCK_REALTIME | CLOCK_MONOTONIC)
include/uapi/linux/time.h
79
#define CLOCKS_MONO CLOCK_MONOTONIC
include/vdso/datapage.h
44
BIT(CLOCK_MONOTONIC) | \
io_uring/io_uring.c
2950
ctx->clockid = CLOCK_MONOTONIC;
io_uring/io_uring.h
565
if (ctx->clockid == CLOCK_MONOTONIC)
io_uring/mock_file.c
125
CLOCK_MONOTONIC, HRTIMER_MODE_REL);
io_uring/register.c
454
case CLOCK_MONOTONIC:
io_uring/rw.c
1289
hrtimer_setup_sleeper_on_stack(&timer, CLOCK_MONOTONIC, mode);
io_uring/timeout.c
393
return CLOCK_MONOTONIC;
kernel/bpf/helpers.c
1389
(clockid != CLOCK_MONOTONIC &&
kernel/events/core.c
12260
hrtimer_setup(&hwc->hrtimer, perf_swevent_hrtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD);
kernel/events/core.c
1314
hrtimer_setup(timer, perf_mux_hrtimer_handler, CLOCK_MONOTONIC,
kernel/events/core.c
13733
case CLOCK_MONOTONIC:
kernel/fork.c
1724
hrtimer_setup(&sig->real_timer, it_real_fn, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
kernel/futex/core.c
470
(flags & FLAGS_CLOCKRT) ? CLOCK_REALTIME : CLOCK_MONOTONIC,
kernel/futex/syscalls.c
184
*t = timens_ktime_to_host(CLOCK_MONOTONIC, *t);
kernel/futex/syscalls.c
271
if (clockid != CLOCK_REALTIME && clockid != CLOCK_MONOTONIC)
kernel/rcu/rcutorture.c
2568
hrtimer_setup(&updownreaders[i].rtorsu_hrt, rcu_torture_updown_hrt, CLOCK_MONOTONIC,
kernel/rcu/rcutorture.c
3995
hrtimer_setup(&gpwrap_lag_timer, rcu_gpwrap_lag_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
kernel/rseq.c
832
CLOCK_MONOTONIC, HRTIMER_MODE_REL_PINNED_HARD);
kernel/sched/core.c
947
hrtimer_setup(&rq->hrtick_timer, hrtick, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD);
kernel/sched/deadline.c
1319
hrtimer_setup(timer, dl_task_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD);
kernel/sched/deadline.c
2022
hrtimer_setup(timer, inactive_task_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD);
kernel/sched/fair.c
6566
hrtimer_setup(&cfs_b->period_timer, sched_cfs_period_timer, CLOCK_MONOTONIC,
kernel/sched/fair.c
6572
hrtimer_setup(&cfs_b->slack_timer, sched_cfs_slack_timer, CLOCK_MONOTONIC,
kernel/sched/idle.c
429
hrtimer_setup_on_stack(&it.timer, idle_inject_timer_fn, CLOCK_MONOTONIC,
kernel/sched/rt.c
132
hrtimer_setup(&rt_b->rt_period_timer, sched_rt_period_timer, CLOCK_MONOTONIC,
kernel/time/hrtimer.c
103
.clockid = CLOCK_MONOTONIC,
kernel/time/hrtimer.c
1578
case CLOCK_MONOTONIC:
kernel/time/hrtimer.c
1595
case CLOCK_MONOTONIC:
kernel/time/hrtimer.c
1642
clock_id = CLOCK_MONOTONIC;
kernel/time/hrtimer.c
2207
CLOCK_MONOTONIC);
kernel/time/hrtimer.c
2229
CLOCK_MONOTONIC);
kernel/time/hrtimer.c
87
.clockid = CLOCK_MONOTONIC,
kernel/time/namespace.c
187
offset[CLOCK_MONOTONIC] = monotonic;
kernel/time/namespace.c
30
case CLOCK_MONOTONIC:
kernel/time/namespace.c
358
case CLOCK_MONOTONIC:
kernel/time/namespace.c
378
show_offset(m, CLOCK_MONOTONIC, &time_ns->offsets.monotonic);
kernel/time/namespace.c
405
case CLOCK_MONOTONIC:
kernel/time/namespace.c
444
case CLOCK_MONOTONIC:
kernel/time/posix-stubs.c
103
case CLOCK_MONOTONIC:
kernel/time/posix-stubs.c
167
case CLOCK_MONOTONIC:
kernel/time/posix-stubs.c
186
case CLOCK_MONOTONIC:
kernel/time/posix-stubs.c
45
case CLOCK_MONOTONIC:
kernel/time/posix-stubs.c
84
case CLOCK_MONOTONIC:
kernel/time/posix-timers.c
1511
[CLOCK_MONOTONIC] = &clock_monotonic,
kernel/time/sched_clock.c
266
hrtimer_setup(&sched_clock_timer, sched_clock_poll, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD);
kernel/time/sleep_timeout.c
264
CLOCK_MONOTONIC);
kernel/time/tick-broadcast-hrtimer.c
103
hrtimer_setup(&bctimer, bc_handler, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_HARD);
kernel/time/tick-sched.c
1606
hrtimer_setup(&ts->sched_timer, tick_nohz_handler, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_HARD);
kernel/time/timekeeping.c
1681
case CLOCK_MONOTONIC:
kernel/time/vsyscall.c
39
vdso_ts = &vc[CS_HRES_COARSE].basetime[CLOCK_MONOTONIC];
kernel/trace/rv/monitors/sleep/sleep.c
137
ltl_atom_set(mon, LTL_NANOSLEEP_CLOCK_MONOTONIC, args[0] == CLOCK_MONOTONIC);
kernel/trace/trace_osnoise.c
1880
hrtimer_setup(&tlat->timer, timerlat_irq, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD);
kernel/trace/trace_osnoise.c
2434
hrtimer_setup(&tlat->timer, timerlat_irq, CLOCK_MONOTONIC, HRTIMER_MODE_ABS_PINNED_HARD);
kernel/watchdog.c
905
hrtimer_setup(hrtimer, watchdog_timer_fn, CLOCK_MONOTONIC, HRTIMER_MODE_REL_HARD);
lib/test_objpool.c
193
hrtimer_setup(hrt, ot_hrtimer_handler, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
mm/slab_common.c
1910
hrtimer_setup(&krcp->hrtimer, schedule_page_work_fn, CLOCK_MONOTONIC,
net/can/bcm.c
1067
hrtimer_setup(&op->timer, bcm_tx_timeout_handler, CLOCK_MONOTONIC,
net/can/bcm.c
1071
hrtimer_setup(&op->thrtimer, hrtimer_dummy_timeout, CLOCK_MONOTONIC,
net/can/bcm.c
1231
hrtimer_setup(&op->timer, bcm_rx_timeout_handler, CLOCK_MONOTONIC,
net/can/bcm.c
1233
hrtimer_setup(&op->thrtimer, bcm_rx_thr_handler, CLOCK_MONOTONIC,
net/can/isotp.c
1666
hrtimer_setup(&so->rxtimer, isotp_rx_timer_handler, CLOCK_MONOTONIC, HRTIMER_MODE_REL_SOFT);
net/can/isotp.c
1667
hrtimer_setup(&so->txtimer, isotp_tx_timer_handler, CLOCK_MONOTONIC, HRTIMER_MODE_REL_SOFT);
net/can/isotp.c
1668
hrtimer_setup(&so->txfrtimer, isotp_txfr_timer_handler, CLOCK_MONOTONIC,
net/can/j1939/bus.c
161
hrtimer_setup(&ecu->ac_timer, j1939_ecu_timer_handler, CLOCK_MONOTONIC,
net/can/j1939/transport.c
1530
hrtimer_setup(&session->txtimer, j1939_tp_txtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_SOFT);
net/can/j1939/transport.c
1531
hrtimer_setup(&session->rxtimer, j1939_tp_rxtimer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_SOFT);
net/core/dev.c
7545
hrtimer_setup(&napi->timer, napi_watchdog, CLOCK_MONOTONIC, HRTIMER_MODE_REL_PINNED);
net/core/pktgen.c
2330
hrtimer_setup_sleeper_on_stack(&t, CLOCK_MONOTONIC, HRTIMER_MODE_ABS);
net/core/sock.c
1181
case CLOCK_MONOTONIC:
net/core/sock.c
1622
if (sk_txtime.clockid != CLOCK_MONOTONIC &&
net/ipv4/tcp_ipv4.c
3736
sk->sk_clockid = CLOCK_MONOTONIC;
net/ipv4/tcp_timer.c
900
hrtimer_setup(&tcp_sk(sk)->pacing_timer, tcp_pace_kick, CLOCK_MONOTONIC,
net/ipv4/tcp_timer.c
903
hrtimer_setup(&tcp_sk(sk)->compressed_ack_timer, tcp_compressed_ack_kick, CLOCK_MONOTONIC,
net/ipv6/tcp_ipv6.c
2349
net->ipv6.tcp_sk->sk_clockid = CLOCK_MONOTONIC;
net/mac802154/main.c
216
hrtimer_setup(&local->ifs_timer, ieee802154_xmit_ifs_timer, CLOCK_MONOTONIC,
net/packet/af_packet.c
664
CLOCK_MONOTONIC, HRTIMER_MODE_REL_SOFT);
net/sched/act_gate.c
324
case CLOCK_MONOTONIC:
net/sched/sch_api.c
626
qdisc_watchdog_init_clockid(wd, qdisc, CLOCK_MONOTONIC);
net/sched/sch_dualpi2.c
931
hrtimer_setup(&q->pi2_timer, dualpi2_timer, CLOCK_MONOTONIC,
net/sched/sch_etf.c
398
case CLOCK_MONOTONIC:
net/sched/sch_fq.c
1202
qdisc_watchdog_init_clockid(&q->watchdog, sch, CLOCK_MONOTONIC);
net/sched/sch_taprio.c
1669
case CLOCK_MONOTONIC:
net/xfrm/xfrm_iptfs.c
2639
hrtimer_setup(&xtfs->iptfs_timer, iptfs_delay_timer, CLOCK_MONOTONIC, IPTFS_HRTIMER_MODE);
net/xfrm/xfrm_iptfs.c
2642
hrtimer_setup(&xtfs->drop_timer, iptfs_drop_timer, CLOCK_MONOTONIC, IPTFS_HRTIMER_MODE);
samples/bpf/map_perf_test_user.c
29
clock_gettime(CLOCK_MONOTONIC, &ts);
samples/bpf/trace_output_user.c
13
clock_gettime(CLOCK_MONOTONIC, &ts);
samples/bpf/tracex4_user.c
24
clock_gettime(CLOCK_MONOTONIC, &ts);
samples/bpf/xdp_sample_user.c
1547
timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC | TFD_NONBLOCK);
samples/bpf/xdp_sample_user.c
197
res = clock_gettime(CLOCK_MONOTONIC, &t);
sound/core/hrtimer.c
71
hrtimer_setup(&stime->hrt, snd_hrtimer_callback, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
sound/drivers/dummy.c
457
hrtimer_setup(&dpcm->timer, dummy_hrtimer_callback, CLOCK_MONOTONIC, HRTIMER_MODE_REL_SOFT);
sound/drivers/pcsp/pcsp.c
106
hrtimer_setup(&pcsp_chip.timer, pcsp_do_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
sound/sh/sh_dac_audio.c
315
hrtimer_setup(&chip->hrtimer, sh_dac_audio_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
sound/soc/fsl/imx-pcm-fiq.c
188
hrtimer_setup(&iprtd->hrt, snd_hrtimer_callback, CLOCK_MONOTONIC, HRTIMER_MODE_REL);
tools/build/feature/test-timerfd.c
11
int fd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK);
tools/leds/led_hw_brightness_mon.c
67
clock_gettime(CLOCK_MONOTONIC, &ts);
tools/leds/uledmon.c
57
clock_gettime(CLOCK_MONOTONIC, &ts);
tools/lib/bpf/ringbuf.c
640
err = clock_gettime(CLOCK_MONOTONIC, &start);
tools/lib/bpf/ringbuf.c
674
err = clock_gettime(CLOCK_MONOTONIC, &curr);
tools/perf/builtin-kvm.c
1319
kvm->timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_NONBLOCK);
tools/perf/builtin-sched.c
302
clock_gettime(CLOCK_MONOTONIC, &ts);
tools/perf/builtin-stat.c
468
clock_gettime(CLOCK_MONOTONIC, &ts);
tools/perf/builtin-stat.c
639
clock_gettime(CLOCK_MONOTONIC, &time_start);
tools/perf/builtin-stat.c
646
clock_gettime(CLOCK_MONOTONIC, &time_stop);
tools/perf/builtin-stat.c
972
clock_gettime(CLOCK_MONOTONIC, &ref_time);
tools/perf/jvmti/jvmti_agent.c
105
static int perf_clk_id = CLOCK_MONOTONIC;
tools/perf/util/bpf_kwork.c
58
clock_gettime(CLOCK_MONOTONIC, &ts_start);
tools/perf/util/bpf_kwork.c
64
clock_gettime(CLOCK_MONOTONIC, &ts_end);
tools/perf/util/bpf_kwork_top.c
66
clock_gettime(CLOCK_MONOTONIC, &ts);
tools/perf/util/bpf_kwork_top.c
77
clock_gettime(CLOCK_MONOTONIC, &ts);
tools/perf/util/clockid.c
38
CLOCKID_MAP("monotonic", CLOCK_MONOTONIC),
tools/perf/util/clockid.c
47
CLOCKID_MAP("mono", CLOCK_MONOTONIC),
tools/perf/util/evlist.c
2403
eet->timerfd = timerfd_create(CLOCK_MONOTONIC, TFD_CLOEXEC);
tools/perf/util/evsel.c
2340
evsel->core.attr.clockid = CLOCK_MONOTONIC; /* should always work */
tools/perf/util/evsel.c
2682
attr.clockid = CLOCK_MONOTONIC;
tools/perf/util/evsel.c
2741
if (evsel->core.attr.use_clockid && evsel->core.attr.clockid != CLOCK_MONOTONIC &&
tools/perf/util/jitdump.c
131
if (evsel->core.attr.use_clockid == 0 || evsel->core.attr.clockid != CLOCK_MONOTONIC)
tools/perf/util/time-utils.h
47
clock_gettime(CLOCK_MONOTONIC, &ts);
tools/sched_ext/scx_central.bpf.c
318
bpf_timer_init(timer, ¢ral_timer, CLOCK_MONOTONIC);
tools/sched_ext/scx_qmap.bpf.c
884
bpf_timer_init(timer, &monitor_timer, CLOCK_MONOTONIC);
tools/spi/spidev_test.c
513
clock_gettime(CLOCK_MONOTONIC, &last_stat);
tools/spi/spidev_test.c
520
clock_gettime(CLOCK_MONOTONIC, ¤t);
tools/testing/radix-tree/benchmark.c
101
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/radix-tree/benchmark.c
106
clock_gettime(CLOCK_MONOTONIC, &finish);
tools/testing/radix-tree/benchmark.c
26
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/radix-tree/benchmark.c
36
clock_gettime(CLOCK_MONOTONIC, &finish);
tools/testing/radix-tree/benchmark.c
59
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/radix-tree/benchmark.c
64
clock_gettime(CLOCK_MONOTONIC, &finish);
tools/testing/radix-tree/benchmark.c
80
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/radix-tree/benchmark.c
85
clock_gettime(CLOCK_MONOTONIC, &finish);
tools/testing/selftests/bpf/benchs/bench_sockmap.c
463
clock_gettime(CLOCK_MONOTONIC, &ts1);
tools/testing/selftests/bpf/benchs/bench_sockmap.c
474
clock_gettime(CLOCK_MONOTONIC, &ts2);
tools/testing/selftests/bpf/prog_tests/lwt_reroute.c
126
err = clock_gettime(CLOCK_MONOTONIC, &now);
tools/testing/selftests/bpf/prog_tests/lwt_reroute.c
91
.clockid = CLOCK_MONOTONIC,
tools/testing/selftests/bpf/prog_tests/test_overhead.c
14
clock_gettime(CLOCK_MONOTONIC, &ts);
tools/testing/selftests/bpf/progs/free_timer.c
49
bpf_timer_init(&value->timer, &map, CLOCK_MONOTONIC);
tools/testing/selftests/bpf/progs/test_helper_restricted.c
40
bpf_timer_init(&timer->t, &timers, CLOCK_MONOTONIC);
tools/testing/selftests/bpf/progs/timer.c
153
bpf_timer_init(arr_timer, &array, CLOCK_MONOTONIC);
tools/testing/selftests/bpf/progs/timer.c
159
bpf_timer_init(lru_timer, &lru, CLOCK_MONOTONIC);
tools/testing/selftests/bpf/progs/timer.c
171
bpf_timer_init(arr_timer, &array, CLOCK_MONOTONIC);
tools/testing/selftests/bpf/progs/timer.c
190
bpf_timer_init(arr_timer, &array, CLOCK_MONOTONIC);
tools/testing/selftests/bpf/progs/timer.c
471
ret = bpf_timer_init(timer, &race_array, CLOCK_MONOTONIC);
tools/testing/selftests/bpf/progs/timer_interrupt.c
44
bpf_timer_init(timer, &array, CLOCK_MONOTONIC);
tools/testing/selftests/bpf/progs/timer_mim.c
82
bpf_timer_init(&val->timer, inner_map, CLOCK_MONOTONIC);
tools/testing/selftests/bpf/progs/timer_mim_reject.c
68
bpf_timer_init(&val->timer, inner_map2, CLOCK_MONOTONIC);
tools/testing/selftests/bpf/progs/timer_start_deadlock.c
58
bpf_timer_init(timer, &timer_map, CLOCK_MONOTONIC);
tools/testing/selftests/bpf/progs/timer_start_delete_race.c
45
bpf_timer_init(&value->timer, &timer_map, CLOCK_MONOTONIC);
tools/testing/selftests/bpf/test_progs.c
263
err = timer_create(CLOCK_MONOTONIC, &watchdog_sev, &env.watchdog);
tools/testing/selftests/bpf/test_sockmap.c
444
clock_gettime(CLOCK_MONOTONIC, &s->start);
tools/testing/selftests/bpf/test_sockmap.c
465
clock_gettime(CLOCK_MONOTONIC, &s->end);
tools/testing/selftests/bpf/test_sockmap.c
652
clock_gettime(CLOCK_MONOTONIC, &s->start);
tools/testing/selftests/bpf/test_sockmap.c
676
clock_gettime(CLOCK_MONOTONIC, &s->end);
tools/testing/selftests/bpf/test_sockmap.c
715
err = clock_gettime(CLOCK_MONOTONIC, &s->start);
tools/testing/selftests/bpf/test_sockmap.c
734
clock_gettime(CLOCK_MONOTONIC, &s->end);
tools/testing/selftests/bpf/test_sockmap.c
740
clock_gettime(CLOCK_MONOTONIC, &s->end);
tools/testing/selftests/bpf/test_sockmap.c
759
clock_gettime(CLOCK_MONOTONIC, &s->end);
tools/testing/selftests/bpf/test_sockmap.c
769
clock_gettime(CLOCK_MONOTONIC, &s->end);
tools/testing/selftests/bpf/test_sockmap.c
811
clock_gettime(CLOCK_MONOTONIC, &s->end);
tools/testing/selftests/bpf/testing_helpers.h
49
clock_gettime(CLOCK_MONOTONIC, &t);
tools/testing/selftests/cgroup/test_cpu.c
142
ret = clock_gettime(CLOCK_MONOTONIC, &ts_start);
tools/testing/selftests/cgroup/test_cpu.c
168
ret = clock_gettime(CLOCK_MONOTONIC, &ts_current);
tools/testing/selftests/drivers/ntsync/ntsync.c
104
clock_gettime(CLOCK_MONOTONIC, &timeout);
tools/testing/selftests/drivers/ntsync/ntsync.c
148
clock_gettime(CLOCK_MONOTONIC, &timeout);
tools/testing/selftests/drivers/ntsync/ntsync.c
232
clock_gettime(CLOCK_MONOTONIC, &timeout);
tools/testing/selftests/drivers/ntsync/ntsync.c
508
clock_gettime(CLOCK_MONOTONIC, &timeout);
tools/testing/selftests/drivers/ntsync/ntsync.c
731
clock_gettime(CLOCK_MONOTONIC, &timeout);
tools/testing/selftests/filesystems/file_stressor.c
186
ASSERT_EQ(clock_nanosleep(CLOCK_MONOTONIC, 0, &(struct timespec){ .tv_sec = 900 /* 15 min */ }, NULL), 0);
tools/testing/selftests/futex/functional/futex_requeue_pi.c
341
ret = clock_gettime(CLOCK_MONOTONIC, &ts);
tools/testing/selftests/futex/functional/futex_wait_timeout.c
102
if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns))
tools/testing/selftests/futex/functional/futex_wait_timeout.c
121
if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns))
tools/testing/selftests/futex/functional/futex_wait_timeout.c
175
if (futex_get_abs_timeout(CLOCK_MONOTONIC, &to, timeout_ns))
tools/testing/selftests/futex/functional/futex_wait_timeout.c
177
res = futex_waitv(&waitv, 1, 0, &to, CLOCK_MONOTONIC);
tools/testing/selftests/futex/functional/futex_wait_wouldblock.c
60
if (clock_gettime(CLOCK_MONOTONIC, &to))
tools/testing/selftests/futex/functional/futex_wait_wouldblock.c
71
res = futex_waitv(&waitv, 1, 0, &to, CLOCK_MONOTONIC);
tools/testing/selftests/futex/functional/futex_waitv.c
130
if (clock_gettime(CLOCK_MONOTONIC, &to))
tools/testing/selftests/futex/functional/futex_waitv.c
135
res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC);
tools/testing/selftests/futex/functional/futex_waitv.c
154
if (clock_gettime(CLOCK_MONOTONIC, &to))
tools/testing/selftests/futex/functional/futex_waitv.c
159
res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC);
tools/testing/selftests/futex/functional/futex_waitv.c
177
if (clock_gettime(CLOCK_MONOTONIC, &to))
tools/testing/selftests/futex/functional/futex_waitv.c
182
res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC);
tools/testing/selftests/futex/functional/futex_waitv.c
192
if (clock_gettime(CLOCK_MONOTONIC, &to))
tools/testing/selftests/futex/functional/futex_waitv.c
197
res = futex_waitv(NULL, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC);
tools/testing/selftests/futex/functional/futex_waitv.c
213
if (clock_gettime(CLOCK_MONOTONIC, &to))
tools/testing/selftests/futex/functional/futex_waitv.c
34
if (clock_gettime(CLOCK_MONOTONIC, &to))
tools/testing/selftests/futex/functional/futex_waitv.c
39
res = futex_waitv(waitv, NR_FUTEXES, 0, &to, CLOCK_MONOTONIC);
tools/testing/selftests/intel_pstate/aperf.c
62
if (clock_gettime(CLOCK_MONOTONIC, &before) < 0) {
tools/testing/selftests/intel_pstate/aperf.c
74
if (clock_gettime(CLOCK_MONOTONIC, &after) < 0) {
tools/testing/selftests/kvm/access_tracking_perf_test.c
275
clock_gettime(CLOCK_MONOTONIC, &ts_start);
tools/testing/selftests/kvm/access_tracking_perf_test.c
370
clock_gettime(CLOCK_MONOTONIC, &ts_start);
tools/testing/selftests/kvm/arm64/vgic_lpi_stress.c
321
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/kvm/demand_paging_test.c
211
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/kvm/demand_paging_test.c
41
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/kvm/demand_paging_test.c
66
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/kvm/dirty_log_perf_test.c
141
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/kvm/dirty_log_perf_test.c
169
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/kvm/dirty_log_perf_test.c
183
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/kvm/dirty_log_perf_test.c
198
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/kvm/dirty_log_perf_test.c
207
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/kvm/dirty_log_perf_test.c
227
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/kvm/dirty_log_perf_test.c
53
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/kvm/kvm_page_table_test.c
201
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/kvm/kvm_page_table_test.c
368
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/kvm/kvm_page_table_test.c
381
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/kvm/kvm_page_table_test.c
393
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/kvm/lib/test_util.c
120
clock_gettime(CLOCK_MONOTONIC, &end);
tools/testing/selftests/kvm/lib/userfaultfd_util.c
49
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/kvm/memslot_perf_test.c
318
clock_gettime(CLOCK_MONOTONIC, &tstart);
tools/testing/selftests/kvm/memslot_perf_test.c
829
clock_gettime(CLOCK_MONOTONIC, &tstart);
tools/testing/selftests/kvm/mmu_stress_test.c
247
clock_gettime(CLOCK_MONOTONIC, time);
tools/testing/selftests/kvm/steal_time.c
406
clock_gettime(CLOCK_MONOTONIC, &ts);
tools/testing/selftests/kvm/steal_time.c
410
clock_gettime(CLOCK_MONOTONIC, &ts);
tools/testing/selftests/mm/migration.c
73
if (clock_gettime(CLOCK_MONOTONIC, &ts1))
tools/testing/selftests/mm/migration.c
77
if (clock_gettime(CLOCK_MONOTONIC, &ts2))
tools/testing/selftests/mm/mremap_test.c
1060
clock_gettime(CLOCK_MONOTONIC, &t_start);
tools/testing/selftests/mm/mremap_test.c
1063
clock_gettime(CLOCK_MONOTONIC, &t_end);
tools/testing/selftests/mm/transhuge-stress.c
125
clock_gettime(CLOCK_MONOTONIC, &b);
tools/testing/selftests/mm/transhuge-stress.c
90
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/mm/transhuge-stress.c
97
clock_gettime(CLOCK_MONOTONIC, &a);
tools/testing/selftests/net/cmsg_sender.c
453
.clockid = CLOCK_MONOTONIC,
tools/testing/selftests/net/cmsg_sender.c
526
if (clock_gettime(CLOCK_MONOTONIC, &time_start_mono))
tools/testing/selftests/net/mptcp/mptcp_connect.c
1008
if (cfg_time && (clock_gettime(CLOCK_MONOTONIC, &start) < 0))
tools/testing/selftests/net/mptcp/mptcp_connect.c
1057
if (clock_gettime(CLOCK_MONOTONIC, &end) < 0)
tools/testing/selftests/net/so_txtime.c
467
cfg_clockid = CLOCK_MONOTONIC;
tools/testing/selftests/net/stress_reuseport_listen.c
85
clock_gettime(CLOCK_MONOTONIC, &start_ts);
tools/testing/selftests/net/stress_reuseport_listen.c
91
clock_gettime(CLOCK_MONOTONIC, &end_ts);
tools/testing/selftests/net/tcp_ao/bench-lookups.c
103
if (clock_gettime(CLOCK_MONOTONIC, &end))
tools/testing/selftests/net/tcp_ao/bench-lookups.c
98
if (clock_gettime(CLOCK_MONOTONIC, &start))
tools/testing/selftests/nolibc/nolibc-test.c
1003
ret = timer_create(CLOCK_MONOTONIC, &evp, &timer);
tools/testing/selftests/nolibc/nolibc-test.c
1049
timer = timerfd_create(CLOCK_MONOTONIC, 0);
tools/testing/selftests/nolibc/nolibc-test.c
1371
CASE_TEST(clock_getres); EXPECT_SYSZR(1, clock_getres(CLOCK_MONOTONIC, &ts)); break;
tools/testing/selftests/nolibc/nolibc-test.c
1372
CASE_TEST(clock_gettime); EXPECT_SYSZR(1, clock_gettime(CLOCK_MONOTONIC, &ts)); break;
tools/testing/selftests/nolibc/nolibc-test.c
1373
CASE_TEST(clock_settime); EXPECT_SYSER(1, clock_settime(CLOCK_MONOTONIC, &ts), -1, EINVAL); break;
tools/testing/selftests/powerpc/benchmarks/futex_bench.c
25
clock_gettime(CLOCK_MONOTONIC, &ts_start);
tools/testing/selftests/powerpc/benchmarks/futex_bench.c
32
clock_gettime(CLOCK_MONOTONIC, &ts_end);
tools/testing/selftests/powerpc/benchmarks/mmap_bench.c
39
clock_gettime(CLOCK_MONOTONIC, &ts_start);
tools/testing/selftests/powerpc/benchmarks/mmap_bench.c
53
clock_gettime(CLOCK_MONOTONIC, &ts_end);
tools/testing/selftests/powerpc/benchmarks/null_syscall.c
138
clock_gettime(CLOCK_MONOTONIC, &tv_start);
tools/testing/selftests/powerpc/benchmarks/null_syscall.c
143
clock_gettime(CLOCK_MONOTONIC, &tv_now);
tools/testing/selftests/powerpc/stringloops/strlen.c
41
clock_gettime(CLOCK_MONOTONIC, &ts_start);
tools/testing/selftests/powerpc/stringloops/strlen.c
46
clock_gettime(CLOCK_MONOTONIC, &ts_end);
tools/testing/selftests/ptp/testptp.c
299
ext_clockid = CLOCK_MONOTONIC;
tools/testing/selftests/ptp/testptp.c
617
case CLOCK_MONOTONIC:
tools/testing/selftests/ptp/testptp.c
638
case CLOCK_MONOTONIC:
tools/testing/selftests/rseq/slice_test.c
111
clock_gettime(CLOCK_MONOTONIC, &ts_start);
tools/testing/selftests/rseq/slice_test.c
113
clock_gettime(CLOCK_MONOTONIC, &ts_now);
tools/testing/selftests/rseq/slice_test.c
118
clock_nanosleep(CLOCK_MONOTONIC, 0, &ts_start, NULL);
tools/testing/selftests/rseq/slice_test.c
167
clock_gettime(CLOCK_MONOTONIC, &ts_start);
tools/testing/selftests/rseq/slice_test.c
172
clock_gettime(CLOCK_MONOTONIC, &ts_cs);
tools/testing/selftests/rseq/slice_test.c
177
clock_gettime(CLOCK_MONOTONIC, &ts_now);
tools/testing/selftests/rseq/slice_test.c
208
clock_gettime(CLOCK_MONOTONIC, &ts_now);
tools/testing/selftests/seccomp/seccomp_benchmark.c
62
assert(clock_gettime(CLOCK_MONOTONIC, &start) == 0);
tools/testing/selftests/seccomp/seccomp_benchmark.c
68
assert(clock_gettime(CLOCK_MONOTONIC, &finish) == 0);
tools/testing/selftests/syscall_user_dispatch/sud_benchmark.c
73
clock_gettime(CLOCK_MONOTONIC, &t1);
tools/testing/selftests/syscall_user_dispatch/sud_benchmark.c
76
clock_gettime(CLOCK_MONOTONIC, &t2);
tools/testing/selftests/timens/clock_nanosleep.c
129
if (_settime(CLOCK_MONOTONIC, 7 * 24 * 3600))
tools/testing/selftests/timens/clock_nanosleep.c
142
ret |= run_test(CLOCK_MONOTONIC, 0);
tools/testing/selftests/timens/clock_nanosleep.c
143
ret |= run_test(CLOCK_MONOTONIC, 1);
tools/testing/selftests/timens/exec.c
32
_gettime(CLOCK_MONOTONIC, &tst, i);
tools/testing/selftests/timens/exec.c
45
clock_gettime(CLOCK_MONOTONIC, &now);
tools/testing/selftests/timens/exec.c
50
if (_settime(CLOCK_MONOTONIC, OFFSET))
tools/testing/selftests/timens/exec.c
54
_gettime(CLOCK_MONOTONIC, &tst, i);
tools/testing/selftests/timens/exec.c
74
_gettime(CLOCK_MONOTONIC, &tst, i);
tools/testing/selftests/timens/futex.c
75
clock_gettime(CLOCK_MONOTONIC, &mtime_now);
tools/testing/selftests/timens/futex.c
81
CLOCK_MONOTONIC, 70 * 24 * 3600);
tools/testing/selftests/timens/futex.c
98
ret |= run_test(CLOCK_MONOTONIC);
tools/testing/selftests/timens/gettime_perf.c
76
test(CLOCK_MONOTONIC, "monotonic", false);
tools/testing/selftests/timens/gettime_perf.c
90
if (_settime(CLOCK_MONOTONIC, offset))
tools/testing/selftests/timens/gettime_perf.c
98
test(CLOCK_MONOTONIC, "monotonic", true);
tools/testing/selftests/timens/timens.c
40
ct(CLOCK_MONOTONIC, -1),
tools/testing/selftests/timens/timens.h
43
case CLOCK_MONOTONIC:
tools/testing/selftests/timens/timens.h
70
clk_id = CLOCK_MONOTONIC;
tools/testing/selftests/timens/timer.c
112
ret |= run_test(CLOCK_MONOTONIC, mtime_now);
tools/testing/selftests/timens/timer.c
86
clock_gettime(CLOCK_MONOTONIC, &mtime_now);
tools/testing/selftests/timens/timer.c
93
CLOCK_MONOTONIC, 70 * 24 * 3600,
tools/testing/selftests/timens/timerfd.c
100
CLOCK_MONOTONIC, 70 * 24 * 3600,
tools/testing/selftests/timens/timerfd.c
119
ret |= run_test(CLOCK_MONOTONIC, mtime_now);
tools/testing/selftests/timens/timerfd.c
93
clock_gettime(CLOCK_MONOTONIC, &mtime_now);
tools/testing/selftests/timens/vfork_exec.c
100
clock_gettime(CLOCK_MONOTONIC, &now);
tools/testing/selftests/timens/vfork_exec.c
105
if (_settime(CLOCK_MONOTONIC, OFFSET))
tools/testing/selftests/timens/vfork_exec.c
34
_gettime(CLOCK_MONOTONIC, &tst, i);
tools/testing/selftests/timens/vfork_exec.c
66
_gettime(CLOCK_MONOTONIC, &tst, i);
tools/testing/selftests/timers/adjtick.c
71
clock_gettime(CLOCK_MONOTONIC, mon);
tools/testing/selftests/timers/adjtick.c
78
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/timers/adjtick.c
80
clock_gettime(CLOCK_MONOTONIC, &end);
tools/testing/selftests/timers/alarmtimer-suspend.c
48
case CLOCK_MONOTONIC:
tools/testing/selftests/timers/freq-step.c
215
if (clock_gettime(CLOCK_MONOTONIC, &ts)) {
tools/testing/selftests/timers/freq-step.c
56
clock_gettime(CLOCK_MONOTONIC, &ts2);
tools/testing/selftests/timers/inconsistency-check.c
44
case CLOCK_MONOTONIC:
tools/testing/selftests/timers/leap-a-day.c
357
clock_nanosleep(CLOCK_MONOTONIC, 0, &ts, NULL);
tools/testing/selftests/timers/mqueue-lat.c
75
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/timers/mqueue-lat.c
90
clock_gettime(CLOCK_MONOTONIC, &end);
tools/testing/selftests/timers/nanosleep.c
43
case CLOCK_MONOTONIC:
tools/testing/selftests/timers/nsleep-lat.c
42
case CLOCK_MONOTONIC:
tools/testing/selftests/timers/posix_timers.c
296
if (timer_create(CLOCK_MONOTONIC, &sev, &timerid))
tools/testing/selftests/timers/posix_timers.c
369
if (timer_create(CLOCK_MONOTONIC, &sev, &timerid))
tools/testing/selftests/timers/posix_timers.c
425
if (timer_create(CLOCK_MONOTONIC, &sev, &timerid))
tools/testing/selftests/timers/posix_timers.c
608
return syscall(__NR_timer_create, CLOCK_MONOTONIC, NULL, id);
tools/testing/selftests/timers/posix_timers.c
710
check_sigev_none(CLOCK_MONOTONIC, "CLOCK_MONOTONIC");
tools/testing/selftests/timers/posix_timers.c
712
check_gettime(CLOCK_MONOTONIC, "CLOCK_MONOTONIC");
tools/testing/selftests/timers/posix_timers.c
719
check_overrun(CLOCK_MONOTONIC, "CLOCK_MONOTONIC");
tools/testing/selftests/timers/raw_skew.c
76
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/timers/raw_skew.c
78
clock_gettime(CLOCK_MONOTONIC, &end);
tools/testing/selftests/timers/set-timer-lat.c
51
case CLOCK_MONOTONIC:
tools/testing/selftests/timers/threadtest.c
111
clock_gettime(CLOCK_MONOTONIC, &my_list[count]);
tools/testing/selftests/timers/threadtest.c
92
clock_gettime(CLOCK_MONOTONIC, &global_list[listcount++]);
tools/testing/selftests/vDSO/vdso_test_abi.c
290
vdso_test_clock(CLOCK_MONOTONIC);
tools/testing/selftests/vDSO/vdso_test_abi.c
44
[CLOCK_MONOTONIC] = "CLOCK_MONOTONIC",
tools/testing/selftests/vDSO/vdso_test_getrandom.c
180
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/vDSO/vdso_test_getrandom.c
182
clock_gettime(CLOCK_MONOTONIC, &end);
tools/testing/selftests/vDSO/vdso_test_getrandom.c
186
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/vDSO/vdso_test_getrandom.c
188
clock_gettime(CLOCK_MONOTONIC, &end);
tools/testing/selftests/vDSO/vdso_test_getrandom.c
192
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/vDSO/vdso_test_getrandom.c
194
clock_gettime(CLOCK_MONOTONIC, &end);
tools/testing/selftests/vDSO/vdso_test_getrandom.c
204
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/vDSO/vdso_test_getrandom.c
209
clock_gettime(CLOCK_MONOTONIC, &end);
tools/testing/selftests/vDSO/vdso_test_getrandom.c
213
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/vDSO/vdso_test_getrandom.c
218
clock_gettime(CLOCK_MONOTONIC, &end);
tools/testing/selftests/vDSO/vdso_test_getrandom.c
222
clock_gettime(CLOCK_MONOTONIC, &start);
tools/testing/selftests/vDSO/vdso_test_getrandom.c
227
clock_gettime(CLOCK_MONOTONIC, &end);
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
104
clock_gettime(CLOCK_MONOTONIC, &args->start);
tools/testing/selftests/vfio/vfio_pci_device_init_perf_test.c
106
clock_gettime(CLOCK_MONOTONIC, &args->end);
tools/thermal/thermometer/thermometer.c
396
thermometer->tz[i].fd_timer = timerfd_create(CLOCK_MONOTONIC, 0);
tools/thermal/thermometer/thermometer.c
476
fd = timerfd_create(CLOCK_MONOTONIC, 0);
tools/tracing/latency/latency-collector.c
1526
clock_gettime_or_die(CLOCK_MONOTONIC,
tools/tracing/latency/latency-collector.c
1572
clock_gettime_or_die(CLOCK_MONOTONIC, ×tamp);
tools/tracing/latency/latency-collector.c
444
condattr_setclock(&cattr, CLOCK_MONOTONIC);
tools/tracing/latency/latency-collector.c
518
clock_gettime_or_die(CLOCK_MONOTONIC, future);
tools/tracing/latency/latency-collector.c
531
clock_gettime_or_die(CLOCK_MONOTONIC, &now);