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, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content