Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753520AbbEABwM (ORCPT ); Thu, 30 Apr 2015 21:52:12 -0400 Received: from mga09.intel.com ([134.134.136.24]:50818 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750966AbbEABwJ (ORCPT ); Thu, 30 Apr 2015 21:52:09 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.13,348,1427785200"; d="scan'208";a="688342799" Message-ID: <1430445124.17922.12.camel@picadillo> Subject: Re: [RFD 0/5] Add latency histogram From: Tom Zanussi To: Daniel Wagner Cc: Steven Rostedt , Ingo Molnar , Carsten Emde , linux-rt-users@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 30 Apr 2015 20:52:04 -0500 In-Reply-To: <1430388385-29558-1-git-send-email-daniel.wagner@bmw-carit.de> References: <1430388385-29558-1-git-send-email-daniel.wagner@bmw-carit.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.10.4 (3.10.4-4.fc20) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2337 Lines: 61 Hi Daniel, On Thu, 2015-04-30 at 12:06 +0200, Daniel Wagner wrote: > Hi, > > I would like to discuss a possible way of getting the feature of the > latecy_hist.patch [1] added to mainline. > > "Latency histograms are primarily relevant in the context of real-time > enabled kernels (CONFIG_PREEMPT/CONFIG_PREEMPT_RT)and are used in the > quality management of the Linux real-time capabilities." > > Steven pointed out that this might be doable based on Tom Zanussi's > "[PATCH v4 0/7] tracing: 'hist' triggers" [2]. > > Here are my findings. It was not too complicated to get it working, > though I had to add some hacks. I have added comments to each patch. > It looks like you were able to do quite a bit here with not much code - nice! Just FYI, I'll be working on a v5 of the hist triggers patchset that will incorporate the stuff from patch 1 (needs to be split into a separate patch for the triggers code already upstream, and one for hist triggers) and your comments from patch 2 (see comments in my reply to that patch), along with a couple other unrelated changes... Tom > cheers, > daniel > > [2] https://lkml.org/lkml/2015/4/10/591 > [1] https://git.kernel.org/cgit/linux/kernel/git/rt/linux-stable-rt.git/commit/?h=v3.14-rt-rebase&id=56d50cc34943bbba12b8c5942ee1ae3b29f73acb > > Daniel Wagner (4): > tracing: Add support to sort on the key > tracing: Add option to quantize key values > tracing: Deference pointers without RCU checks > tracing: Add trace_irqsoff tracepoints > > Tom Zanussi (1): > tracing: 'hist' triggers > > include/linux/rculist.h | 36 +++++++++++++++++++++++++++++ > include/linux/tracepoint.h | 4 ++-- > include/trace/events/latency.h | 40 ++++++++++++++++++++++++++++++++ > kernel/trace/trace_events_hist.c | 46 +++++++++++++++++++++++++++++++++---- > kernel/trace/trace_events_trigger.c | 18 +++++++++------ > kernel/trace/trace_irqsoff.c | 38 ++++++++++++++++++++++++++++++ > 6 files changed, 168 insertions(+), 14 deletions(-) > create mode 100644 include/trace/events/latency.h > -- 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/