From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753076AbbDMIbj (ORCPT ); Mon, 13 Apr 2015 04:31:39 -0400 Received: from mail-wi0-f175.google.com ([209.85.212.175]:33661 "EHLO mail-wi0-f175.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751708AbbDMIbe (ORCPT ); Mon, 13 Apr 2015 04:31:34 -0400 Message-ID: <552B7EE2.1090005@monom.org> Date: Mon, 13 Apr 2015 10:31:30 +0200 From: Daniel Wagner User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Steven Rostedt , Carsten Emde CC: Daniel Wagner , linux-rt-users@vger.kernel.org, Jon Masters , Sebastian Andrzej Siewior , linux-kernel@vger.kernel.org, Tom Zanussi Subject: Re: [PATCH] hwlat_detector: Detect hardware-induced latencies References: <1428508021-28166-1-git-send-email-daniel.wagner@bmw-carit.de> <20150408123550.7dbd61b4@gandalf.local.home> <5526458E.5050202@bmw-carit.de> <552682A4.4000309@osadl.org> <20150409101037.4dd0837a@gandalf.local.home> In-Reply-To: <20150409101037.4dd0837a@gandalf.local.home> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On 04/09/2015 04:10 PM, Steven Rostedt wrote: > On Thu, 09 Apr 2015 15:46:12 +0200 > Carsten Emde wrote: > >> Hi Daniel, >> >>> BTW, are you also taking care of the latency-hist.patch patch? >> I do. >> >> However, the request (and the challenge) is not to simply rewrite the >> code. The idea is to provide a general histogram framework that can be >> used from anywhere in the kernel and to equip it with everything needed >> by the existing histograms. This framework should no longer be part of >> the RT patches but submitted directly to mainline Linux. In a second >> step, we will then rewrite the existing histogram code to use the new >> framework. >> >> Any help is greatly appreciated! I'll start poking around then :) > Hmm, Currently Tom Zanussi is working on a hist trigger for tracing. > Not sure it can be used here, but perhaps ideas can be spawned. > > http://marc.info/?l=linux-kernel&m=142807630917288 >>From a quick look, it should be possible to add on top of those patches the two TRACE_EVENTs (preemptirqsoff_hist, hrtimer_interrupt), annotate start_critical_*() & and friends (from latency-hist.patch). I'll try that and see what explodes. cheers, daniel