Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6033833ybv; Tue, 18 Feb 2020 08:35:47 -0800 (PST) X-Google-Smtp-Source: APXvYqy6CboNrN/0P+C55QeQuaB7YMpH5c/H3DgzZLs47NEGiisGKUhaBU99vhAt9slHaBQMiALJ X-Received: by 2002:aca:5a04:: with SMTP id o4mr1782089oib.71.1582043747513; Tue, 18 Feb 2020 08:35:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582043747; cv=none; d=google.com; s=arc-20160816; b=D8AAWX0+gc+MoC/BqPnkKT8TOT8eF2fvcmJqe5pfMLsydtjS4UHZxhAoxCeE3rYppP /mABr6EZNwk6iviLV/ryGbvFjTxCDA82yZXTrudwQnSRWqTTZSOHdQgiD/oUp23QPuD2 youa52zyh0eI40I2wMLBuPzwBwGckIZQlfKHuUVKbqH06vYmvdoVtSYtdyDx3s0dNWsU HH0szFpasP52XR98VsIYU85vcYmL9Zl2n0joYX+go3ShYt3AIluIBxGM6++QqjwbSDos sFPy8UpY5GOi0c4OjmXNFBX4PY3uqnWTcgGrtIKE5nSlcCMXaq1xvjo7t5paBll520/h yyuw== 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; bh=y1icHejiOgPxA2h+zzHvBEB5QOeM3fEzxYkYmC5YTtA=; b=sj0FECh996724B1+4ZpQVTgr28GVpTWfEG8p9zj/mLN6HT5OIB14djNA+BFF//YFQD JHJdyI6dEYzvGQVIS4CejlYbUnJdmLnksChBMijEDhGkG6HNNaT0Ff5/1Gsr0qrM8eID aciS2cWkJV+fI39AlkTqLhIG6snJwGkK7ZibTSTFHZFuZUaEtrJMkzDPaw8iAGpwmdcC R3gisUhyFw5lglv8rQcjoPMQklWxsjDX+38nSVwG3w6TLca9UOvQTczs53lDGVH5so4i qOghAztudodIpLmLcmPGqWY9zCqlWAY8TUM9K9dKf31A0CkTdaZdcCjModj04TG1ljXZ ZDmg== 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 v23si1726213oto.81.2020.02.18.08.35.35; Tue, 18 Feb 2020 08:35:47 -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; 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 S1726756AbgBRQfH (ORCPT + 99 others); Tue, 18 Feb 2020 11:35:07 -0500 Received: from mail.kernel.org ([198.145.29.99]:57932 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726360AbgBRQfG (ORCPT ); Tue, 18 Feb 2020 11:35:06 -0500 Received: from gandalf.local.home (cpe-66-24-58-225.stny.res.rr.com [66.24.58.225]) (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 E14222067D; Tue, 18 Feb 2020 16:35:04 +0000 (UTC) Date: Tue, 18 Feb 2020 11:35:03 -0500 From: Steven Rostedt To: "Paul E. McKenney" Cc: Masami Hiramatsu , Joel Fernandes , Peter Zijlstra , linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org, mingo@kernel.org, gregkh@linuxfoundation.org, gustavo@embeddedor.com, tglx@linutronix.de, josh@joshtriplett.org, mathieu.desnoyers@efficios.com, jiangshanlai@gmail.com Subject: Re: [PATCH v2 3/9] rcu,tracing: Create trace_rcu_{enter,exit}() Message-ID: <20200218113503.1170c188@gandalf.local.home> In-Reply-To: <20200218161231.GD2935@paulmck-ThinkPad-P72> References: <20200213211930.GG170680@google.com> <20200213163800.5c51a5f1@gandalf.local.home> <20200213215004.GM2935@paulmck-ThinkPad-P72> <20200213170451.690c4e5c@gandalf.local.home> <20200213223918.GN2935@paulmck-ThinkPad-P72> <20200214151906.b1354a7ed6b01fc3bf2de862@kernel.org> <20200215145934.GD2935@paulmck-ThinkPad-P72> <20200217175519.12a694a969c1a8fb2e49905e@kernel.org> <20200217163112.GM2935@paulmck-ThinkPad-P72> <20200218133335.c87d7b2399ee6532bf28b74a@kernel.org> <20200218161231.GD2935@paulmck-ThinkPad-P72> X-Mailer: Claws Mail 3.17.3 (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 Tue, 18 Feb 2020 08:12:31 -0800 "Paul E. McKenney" wrote: > Would it work to describe the general problem, then give x86 details > as a specific example, as follows? > > /* > * On some architectures, certain exceptions prohibit use of kprobes until > * the exception code path reaches a certain point. For example, on x86 all > * functions called by do_int3() must be marked NOKPROBE. However, once > * kprobe_int3_handler() is called, kprobing is permitted. Specifically, > * ist_enter() is called in do_int3() before kprobe_int3_handle(). > * Furthermore, ist_enter() calls rcu_nmi_enter(), which means that > * rcu_nmi_enter() must be marked NOKRPOBE. > */ > > That way, I don't feel like I need to update the commment each time > a new architecture adds this capability. ;-) I don't think this is going to be an issue for other archs, as they don't have an IST. -- Steve