Home
last modified time | relevance | path

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

12345678910>>...12

/kernel/linux/linux-5.10/tools/testing/selftests/timens/
Dgettime_perf.c66 test(CLOCK_MONOTONIC, "monotonic", false); in main()
67 test(CLOCK_MONOTONIC_COARSE, "monotonic-coarse", false); in main()
68 test(CLOCK_MONOTONIC_RAW, "monotonic-raw", false); in main()
88 test(CLOCK_MONOTONIC, "monotonic", true); in main()
89 test(CLOCK_MONOTONIC_COARSE, "monotonic-coarse", true); in main()
90 test(CLOCK_MONOTONIC_RAW, "monotonic-raw", true); in main()
/kernel/linux/linux-6.6/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()
/kernel/liteos_a/testsuites/unittest/libc/time/clock/full/
Dclock_test_007.cpp55 /* get current monotonic coarse time */ in ClockTest()
58 …printf("The current monotonic coarse time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nse… in ClockTest()
63 /* set monotonic coarse time */ in ClockTest()
68 printf("get coarse monotonic time clock again\n"); in ClockTest()
70 /* get current monotonic coarse time again */ in ClockTest()
75 …printf("The current monotonic coarse time again: sec is %lld, nsec is %ld\n", tp.tv_sec, tp.tv_nse… in ClockTest()
Dclock_test_009.cpp56 /* get current monotonic raw time */ in ClockTest()
59 … printf("The current monotonic raw time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockTest()
64 /* set monotonic raw time */ in ClockTest()
69 printf("get monotonic raw time clock again\n"); in ClockTest()
71 /* get current monotonic raw time again */ in ClockTest()
76 … printf("The current monotonic raw time again: sec is %lld, nsec is %ld\n", tp.tv_sec, tp.tv_nsec); in ClockTest()
Dclock_test_008.cpp56 /* get current monotonic time */ in ClockTest()
59 printf("The current monotonic time: sec is %lld, nsec is %ld\n", oldtp.tv_sec, oldtp.tv_nsec); in ClockTest()
69 LogPrintln("get monotonic time clock again\n"); in ClockTest()
71 /* get current monotonic time again */ in ClockTest()
76 printf("The current monotonic time: sec is %lld, nsec is %ld\n", tp.tv_sec, tp.tv_nsec); in ClockTest()
/kernel/linux/linux-6.6/include/linux/
Dtimekeeper_internal.h52 * @offs_real: Offset clock monotonic -> clock realtime
53 * @offs_boot: Offset clock monotonic -> clock boottime
54 * @offs_tai: Offset clock monotonic -> clock tai
77 * to get to monotonic time. Monotonic is pegged at zero at system
83 * monotonic time not to jump. We need to add total_sleep_time to
Dtimekeeping.h88 * ktime_get_boottime - Returns monotonic time since boot in ktime_t format
145 * ktime_mono_to_real - Convert monotonic time to clock realtime
228 * @mono: Monotonic timestamp
243 * @raw: Monotonic raw system time
261 * @sys_monoraw: Monotonic raw simultaneous with device time
293 * Simultaneously snapshot realtime and monotonic raw clocks
Dtime_namespace.h15 struct timespec64 monotonic; member
69 *ts = timespec64_add(*ts, ns_offsets->monotonic); in timens_add_monotonic()
/kernel/linux/linux-5.10/include/linux/
Dtimekeeper_internal.h52 * @offs_real: Offset clock monotonic -> clock realtime
53 * @offs_boot: Offset clock monotonic -> clock boottime
54 * @offs_tai: Offset clock monotonic -> clock tai
77 * to get to monotonic time. Monotonic is pegged at zero at system
83 * monotonic time not to jump. We need to add total_sleep_time to
Dtimekeeping.h88 * ktime_get_boottime - Returns monotonic time since boot in ktime_t format
145 * ktime_mono_to_real - Convert monotonic time to clock realtime
227 * @mono: Monotonic timestamp
242 * @raw: Monotonic raw system time
259 * @sys_monoraw: Monotonic raw simultaneous with device time
291 * Simultaneously snapshot realtime and monotonic raw clocks
Dtime_namespace.h16 struct timespec64 monotonic; member
70 *ts = timespec64_add(*ts, ns_offsets->monotonic); in timens_add_monotonic()
/kernel/linux/linux-5.10/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_data() local
188 offset[CLOCK_MONOTONIC] = monotonic; in timens_setup_vdso_data()
189 offset[CLOCK_MONOTONIC_RAW] = monotonic; in timens_setup_vdso_data()
190 offset[CLOCK_MONOTONIC_COARSE] = monotonic; in timens_setup_vdso_data()
343 clock = "monotonic"; in show_offset()
362 show_offset(m, CLOCK_MONOTONIC, &time_ns->offsets.monotonic); in proc_timens_show_offsets()
429 offset = &time_ns->offsets.monotonic; in proc_timens_set_offset()
Dtimekeeping.c410 * update_fast_timekeeper - Update the fast and NMI safe monotonic timekeeper.
442 * ktime_get_mono_fast_ns - Fast NMI safe access to clock monotonic
444 * This timestamp is not guaranteed to be monotonic across an update.
510 * separate timekeeper with updates to monotonic clock and boot offset
573 * Stores clock monotonic, boottime and realtime timestamps.
613 * against the clock monotonic timestamp jumping backwards on resume.
699 /* Convert to monotonic time */ in tk_update_leap_state()
712 * The xtime based monotonic readout is: in tk_update_ktime_data()
714 * The ktime based monotonic readout is: in tk_update_ktime_data()
732 /* Update the monotonic raw base */ in tk_update_ktime_data()
[all …]
/kernel/linux/linux-6.6/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_data() local
188 offset[CLOCK_MONOTONIC] = monotonic; in timens_setup_vdso_data()
189 offset[CLOCK_MONOTONIC_RAW] = monotonic; in timens_setup_vdso_data()
190 offset[CLOCK_MONOTONIC_COARSE] = monotonic; in timens_setup_vdso_data()
356 clock = "monotonic"; in show_offset()
375 show_offset(m, CLOCK_MONOTONIC, &time_ns->offsets.monotonic); in proc_timens_show_offsets()
442 offset = &time_ns->offsets.monotonic; in proc_timens_set_offset()
Dtimekeeping.c402 * update_fast_timekeeper - Update the fast and NMI safe monotonic timekeeper.
459 * ktime_get_mono_fast_ns - Fast NMI safe access to clock monotonic
461 * This timestamp is not guaranteed to be monotonic across an update.
497 * ktime_get_raw_fast_ns - Fast NMI safe access to clock monotonic raw
512 * separate timekeeper with updates to monotonic clock and boot offset
591 * Stores clock monotonic, boottime and realtime timestamps.
631 * against the clock monotonic timestamp jumping backwards on resume.
719 /* Convert to monotonic time */ in tk_update_leap_state()
732 * The xtime based monotonic readout is: in tk_update_ktime_data()
734 * The ktime based monotonic readout is: in tk_update_ktime_data()
[all …]
/kernel/linux/linux-6.6/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()
/kernel/linux/linux-6.6/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()
/kernel/liteos_a/kernel/extended/container/
Dlos_time_container.c137 (VOID)memcpy_s(&timeForChild->monotonic, sizeof(struct timespec64), in OsUnshareTimeContainer()
138 &curr->container->timeContainer->monotonic, sizeof(struct timespec64)); in OsUnshareTimeContainer()
230 …(VOID)memcpy_s(offsets, sizeof(struct timespec64), &timeContainer->monotonic, sizeof(struct timesp… in OsGetTimeContainerMonotonic()
249 timeContainer->monotonic.tv_sec = offsets->tv_sec; in OsSetTimeContainerMonotonic()
250 timeContainer->monotonic.tv_nsec = offsets->tv_nsec; in OsSetTimeContainerMonotonic()
/kernel/linux/linux-6.6/Documentation/gpu/
Ddrm-usage-stats.rst88 Values are not required to be constantly monotonic if it makes the driver
92 value until a monotonic update is seen.
109 Values are not required to be constantly monotonic if it makes the driver
113 value until a monotonic update is seen.
/kernel/linux/linux-5.10/arch/powerpc/include/asm/
Dvdso_datapage.h82 __s32 wtom_clock_nsec; /* Wall to monotonic clock nsec */
83 __s64 wtom_clock_sec; /* Wall to monotonic clock sec */
104 __s32 wtom_clock_sec; /* Wall to monotonic clock */
/kernel/linux/linux-5.10/arch/powerpc/kernel/vdso64/
Dgettimeofday.S80 bne cr1,80f /* if not monotonic, all done */
86 /* now we must fixup using wall to monotonic. We need to snapshot
139 * sec and nsec if monotonic coarse, or just return with the proper
144 /* Add wall->monotonic offset and check for overflow or underflow */
/kernel/liteos_a/kernel/base/include/
Dlos_time_container_pri.h43 struct timespec64 monotonic; member
67 #define CLOCK_MONOTONIC_TIME_BASE (OsGetCurrTimeContainer()->monotonic)
/kernel/linux/linux-6.6/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
/kernel/linux/linux-5.10/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.

12345678910>>...12