How should a RHEL 6.* kernel module in a KVM guest get a monotonically increasing high resolution timestamp

Solution Verified - Updated -

Issue

  • IN RHEL 5, the function call
monotonic_clock()

was available to get a monotonically increasing high resolution timestamp in a KVM virtual machine.

  • However, that is no longer available in RHEL 6. How does one achieve this same functionality for kernel modules in RHEL 6?

Environment

  • RHEL 6
  • KVM virtual machine running RHEL

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.