Received: by 10.192.165.148 with SMTP id m20csp3611605imm; Mon, 23 Apr 2018 09:19:32 -0700 (PDT) X-Google-Smtp-Source: AIpwx49rmxb+7NWjV+U3opUCDYUOXb/AXPqu8zAVb/xBxSOkCvGSFFjYs+nmtU7XdZBQg17rpWUv X-Received: by 2002:a17:902:6086:: with SMTP id s6-v6mr21246861plj.307.1524500372210; Mon, 23 Apr 2018 09:19:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524500372; cv=none; d=google.com; s=arc-20160816; b=KwUzm5gl4d3UxUHfYxnap3UQyQio39JGPPMrts0yRFifJUN2jzlKdrtk5dHOhv7jtZ GSKxehNAcptHpa49tl22U/Zpm5me8+lO7FLPaCWndhEe+evMejbly6f3l0BwS3a4LglF HCgvqQGo0PLQGiqw7ShNwm1TabmwPP0jK0Ze4AkDYKMDX8lvPRPZ0W59qg3HOf64vVZo T4tCzncUo8Orsiaek8uHPpICUsfO9SrXMXFbGheME1eRpbUNvxjR4SfYbyTlL5iYZD08 jRvEPyi0NgTqVVweExzVDC7tFbSqVbYijmlbXyNNURJS1z+rd/uXBHznxz3f2Ijt+ZWf Wnvw== 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=BllvmUouAj15++NBrAeAHaYEK1/KJE4Cfns5hpSuuh4=; b=Eso6K2I1tMGRDSaG57V82mBBoKFAilrg9ygCH0orcEuYjwn53jJ6iCgv/e+nPkY7uD JID5W250mlhY/FfNdNu5R6FWnDY0jDbcsCCh3zqo/TOP7cjM3o6cFoCZfktfYD0uTcji 15ZxgygldSWnYdvz6vsEJHbIzvAy32z5fF3o6yVYA7CcGmEcOTBl1gEuIpJ8SbHpcE8G Nv4AoHE87MCTd+wqB+xtYpWN+QFygyKnACazGALZ6ndSn/N6DxnXor+eJ3kb8+XWKi02 zxqxJXJlsKf3JJEOakCBDa/Y3dpRb+Q5P3o8BjL8Ya/aMwvIrqrZGI1NB6RCd7u0tHtI z3bQ== 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 d65si3653898pfd.182.2018.04.23.09.19.17; Mon, 23 Apr 2018 09:19:32 -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 S932204AbeDWQSI (ORCPT + 99 others); Mon, 23 Apr 2018 12:18:08 -0400 Received: from mail.kernel.org ([198.145.29.99]:35900 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755583AbeDWQSF (ORCPT ); Mon, 23 Apr 2018 12:18:05 -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 AADFB217BA; Mon, 23 Apr 2018 16:18:02 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org AADFB217BA 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 12:18:00 -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: <20180423121800.47b173af@gandalf.local.home> In-Reply-To: <1045420715.14686.1524495583859.JavaMail.zimbra@efficios.com> References: <20180417040748.212236-1-joelaf@google.com> <20180418180250.7b6038dddba46b37c94b796c@kernel.org> <20180419054302.GD13370@sejong> <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> 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 10:59:43 -0400 (EDT) Mathieu Desnoyers wrote: > The main open question here is whether we want one SRCU grace period > domain per SRCU tracepoint definition, or just one SRCU domain for all > SRCU tracepoints would be fine. > > I'm not sure what we would gain by having the extra granularity provided > by one SRCU grace period domain per tracepoint, and having a single SRCU > domain for all SRCU tracepoints makes it easy to batch grace period after > bulk tracepoint modifications. > > Thoughts ? I didn't think too much depth in this. It was more of just a brain storming idea. Yeah, one singe RCU domain may be good enough. I was thinking more of how to know when a tracepoint required the SRCU domain as supposed to a preempt disabled domain, and wanted to just suggest the linker script approach. This is how I detect if trace_printk() is used anywhere in the kernel (and do that big warning if it is). That way the trace events don't need to be created any special way. You just use the trace_##event##_X flavor and it automatically detects what to do. But we need to make sure the same event isn't used for multiple flavors (SRCU vs schedule), or maybe we can, and any change would have to do both synchronizations. -- Steve