Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754076AbdIDXel (ORCPT ); Mon, 4 Sep 2017 19:34:41 -0400 Received: from mail.kernel.org ([198.145.29.99]:33290 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754014AbdIDXej (ORCPT ); Mon, 4 Sep 2017 19:34:39 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 200F421BB9 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=goodmis.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=rostedt@goodmis.org Date: Mon, 4 Sep 2017 19:34:36 -0400 From: Steven Rostedt To: Peter Zijlstra Cc: Joel Fernandes , LKML , kernel-team@android.com, Ingo Molnar , Byungchul Park , Tejun Heo Subject: Re: [PATCH 2/2] tracing: Add support for critical section events Message-ID: <20170904193436.4a37fae4@gandalf.local.home> In-Reply-To: <20170904194426.GD17526@worktop.programming.kicks-ass.net> References: <20170903085051.6348-1-joelaf@google.com> <20170903085051.6348-3-joelaf@google.com> <20170904075614.bjkkrgyv2dpz7x5v@hirez.programming.kicks-ass.net> <20170904194426.GD17526@worktop.programming.kicks-ass.net> X-Mailer: Claws Mail 3.14.0 (GTK+ 2.24.31; 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: 867 Lines: 21 On Mon, 4 Sep 2017 21:44:26 +0200 Peter Zijlstra wrote: > > I can change the name to something else, but at the moment I can't > > think of anything better. Could you suggest a better name? Also btw, > > 'critical timings' is the terminology used within the irqsoff tracer > > so this is in line with that. > > So 'critical section' is what some mis-guided people call the locked > region of a lock :-) Using it for something else is prone to cause more > confusion... > > I would simply call them what they are: irq_disable,irq_enable > preempt_disable,preempt_enable. Yes please. The "critical section" naming came from the code that was from the latency tracer days of the real time patch (pre-ftrace). The irqsoff tracer has the least modification from the original code, and probably should be rewritten one of these days. -- Steve