From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932713AbcIBQ3W (ORCPT ); Fri, 2 Sep 2016 12:29:22 -0400 Received: from mx1.redhat.com ([209.132.183.28]:54592 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932464AbcIBQ3V (ORCPT ); Fri, 2 Sep 2016 12:29:21 -0400 Date: Fri, 2 Sep 2016 12:29:19 -0400 From: Luiz Capitulino To: Stefan Hajnoczi Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, pbonzini@redhat.com, rkrcmar@redhat.com, rostedt@goodmis.org, mhiramat@kernel.org, mtosatti@redhat.com Subject: Re: [PATCH 4/4] kvm: x86: export TSC offset to user-space Message-ID: <20160902122919.379ea6b8@redhat.com> In-Reply-To: <20160902122655.0b5d3fe5@redhat.com> References: <1472663145-1835-1-git-send-email-lcapitulino@redhat.com> <1472663145-1835-5-git-send-email-lcapitulino@redhat.com> <20160902134301.GC21771@stefanha-x1.localdomain> <20160902122655.0b5d3fe5@redhat.com> Organization: Red Hat MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 02 Sep 2016 16:29:21 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 2 Sep 2016 12:26:55 -0400 Luiz Capitulino 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 :)