Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754619AbbDHQf5 (ORCPT ); Wed, 8 Apr 2015 12:35:57 -0400 Received: from smtprelay0054.hostedemail.com ([216.40.44.54]:35917 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753129AbbDHQf4 (ORCPT ); Wed, 8 Apr 2015 12:35:56 -0400 X-Session-Marker: 726F737465647440676F6F646D69732E6F7267 X-Spam-Summary: 50,0,0,,d41d8cd98f00b204,rostedt@goodmis.org,:::::::::::::,RULES_HIT:41:355:379:541:599:800:960:967:973:979:988:989:1260:1263:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1542:1593:1594:1711:1730:1747:1777:1792:2194:2199:2376:2393:2525:2538:2553:2560:2563:2682:2685:2693:2741:2859:2895:2902:2904:2912:2924:2926:2933:2937:2939:2942:2945:2947:2951:2954:3022:3138:3139:3140:3141:3142:3354:3622:3865:3866:3867:3868:3870:3871:3872:3873:3874:3934:3936:3938:3941:3944:3947:3950:3953:3956:3959:4043:4184:4250:4383:5007:6117:6261:7875:7903:8599:9025:9388:10004:10400:10450:10455:10848:10967:11232:11658:11914:12043:12219:12296:12517:12519:12555:12663:12740:12776:13161:13229:14096:14097:14106:19904:19999:21060:21080,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:none,Custom_rules:0:0:0 X-HE-Tag: game57_8a70e87008511 X-Filterd-Recvd-Size: 3112 Date: Wed, 8 Apr 2015 12:35:50 -0400 From: Steven Rostedt To: Daniel Wagner Cc: linux-rt-users@vger.kernel.org, Jon Masters , Carsten Emde , Sebastian Andrzej Siewior , Mike Galbraith , linux-kernel@vger.kernel.org Subject: Re: [PATCH] hwlat_detector: Detect hardware-induced latencies Message-ID: <20150408123550.7dbd61b4@gandalf.local.home> In-Reply-To: <1428508021-28166-1-git-send-email-daniel.wagner@bmw-carit.de> References: <1428508021-28166-1-git-send-email-daniel.wagner@bmw-carit.de> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2287 Lines: 54 On Wed, 08 Apr 2015 12:28:34 -0400 Daniel Wagner wrote: > A simple hardware latency detector. Use this module to detect large > latencies introduced by the behavior of the underlying system firmware > external to Linux. The hardware latency detector works by disabling > interrupts while running a tight loop taking timestams and measure for > unexplainable gaps in the CPU timestamp counter(s). Any gap indicates > a time when the polling was interrupted and interrupts turned off the > only thing that could do that would be an SMI. > > By default, the module is not enabled until the "enable" file within > the "hwlat_detector" debugfs directory is toggled. > > Jon Masters developed this wonderful SMI detector. For details please > consult Documentation/hwlat_detector.txt. > > [dw: rewrote everything except the detector itself (sample_get()] > > Signed-off-by: Daniel Wagner > Cc: Jon Masters > Cc: Carsten Emde > Cc: Steven Rostedt > Cc: Sebastian Andrzej Siewior > Cc: Mike Galbraith > Cc: linux-kernel@vger.kernel.org > Cc; linux-rt-users@vger.kernel.org > > Link: http://www.spinics.net/lists/linux-rt-users/msg10350.html > --- > Hi, > > Here is my attempt to rewritte hwlat_detector. Most of the code is a > new except the detection routine itself. With some luck I didn't break > it. I hope I updated the documentation correctly and also added all > the credits. > > @Carsten, I haven't found your original post of the hwlatdetect.patch > patch. I assume you have written most of the documentation. I guess > should be also added as copyright holder. > Funny you are working on this. I'm actually working on porting the hwlat_detector to ftrace as a tracer and removing it as a module. It will be similar to the irqsoff tracer, although it wont be doing "latency" tests. It will just report the output to the ring buffer as the other tracers do. -- Steve -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/