[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Minios-devel] [UNIKRAFT PATCH 0/7] Expose wallclock time



There was already wallclock time support in varying stages of completeness
for different architectures and platforms, but no way to access it from your
application via standard library functions. This patch implements wallclock
support for linuxu, kvm (x86_64) and Xen (x86_64), as well as gettimeofday()
and clock_gettime() in nolibc.

The Arm architecture implementations don't have wallclock time support yet,
so for the time being, wallclock time returns monotonic time (time since
boot) instead on those architectures.

Florian Schmidt (7):
  plat/kvm: Rename ukplat_clock_wall() to ukplat_wall_clock()
  plat/linuxu: Implement ukplat_wall_clock()
  plat/xen: Implement ukplat_wall_clock() for x86
  plat/xen: Dummy implementation of ukplat_wall_clock() for arm32
  plat: Add declaration of ukplat_wall_clock() to time.h
  lib/nolibc: Implement gettimeofday()
  lib/nolibc: Implement clock_gettime()

 include/uk/plat/time.h                        |  1 +
 lib/nolibc/exportsyms.uk                      |  4 ++
 .../include/nolibc-internal/shareddefs.h      |  5 +++
 lib/nolibc/include/sys/time.h                 |  1 -
 lib/nolibc/include/sys/types.h                |  1 +
 lib/nolibc/include/time.h                     |  7 ++++
 lib/nolibc/time.c                             | 41 +++++++++++++++++++
 plat/common/arm/time.c                        |  2 +-
 plat/kvm/x86/time.c                           |  2 +-
 plat/linuxu/time.c                            | 16 ++++++++
 plat/xen/arm/arch_time.c                      |  6 +++
 plat/xen/x86/arch_time.c                      | 22 +++-------
 12 files changed, 89 insertions(+), 19 deletions(-)

-- 
2.20.1


_______________________________________________
Minios-devel mailing list
Minios-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/minios-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.