Re: [PATCH 4/4] kvm: x86: export TSC offset to user-space

From: Luiz Capitulino
Date: Fri Sep 02 2016 - 12:29:27 EST


On Fri, 2 Sep 2016 12:26:55 -0400
Luiz Capitulino <lcapitulino@xxxxxxxxxx> wrote:

> I guess that what tools like trace-cmd want to do in those cases
> is to warn the user and discard the trace. A simple way of doing
> this would be to re-check that the TSC offset are the same after
> tracing is done. It could also use inotify, in case it works
> for debugfs (never tried it myself).

The second idea was probably stupid, never mind me :)