Home
last modified time | relevance | path

Searched full:monotonic (Results 1 – 25 of 163) sorted by relevance

1234567

/linux-6.15/include/linux/
Dtimekeeping.h96 * ktime_get_boottime - Get monotonic time since boot in ktime_t format
101 * Returns: monotonic time since boot in ktime_t format
157 * ktime_mono_to_real - Convert monotonic time to clock realtime
158 * @mono: monotonic time to convert
188 * ktime_get_boottime_ns - Get the monotonic time since boot in nanoseconds
208 * ktime_get_raw_ns - Get the raw monotonic time in nanoseconds
210 * Returns: current raw monotonic time converted to nanoseconds
272 * @raw: Monotonic raw system time
292 * @sys_monoraw: Monotonic raw simultaneous with device time
332 * Simultaneously snapshot realtime and monotonic raw clocks
Dtimekeeper_internal.h51 * @offs_real: Offset clock monotonic -> clock realtime
52 * @offs_boot: Offset clock monotonic -> clock boottime
53 * @offs_tai: Offset clock monotonic -> clock tai
83 * to get to monotonic time. Monotonic is pegged at zero at system
89 * monotonic time not to jump. We need to add total_sleep_time to
Dtime_namespace.h18 struct timespec64 monotonic; member
72 *ts = timespec64_add(*ts, ns_offsets->monotonic); in timens_add_monotonic()
Dtrace_clock.h11 * - global: globally monotonic, serialized clock
/linux-6.15/tools/testing/selftests/timens/
Dgettime_perf.c74 test(CLOCK_MONOTONIC, "monotonic", false); in main()
75 test(CLOCK_MONOTONIC_COARSE, "monotonic-coarse", false); in main()
76 test(CLOCK_MONOTONIC_RAW, "monotonic-raw", false); in main()
96 test(CLOCK_MONOTONIC, "monotonic", true); in main()
97 test(CLOCK_MONOTONIC_COARSE, "monotonic-coarse", true); in main()
98 test(CLOCK_MONOTONIC_RAW, "monotonic-raw", true); in main()
/linux-6.15/kernel/time/
Dnamespace.c30 offset = timespec64_to_ktime(ns_offsets->monotonic); in do_timens_ktime_to_host()
183 struct timens_offset monotonic = offset_from_ts(ns->offsets.monotonic); in timens_setup_vdso_clock_data() local
188 offset[CLOCK_MONOTONIC] = monotonic; in timens_setup_vdso_clock_data()
189 offset[CLOCK_MONOTONIC_RAW] = monotonic; in timens_setup_vdso_clock_data()
190 offset[CLOCK_MONOTONIC_COARSE] = monotonic; in timens_setup_vdso_clock_data()
358 clock = "monotonic"; in show_offset()
377 show_offset(m, CLOCK_MONOTONIC, &time_ns->offsets.monotonic); in proc_timens_show_offsets()
444 offset = &time_ns->offsets.monotonic; in proc_timens_set_offset()
Dtimekeeping.c135 * a file timestamp on the system. This is tracked as a monotonic ktime_t, and
364 * update_fast_timekeeper - Update the fast and NMI safe monotonic timekeeper.
415 * ktime_get_mono_fast_ns - Fast NMI safe access to clock monotonic
417 * This timestamp is not guaranteed to be monotonic across an update.
453 * ktime_get_raw_fast_ns - Fast NMI safe access to clock monotonic raw
468 * separate timekeeper with updates to monotonic clock and boot offset
606 /* Convert to monotonic time */ in tk_update_leap_state()
631 * The xtime based monotonic readout is: in tk_update_ktime_data()
633 * The ktime based monotonic readout is: in tk_update_ktime_data()
651 /* Update the monotonic raw base */ in tk_update_ktime_data()
[all …]
/linux-6.15/rust/kernel/
Dtime.rs93 /// purpose. In most scenarios clock [`ClockId::Monotonic`] is the best choice as it
94 /// provides a accurate monotonic notion of time (leap second smearing ignored).
115 /// A nonsettable system-wide clock that represents monotonic time since—as
124 Monotonic = bindings::CLOCK_MONOTONIC, enumerator
125 /// A monotonic that ticks while system is suspended.
129 /// allows applications to get a suspend-aware monotonic clock without
/linux-6.15/tools/testing/selftests/proc/
Dproc-uptime-001.c44 /* Is /proc/uptime monotonic ? */ in main()
47 /* Is CLOCK_BOOTTIME monotonic ? */ in main()
50 /* Is CLOCK_BOOTTIME VS /proc/uptime monotonic ? */ in main()
Dproc-uptime-002.c78 /* Is /proc/uptime monotonic ? */ in main()
81 /* Is CLOCK_BOOTTIME monotonic ? */ in main()
84 /* Is CLOCK_BOOTTIME VS /proc/uptime monotonic ? */ in main()
/linux-6.15/tools/testing/selftests/futex/functional/
Dfutex_wait_timeout.c156 test_timeout(res, &ret, "futex_wait_bitset monotonic", ETIMEDOUT); in main()
168 test_timeout(res, &ret, "futex_wait_requeue_pi monotonic", ETIMEDOUT); in main()
178 * If you call FUTEX_LOCK_PI with a monotonic clock, it'll be in main()
180 * time or your time machine) the monotonic clock value is always in main()
196 test_timeout(res, &ret, "futex_waitv monotonic", ETIMEDOUT); in main()
/linux-6.15/tools/testing/selftests/ptp/
Dtestptp.c150 " -y val pre/post tstamp timebase to use {realtime|monotonic|monotonic-raw}\n" in usage()
291 else if (!strcasecmp(optarg, "monotonic")) in main()
293 else if (!strcasecmp(optarg, "monotonic-raw")) in main()
297 "type needs to be realtime, monotonic or monotonic-raw; was given %s\n", in main()
611 printf("sample #%2d: monotonic time before: %lld.%09u\n", in main()
616 printf("sample #%2d: monotonic-raw time before: %lld.%09u\n", in main()
632 printf(" monotonic time after: %lld.%09u\n", in main()
637 printf(" monotonic-raw time after: %lld.%09u\n", in main()
/linux-6.15/Documentation/gpu/
Ddrm-usage-stats.rst96 Values are not required to be constantly monotonic if it makes the driver
100 value until a monotonic update is seen.
117 Values are not required to be constantly monotonic if it makes the driver
121 value until a monotonic update is seen.
/linux-6.15/Documentation/ABI/testing/
Dsysfs-driver-ccp50 whether Replay Protected Monotonic Counter support has been enabled.
61 whether an Replay Protected Monotonic Counter supported SPI is installed
/linux-6.15/tools/usb/
Dp9_fwd.py50 self.stats_logged = time.monotonic()
158 if (time.monotonic() - self.stats_logged) < interval:
162 self.stats_logged = time.monotonic()
/linux-6.15/Documentation/timers/
Dtimekeeping.rst30 Typically the clock source is a monotonic, atomic counter which will provide
82 remains monotonic.
127 characteristics as the clock source, i.e. it should be monotonic.
/linux-6.15/arch/mips/bcm63xx/
Dtimer.c151 int bcm63xx_timer_set(int id, int monotonic, unsigned int countdown_us) in bcm63xx_timer_set() argument
166 if (monotonic) in bcm63xx_timer_set()
/linux-6.15/kernel/trace/
Dtrace_clock.c12 * - global: globally monotonic, serialized clock
109 * that the same CPU will always show a monotonic clock. in trace_clock_global()
/linux-6.15/drivers/rtc/
Drtc-imxdi.c47 #define DCR_MCHL (1 << 20) /* Monotonic-counter hard lock */
48 #define DCR_MCSL (1 << 19) /* Monotonic-counter soft lock */
53 #define DCR_MCE (1 << 2) /* Monotonic Counter Enable */
69 #define DSR_MCO (1 << 3) /* monotonic counter overflow */
81 #define DMCR 0x1c /* DryIce Monotonic Counter Reg */
84 #define DTCR_MOE (1 << 9) /* monotonic overflow enabled */
149 * - monotonic counter overflow
/linux-6.15/arch/mips/include/asm/mach-bcm63xx/
Dbcm63xx_timer.h7 int bcm63xx_timer_set(int id, int monotonic, unsigned int countdown_us);
/linux-6.15/tools/testing/selftests/net/lib/py/
Dksft.py113 end = time.monotonic() + deadline
117 if time.monotonic() > end:
Dutils.py198 end = time.monotonic() + deadline
210 if time.monotonic() > end:
/linux-6.15/tools/arch/mips/include/uapi/asm/
Dkvm.h134 * CP0_Count resume monotonic nanoseconds
135 * The monotonic nanosecond time of the last set of COUNT_CTL.DC (master
/linux-6.15/kernel/sched/
Dclock.c19 * is monotonic for constant i. The timestamp returned is in nanoseconds.
44 * - GTOD (clock monotonic)
362 * runqueues. (this creates monotonic movement) in sched_clock_remote()
/linux-6.15/drivers/clk/rockchip/
Dclk-mmc-phase.c105 * actually go non-monotonic. We don't go _too_ monotonic in rockchip_mmc_set_phase()

1234567