Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4884564ybv; Tue, 11 Feb 2020 05:18:39 -0800 (PST) X-Google-Smtp-Source: APXvYqxE/vqIaACRIwqSxRHdRUKISNeg15kc109QEWlj8aFFU7hycGkdUU4X9tOkkzbDegs/0pxG X-Received: by 2002:a9d:6386:: with SMTP id w6mr4927988otk.115.1581427119455; Tue, 11 Feb 2020 05:18:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581427119; cv=none; d=google.com; s=arc-20160816; b=w1LJIwkt58GAZXxsYogob6osj9qhPc+X29AAsyQUq6eHzUV0JrI8WpFpa/8fhRUfd1 zesp9kdp9P6cFgnAgYkqRf3NNBrqDL4p9lP8BbIMyR8GTChhr8FRgynNOZ0kAJHo2fRe OfFvakzuHkjWeAYAuhBP445/aS9WXTWkhFDA1uiHfiS/FkgIlKR9FQ5XiJrKiiSQjm+w bJsn7lt4hCOCuEAhDYa3jDZluE7fivWule/k0okD4QuDcAKsNNKfBmsOsPq+7hvkDvQ5 XMI2WzqIxKVupx7v+SdFeHeYrgJKvC04xOQ3hCjSUevzRIInTnZr1gE1Lk9OQWjXH5Fi vX4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=/qD7p8YSyRpn8QMMjV65ZEJSq5q78FVu+XDqDEf9ATo=; b=fvqMhJTh8gKqYDz6D2R18wE3ZgzmgQ5u5UvXGC2zIhqubGajU1+8rKYn2CqNcc8/YF U6L6iTKXxAjDtldyZJB0oaGRXXaCsGZUocOh8HQ5ggsP/isAgBYDgFc8OziR5jdbLmQs FLyoS/SvcxiKRhYLF14H/AGamRr+7y3XHphMxVd4ESJfORBv8c/tsbXOPzL6JeG/oDkJ Nmb7jmeTs7KnkJsHphRrKu8J8JSrfmAyYvwxCN4XvaJ45NA08W69eajHTXzOeC2gZgDw bcJ1Nvy7zoTQ8F3moZWP85LiF8SLylgcsgbbQTVPEaFP1JEpHNfaVNsTYz5qCKrnVvsL 6nBQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@infradead.org header.s=merlin.20170209 header.b=DZP3e7Ue; 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 d28si1773818oic.47.2020.02.11.05.18.26; Tue, 11 Feb 2020 05:18:39 -0800 (PST) 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=fail header.i=@infradead.org header.s=merlin.20170209 header.b=DZP3e7Ue; 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 S1728351AbgBKNRX (ORCPT + 99 others); Tue, 11 Feb 2020 08:17:23 -0500 Received: from merlin.infradead.org ([205.233.59.134]:60042 "EHLO merlin.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727111AbgBKNRX (ORCPT ); Tue, 11 Feb 2020 08:17:23 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=/qD7p8YSyRpn8QMMjV65ZEJSq5q78FVu+XDqDEf9ATo=; b=DZP3e7UejO+w9XcQA5tzNdpxL6 RdLkcMkshiD3OOsX1fuCKzJjRt6n1y9ZrJIB3n1uwj2yCFj8gHbrMmqYIAufnqaTIgeqMe8+JWB51 2PTyzGthzkFMOwK7KGnhPbBcVt+BULGbTDCoXCFKKu3CJvWwEteOTc4WAjZ9V0QEsYMYXr8UiccDF m+ZVvmojU89h5cJ6mtfhCucjbGVHMNh1Ar4goMWzDZnQVMLFdT79VwtXxYa4HsZGG9H4VLipCo77F SBAAAD6QnrolGfZdNrk2SFQuPTwhptEOsKp+L4UpHwc+emrnwtr7B1ckCJc9QnbcUMRLavQ3FOEAG W7pua7JA==; Received: from j217100.upc-j.chello.nl ([24.132.217.100] helo=noisy.programming.kicks-ass.net) by merlin.infradead.org with esmtpsa (Exim 4.92.3 #3 (Red Hat Linux)) id 1j1VP5-0003wJ-BR; Tue, 11 Feb 2020 13:16:39 +0000 Received: from hirez.programming.kicks-ass.net (hirez.programming.kicks-ass.net [192.168.1.225]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by noisy.programming.kicks-ass.net (Postfix) with ESMTPS id 22127300446; Tue, 11 Feb 2020 14:14:49 +0100 (CET) Received: by hirez.programming.kicks-ass.net (Postfix, from userid 1000) id D2F4920148940; Tue, 11 Feb 2020 14:16:37 +0100 (CET) Date: Tue, 11 Feb 2020 14:16:37 +0100 From: Peter Zijlstra To: "Paul E. McKenney" Cc: Mathieu Desnoyers , rostedt , linux-kernel , Ingo Molnar , "Joel Fernandes, Google" , Greg Kroah-Hartman , "Gustavo A. R. Silva" , Thomas Gleixner , Josh Triplett , Lai Jiangshan Subject: Re: [PATCH] tracing/perf: Move rcu_irq_enter/exit_irqson() to perf trace point hook Message-ID: <20200211131637.GS14914@hirez.programming.kicks-ass.net> References: <20200210170643.3544795d@gandalf.local.home> <576504045.617212.1581381032132.JavaMail.zimbra@efficios.com> <20200211120015.GL14914@hirez.programming.kicks-ass.net> <20200211130301.GH2935@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200211130301.GH2935@paulmck-ThinkPad-P72> User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 11, 2020 at 05:03:01AM -0800, Paul E. McKenney wrote: > > It is not the fact that perf issues rcu_read_lock() that is the problem. > > As we established yesterday, I can probably remove most rcu_read_lock() > > calls from perf today (yay RCU flavour unification). > > Glad some aspect of this unification is actually helping you. ;-) rcu_read_lock() is exceedingly cheap though, so I never really worried about it. But now that RCU includes RCU-sched (again) we can go and remove a bunch of them. > > As per nmi_enter() calling rcu_nmi_enter() I've always assumed that NMIs > > are fully covered by RCU. > > > > If this isn't so, RCU it terminally broken :-) > > All RCU can do is respond to calls to rcu_nmi_enter() and rcu_nmi_exit(). > It has not yet figured out how to force people to add these calls where > they are needed. ;-) > > But yes, it would be very nice if architectures arranged things so > that all NMI handlers were visible to RCU. And we no longer have > half-interrupts, so maybe there is hope... Well,.. you could go back to simply _always_ watching :-)