Searched refs:gtod (Results 1 – 7 of 7) sorted by relevance
/Linux-v5.4/tools/testing/selftests/vDSO/ |
D | vdso_test.c | 49 gtod_t gtod = (gtod_t)vdso_sym(version, name); in main() local 51 if (!gtod) { in main() 57 long ret = gtod(&tv, 0); in main()
|
D | vdso_standalone_test_x86.c | 91 gtod_t gtod = (gtod_t)vdso_sym("LINUX_2.6", "__vdso_gettimeofday"); in c_main() local 93 if (!gtod) in c_main() 97 long ret = gtod(&tv, 0); in c_main()
|
/Linux-v5.4/kernel/sched/ |
D | clock.c | 267 u64 now, clock, old_clock, min_clock, max_clock, gtod; in sched_clock_local() local 284 gtod = scd->tick_gtod + __gtod_offset; in sched_clock_local() 285 clock = gtod + delta; in sched_clock_local() 286 min_clock = wrap_max(gtod, old_clock); in sched_clock_local() 287 max_clock = wrap_max(old_clock, gtod + TICK_NSEC); in sched_clock_local()
|
/Linux-v5.4/arch/s390/kvm/ |
D | kvm-s390.c | 1089 struct kvm_s390_vm_tod_clock gtod; in kvm_s390_set_tod_ext() local 1091 if (copy_from_user(>od, (void __user *)attr->addr, sizeof(gtod))) in kvm_s390_set_tod_ext() 1094 if (!test_kvm_facility(kvm, 139) && gtod.epoch_idx) in kvm_s390_set_tod_ext() 1096 kvm_s390_set_tod_clock(kvm, >od); in kvm_s390_set_tod_ext() 1099 gtod.epoch_idx, gtod.tod); in kvm_s390_set_tod_ext() 1121 struct kvm_s390_vm_tod_clock gtod = { 0 }; in kvm_s390_set_tod_low() local 1123 if (copy_from_user(>od.tod, (void __user *)attr->addr, in kvm_s390_set_tod_low() 1124 sizeof(gtod.tod))) in kvm_s390_set_tod_low() 1127 kvm_s390_set_tod_clock(kvm, >od); in kvm_s390_set_tod_low() 1128 VM_EVENT(kvm, 3, "SET: TOD base: 0x%llx", gtod.tod); in kvm_s390_set_tod_low() [all …]
|
D | priv.c | 88 struct kvm_s390_vm_tod_clock gtod = { 0 }; in handle_set_clock() local 101 rc = read_guest(vcpu, op2, ar, >od.tod, sizeof(gtod.tod)); in handle_set_clock() 105 VCPU_EVENT(vcpu, 3, "SCK: setting guest TOD to 0x%llx", gtod.tod); in handle_set_clock() 106 kvm_s390_set_tod_clock(vcpu->kvm, >od); in handle_set_clock()
|
D | kvm-s390.h | 285 const struct kvm_s390_vm_tod_clock *gtod);
|
/Linux-v5.4/arch/x86/kvm/ |
D | x86.c | 1785 struct pvclock_gtod_data *gtod = &pvclock_gtod_data; in kvm_track_tsc_matching() local 1799 (gtod_is_based_on_tsc(gtod->clock.vclock_mode) && vcpus_matched)) in kvm_track_tsc_matching() 1804 ka->use_master_clock, gtod->clock.vclock_mode); in kvm_track_tsc_matching() 2021 struct pvclock_gtod_data *gtod = &pvclock_gtod_data; in vgettsc() local 2024 switch (gtod->clock.vclock_mode) { in vgettsc() 2031 v = (tsc_pg_val - gtod->clock.cycle_last) & in vgettsc() 2032 gtod->clock.mask; in vgettsc() 2041 v = (*tsc_timestamp - gtod->clock.cycle_last) & in vgettsc() 2042 gtod->clock.mask; in vgettsc() 2051 return v * gtod->clock.mult; in vgettsc() [all …]
|