Received: by 10.192.165.148 with SMTP id m20csp3888891imm; Mon, 23 Apr 2018 14:24:47 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+xdlEMQukQ7xVumQG4MOlSlBC1ETnLe7DX9pIw05H9rU7z4oz2WgYgEwopgJRL49/CQhSg X-Received: by 2002:a17:902:bd41:: with SMTP id b1-v6mr21800476plx.302.1524518687524; Mon, 23 Apr 2018 14:24:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524518687; cv=none; d=google.com; s=arc-20160816; b=cFxFY3ZrwA7OUd2oXhafM8DkRGR39FgkNkd81f/Jy/uAWGWI67ziK7RcDfNv0/yurI fD6fb8ZoDHAAmBUWJFFehJBoPDw4iIl2sNHYb2Os3ENfzaAjdRE7etzPb89lht4TMa4i kjgB8wvRxWu6bAOWretIiqu2TSgtm8I61Irw5OPu+Y5K6zHr6UxQHhLWPUMlcXFb0VGd sQMXkdip/emeFqhMmisoL50aVRF5/nf1pPb3LCPbpLIsgcG5HIhJsUUH1ZabglxbMAk0 RviLJdFTC70guJTrvPvhYp+JM2WUW3wl/Z7I8c3GRNVFlaVmYOpsRkR7YT9PGKv0tw+v zb8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dmarc-filter:arc-authentication-results; bh=DBDRc2talnPz/XF2ia8BiQkSsFMaRegKD4quj8sxP4I=; b=ull/AjSI6woPTlQvaRczNyUFZYGwt9RL2CuPtVrbNv+7jTEMxMTUldiDh2smMsL1XH nqMjy7Lc+RdOzZoxL26C4bqFU5e4Wy2afjEKWYucJy5FuDuZXzTqbAZ2oxW+dstBdYKo 9KNXFdpYODVkRAYKHAlNB4qxgThAWS10ogN6rDVKrgajaUWQ4NKL7IoPhowU8lD/R7Eb tXWuSfnM3la3cRSul52zZhbMlCV1Gql6pAfmwwmmyLv8Bwy3OG5n9RjBu4w00LWeUn8I VsMQ/kfxi92doHm4Z7f3dGAvluyl6nRomSJTG19yoz2xILmo9Z66IrjpgviMadcl9E6y 7hnQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b14-v6si12219926pll.116.2018.04.23.14.24.32; Mon, 23 Apr 2018 14:24:47 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932410AbeDWVWx (ORCPT + 99 others); Mon, 23 Apr 2018 17:22:53 -0400 Received: from mail.kernel.org ([198.145.29.99]:51964 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932191AbeDWVWs (ORCPT ); Mon, 23 Apr 2018 17:22:48 -0400 Received: from gandalf.local.home (cpe-66-24-56-78.stny.res.rr.com [66.24.56.78]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 6625321782; Mon, 23 Apr 2018 21:22:46 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6625321782 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, 23 Apr 2018 17:22:44 -0400 From: Steven Rostedt To: Mathieu Desnoyers Cc: "Paul E. McKenney" , Joel Fernandes , Namhyung Kim , Masami Hiramatsu , linux-kernel , linux-rt-users , Peter Zijlstra , Ingo Molnar , Tom Zanussi , Thomas Gleixner , Boqun Feng , fweisbec , Randy Dunlap , kbuild test robot , baohong liu , vedang patel , kernel-team Subject: Re: [RFC v4 3/4] irqflags: Avoid unnecessary calls to trace_ if you can Message-ID: <20180423172244.694dbc9d@gandalf.local.home> In-Reply-To: <1212130312.14753.1524503541789.JavaMail.zimbra@efficios.com> References: <20180417040748.212236-1-joelaf@google.com> <20180423031926.GF26088@linux.vnet.ibm.com> <409016827.14587.1524493888181.JavaMail.zimbra@efficios.com> <20180423105325.7d5d245b@gandalf.local.home> <1045420715.14686.1524495583859.JavaMail.zimbra@efficios.com> <20180423121800.47b173af@gandalf.local.home> <1212130312.14753.1524503541789.JavaMail.zimbra@efficios.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 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 23 Apr 2018 13:12:21 -0400 (EDT) Mathieu Desnoyers wrote: > I'm inclined to explicitly declare the tracepoints with their given > synchronization method. Tracepoint probe callback functions for currently > existing tracepoints expect to have preemption disabled when invoked. > This assumption will not be true anymore for srcu-tracepoints. Actually, why not have a flag attached to the tracepoint_func that states if it expects preemption to be enabled or not? If a trace_##event##_srcu() is called, then simply disable preemption before calling the callbacks for it. That way if a callback is fine for use with srcu, then it would require calling register_trace_##event##_may_sleep(); Then if someone uses this on a tracepoint where preemption is disabled, we simply do not call it. -- Steve