From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932935AbeD0QWG (ORCPT ); Fri, 27 Apr 2018 12:22:06 -0400 Received: from mail.kernel.org ([198.145.29.99]:52334 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932802AbeD0QWF (ORCPT ); Fri, 27 Apr 2018 12:22:05 -0400 DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org D3B8D218C9 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: Fri, 27 Apr 2018 12:22:01 -0400 From: Steven Rostedt To: Joel Fernandes Cc: Paul McKenney , LKML , Peter Zilstra , Ingo Molnar , Mathieu Desnoyers , Tom Zanussi , Namhyung Kim , Thomas Glexiner , Boqun Feng , Frederic Weisbecker , Randy Dunlap , Masami Hiramatsu , Fenguang Wu , Baohong Liu , Vedang Patel , "Cc: Android Kernel" Subject: Re: [PATCH RFC] tracepoint: Introduce tracepoint callbacks executing with preempt on Message-ID: <20180427122201.75abc313@gandalf.local.home> In-Reply-To: References: <20180427042656.190746-1-joelaf@google.com> <20180427155701.GL26088@linux.vnet.ibm.com> X-Mailer: Claws Mail 3.16.0 (GTK+ 2.24.32; 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 On Fri, 27 Apr 2018 09:14:30 -0700 Joel Fernandes wrote: > > Hmmm... Do I need to create a _notrace variant of srcu_read_lock() > > and srcu_read_unlock()? > > That shouldn't be needed. For the rcu_read_lock_sched case, there is a > preempt_disable which needs to be a notrace, but for the srcu one, > since we don't do that, I think it should be fine. Actually, I think I may agree here too. Because the _notrace is for function tracing, and it shouldn't affect it. If people don't want it traced, they could add those functions to the list in the notrace file. -- Steve