| /kernel/linux/linux-5.10/tools/testing/selftests/timens/ |
| D | gettime_perf.c | 66 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/ |
| D | gettime_perf.c | 74 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/ |
| D | clock_test_007.cpp | 55 /* 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()
|
| D | clock_test_009.cpp | 56 /* 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()
|
| D | clock_test_008.cpp | 56 /* 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/ |
| D | timekeeper_internal.h | 52 * @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
|
| D | timekeeping.h | 88 * 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
|
| D | time_namespace.h | 15 struct timespec64 monotonic; member 69 *ts = timespec64_add(*ts, ns_offsets->monotonic); in timens_add_monotonic()
|
| /kernel/linux/linux-5.10/include/linux/ |
| D | timekeeper_internal.h | 52 * @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
|
| D | timekeeping.h | 88 * 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
|
| D | time_namespace.h | 16 struct timespec64 monotonic; member 70 *ts = timespec64_add(*ts, ns_offsets->monotonic); in timens_add_monotonic()
|
| /kernel/linux/linux-5.10/kernel/time/ |
| D | namespace.c | 30 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()
|
| D | timekeeping.c | 410 * 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/ |
| D | namespace.c | 30 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()
|
| D | timekeeping.c | 402 * 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/ |
| D | proc-uptime-001.c | 44 /* Is /proc/uptime monotonic ? */ in main() 47 /* Is CLOCK_BOOTTIME monotonic ? */ in main() 50 /* Is CLOCK_BOOTTIME VS /proc/uptime monotonic ? */ in main()
|
| D | proc-uptime-002.c | 78 /* 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/ |
| D | futex_wait_timeout.c | 156 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/ |
| D | los_time_container.c | 137 (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/ |
| D | drm-usage-stats.rst | 88 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/ |
| D | vdso_datapage.h | 82 __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/ |
| D | gettimeofday.S | 80 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/ |
| D | los_time_container_pri.h | 43 struct timespec64 monotonic; member 67 #define CLOCK_MONOTONIC_TIME_BASE (OsGetCurrTimeContainer()->monotonic)
|
| /kernel/linux/linux-6.6/Documentation/ABI/testing/ |
| D | sysfs-driver-ccp | 50 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/ |
| D | timekeeping.rst | 30 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.
|