From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jon Masters Subject: Re: [PATCH RT] hwlat_detector: Check the outer side of the loop Date: Wed, 12 Sep 2012 10:57:28 -0400 Message-ID: <5050A2D8.7080908@redhat.com> References: <1347460451.10751.57.camel@gandalf.local.home> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit Cc: LKML , RT , Thomas Gleixner , Darren Hart , Clark Williams To: Steven Rostedt Return-path: In-Reply-To: <1347460451.10751.57.camel@gandalf.local.home> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-rt-users.vger.kernel.org On 09/12/2012 10:34 AM, Steven Rostedt wrote: > The hwlat_detector performs the following test: > > t1 = ktime_get(); > t2 = ktime_get(); > > [ do the checks of t2 - t1 ] > > It can detect things like SMIs if it occurs between the t1 and t2 > timestamps, as there will be a large difference between the two. Oops. Good catch. Jon.