Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4918609ybv; Tue, 11 Feb 2020 05:55:43 -0800 (PST) X-Google-Smtp-Source: APXvYqzKngOa/RJzJbicbMN/l322m5pbW0n0wI+PlK8TAnhz9nL9Mzts+epAV2ddr0frTgJ2wlPl X-Received: by 2002:a9d:7ac9:: with SMTP id m9mr5109670otn.80.1581429342824; Tue, 11 Feb 2020 05:55:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581429342; cv=none; d=google.com; s=arc-20160816; b=AOIiQpR5pJ6q714DfTPqXHoe2H867APkI1k5+Vxww8mKVWTUSmRTddmp6cwrjC4lRb ETMAHi+klzrhfXvNkeDA3Nwel4+lC38ZegcnEnNEYz0FR0m8OWQhr7QeSx3bGa5n0FvR hFkYAEMRxknhWxGD+DPsyWtfhAcIYnRbwwsP1V9RnDmbO9AvQP0bj/YPe/AZe3fhqRu3 qLU+eHG/hb047MsAVYAQ3TIB7h5b0IO3Jqx2RgAvhIqAt3p9VPfkH1dchNMvfZXcakee gq3DHTRPjlG7nEXyIS3VqRXGFLKrW2iXeCRwdx1B5IcEVYYm9feYSDEvXudx4UfhSc0Z v3dQ== 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:reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=024JGf6Zz7WwhPnckv3Za3rd1sepoNSDHmWsxyAHq0U=; b=oCAMHKCKIxMyKSQLmx29CLi+9mp2p2TYh8TeUtnhzrgaG77N2g5/D8ALNHaOEREX78 w/i212+iYSPsuKO5sZUr9xFWrXyrv2BYI+BiPYX8HqfEwaLXwBQ35XyMK/rqZK16W6Gd +Rt669uCnU7SyojUFe69cvEtIXfvQo7YKM83I7wu06D4AFNw5sfpXFp6QDCKqBeGhJZw dG1UtmPjcYh1DrIpMJg0SZE3ScvfKsKA1NKo7Xt63XB0MB7VGKcaONDbO2CqgYg0yiyj bkdtOt6CQuO+GmHBNDDVGt/htOBkH4VStfENS2LNDiyahIeOajIdgESgpYOL2Iehxu7Q 78yA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=bxfuUUj9; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c5si2699682ots.233.2020.02.11.05.55.12; Tue, 11 Feb 2020 05:55:42 -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=pass header.i=@kernel.org header.s=default header.b=bxfuUUj9; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728935AbgBKNXQ (ORCPT + 99 others); Tue, 11 Feb 2020 08:23:16 -0500 Received: from mail.kernel.org ([198.145.29.99]:39980 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728442AbgBKNXQ (ORCPT ); Tue, 11 Feb 2020 08:23:16 -0500 Received: from paulmck-ThinkPad-P72.home (unknown [193.85.242.128]) (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 9AFFC20675; Tue, 11 Feb 2020 13:23:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581427395; bh=ocJn6FrQOTXH/4cI+RnnTS3BKjm2ap6x4uOQMQlIFtA=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=bxfuUUj9bEYCciBb/K5QvU2mp5l7hQjI4/YcjjgqWzAedEopTOKr1mVS7cn6KAW58 r8nOY0zhD6NE+YhqngFBhIoFVkCNKwEjqY/v7xPn8nEq1QjGMEe+5bD7K6g/ktjRMz 6gVerKMREiv4ofn2bjcUTit8EMNlTO6Sm8g0xVG0= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id C421F3520CB5; Tue, 11 Feb 2020 05:23:13 -0800 (PST) Date: Tue, 11 Feb 2020 05:23:13 -0800 From: "Paul E. McKenney" To: Peter Zijlstra 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: <20200211132313.GJ2935@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org 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> <20200211131637.GS14914@hirez.programming.kicks-ass.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200211131637.GS14914@hirez.programming.kicks-ass.net> User-Agent: Mutt/1.9.4 (2018-02-28) 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 02:16:37PM +0100, Peter Zijlstra wrote: > 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 :-) The idle loop always was unwatched, even back in DYNIX/ptx. And watching the idle loop requires waking up idle CPUs, which makes lots of people quite unhappy. But it could be done with something sort of like synchronize_rcu_tasks(), as long as this didn't need to be used in production on battery-powered systems. Thanx, Paul