Received: by 10.192.165.148 with SMTP id m20csp5007441imm; Tue, 24 Apr 2018 12:02:44 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/a1iCqntsfv+I7OmvP/UcbEQ3jv6CjttqiVp5S/mdGg0vb//RQwPZYHxkw9ecUObYuFXVB X-Received: by 2002:a17:902:758a:: with SMTP id j10-v6mr26345205pll.334.1524596564005; Tue, 24 Apr 2018 12:02:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524596563; cv=none; d=google.com; s=arc-20160816; b=lo7C4YSxYE8MA9dWBRTU8lT3UN5tPYLSIvUnqY1lEc2eZEZu0kfBRaSGAWuA0kdbKX ilRpQ2n6rwdv8AxTDpJF5e9KmNhmO+2EU3KtKBT9RwswMGWTTniXjsqe+wa6pAAZ2crk K1EEalIPvNhPHhc19aS27pMdFQMYLzBUQDBHUw3/Jbp4AeLJZVJPBZibga8P/zPjwBQ9 iHO4Xg1hFGr9YDITe/x5I/rh0uPIKlqym1AFarILFjGNmiEcetpLdzGd7oyD52ecK/nv kKp3622SpRpxLjBbqK1iK3J04oVAj4+fgZAAf/59uBPWCEnbT1c6000Phf7SCUV9ESXQ sb8w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=tz26sjgTiBfgCxNK7bGGjdhzhftm3QW+CXHxHAn8hBo=; b=nqJQe71SbmtAfAdctkSSsNnvPsa/3nyNfWdLQkJPFGuVFXEPBpsOXJlu2PDx8ZocRN 7e11AXmCfVFgfMOrfODz9bWYPcVWTZxA4V6SNPArfLUwe2Y8xRDvSJ3tp8hGDyp85Vqp jwfeDMbfGubHpBGVTMgytq2QGBeeBzm9uMatM/Qye4LzWmRdiHZefw1/Du5o7E+7Cwvg RQE1SsEfCBMXhB3r0NctWoeNtcFvdhbMYpJEMobidt7c0sWz5ZUAe6Np05JqY8hpy9A7 dJrsnIJz99Kkdat99+8pnt3wNpewfzlYq7AWUw3SKrAl6D3KMbaRqkD8SbKum9chTABY e2Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=dHY8CxZk; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g7si14229023pfm.106.2018.04.24.12.02.29; Tue, 24 Apr 2018 12:02:43 -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; dkim=pass header.i=@google.com header.s=20161025 header.b=dHY8CxZk; 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; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752518AbeDXTBW (ORCPT + 99 others); Tue, 24 Apr 2018 15:01:22 -0400 Received: from mail-it0-f43.google.com ([209.85.214.43]:35338 "EHLO mail-it0-f43.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751443AbeDXTBT (ORCPT ); Tue, 24 Apr 2018 15:01:19 -0400 Received: by mail-it0-f43.google.com with SMTP id 186-v6so16428282itu.0 for ; Tue, 24 Apr 2018 12:01:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=tz26sjgTiBfgCxNK7bGGjdhzhftm3QW+CXHxHAn8hBo=; b=dHY8CxZkwdzxqzRL1qXu1g7P3TlJKDdRf14IvP03sQlJK0jgsnoOnWM6Zvj6ITDUZj 9k/GK3L7Ih2BO7j4+gdXiKDLiywGBgzCT3iBiCUjHapZSXr00iw/MadWF1T6JDmuGZo2 E9jzSzQaAJx6lHKSn6gZ+dM0lf5MxNLhYil4rvqq4p4o7ResAYF4y1MxcdFqWkZiSMc+ DITJCM5izy2Z5SI96hHUy53r/TW1MCYzGY9bDorAvwyvaQarXx/yKi2QLVRGZhzvDDPA 39aYHQp6UsbN+d3EJCnU5m1iHyGmlYxxl46J30ZUAWaGH454HwmJFM4ZzDbRQB1UC+t5 pc7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=tz26sjgTiBfgCxNK7bGGjdhzhftm3QW+CXHxHAn8hBo=; b=ls0PSHG1Ve6wYpC0HnWMkTd+YSGd5BDGz+1FOpvgK2NF1qnEgboTh6GfPOTKB/r3if jF6UG+qI+XZ/U7njRVK4qco8GIncMFO1aAeeWMoAolT4taX0MXO6GhUoHGJk/XR7Uxd7 TPmMGM7zS1o8yZ2myPZBxGs3QrMXk6oi2j2K7GG/A0eGhf0ZV7c6u7PBAU11BUHQekXP vGdRNodxcIxAcrLZlwS8sxfjbkMSnoZT8f5FveKx2v42dp0OdUo8OSXfF4EckTvjAMdt b2n8BLpftwjY88AkQyva/WmmvAPaPmJHSjiSrpdFCsSBe0nmHiRqmCtCO/+eKxOJmtzh p3+A== X-Gm-Message-State: ALQs6tAiPwFqcDeBTu0IbM6FCnOXhWNesIq8FDxbnwvLuC5zKaaxnHlc i6Pis90EBgLkUdOMRNuMUW15zvi73dA657EyI87irQ== X-Received: by 2002:a24:de44:: with SMTP id d65-v6mr20511656itg.41.1524596478416; Tue, 24 Apr 2018 12:01:18 -0700 (PDT) MIME-Version: 1.0 Received: by 10.107.181.213 with HTTP; Tue, 24 Apr 2018 12:01:17 -0700 (PDT) In-Reply-To: References: <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> <20180423172244.694dbc9d@gandalf.local.home> <20180424155655.GA820@linux.vnet.ibm.com> <20180424172658.GT26088@linux.vnet.ibm.com> <20180424182302.GA404@linux.vnet.ibm.com> <20180424182623.GA1357@linux.vnet.ibm.com> From: Joel Fernandes Date: Tue, 24 Apr 2018 12:01:17 -0700 Message-ID: Subject: Re: [RFC v4 3/4] irqflags: Avoid unnecessary calls to trace_ if you can To: Paul McKenney Cc: Steven Rostedt , Mathieu Desnoyers , 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 Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 24, 2018 at 11:59 AM, Joel Fernandes wrote: [...] >>> > > By the way is there any limitation on using SRCU too early during >>> > > boot? I backported Mathieu's srcu tracepoint patches but the kernel >>> > > hangs pretty early in the boot. I register lockdep probes in >>> > > start_kernel. I am hoping that's not why. >>> > > >>> > > I could also have just screwed up the backporting... may be for my >>> > > testing, I will just replace the rcu API with the srcu instead of all >>> > > of Mathieu's new TRACE_EVENT macros for SRCU, since all I am trying to >>> > > do right now is measure the performance of my patches with SRCU. >>> > >>> > Gah, yes, there is an entry on my capacious todo list on making SRCU >>> > grace periods work during early boot and mid-boot. Let me see what >>> > I can do... >>> >>> OK, just need to verify that you are OK with call_srcu()'s callbacks >>> not being invoked until sometime during core_initcall() time. (If you >>> really do need them to be invoked before that, in theory it is possible, >>> but in practice it is weird, even for RCU.) >> >> Oh, and that early at boot, you will need to use DEFINE_SRCU() or >> DEFINE_STATIC_SRCU() rather than dynamic allocation and initialization. >> >> Thanx, Paul >> > > Oh ok. > > About call_rcu, calling it later may be an issue since we register the > probes in start_kernel, for the first probe call_rcu will be sched, Sorry, I need to start proof reading my emails. s/sched/skipped/ thanks, - Joel