Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp519790rdf; Tue, 21 Nov 2023 08:43:53 -0800 (PST) X-Google-Smtp-Source: AGHT+IGmQfz9OkE9O+LUfrCvc+PQSoePOII3Bw+Z3sZQleIYYB05B6s0G6gB+TR0FA8DFC/WXU0a X-Received: by 2002:a05:6a00:278e:b0:6be:1f19:e604 with SMTP id bd14-20020a056a00278e00b006be1f19e604mr13642408pfb.21.1700585032723; Tue, 21 Nov 2023 08:43:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700585032; cv=none; d=google.com; s=arc-20160816; b=SXDbeCdTfqTG3Jo1rxSuqPVXNNvk8NH45HO87Tngl2HSTxGl77MqBosVq+Ik/0VgK1 kFXQLfRRDIVt1O08p35MUb+E8LE73lEm9EsJvNI8WmhfDApUYoWva3rskL6VrwYPw8Cf 5wPMjQPPvQnRGUqOWe5lHvA3szRWRqQDNhSXWNwKQww/clew83b2Hm6tLTDjaJJtKElG y23Uxgo0BQiSkfq5wiUQf99m6BoK6/5YDwmQ6cHdMzpvU7H1fmGsCHpndivy3lAGLbAd rcWWidn3Ti4hnXUvEvGcfebZZpD/d941dy/PkppkOzmJvXWPnk6BCIJCJLD0NqKUbVdi +JuQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=gtz6ZM7OCXEIGgh6wVW/MxGyhf0IsgMubr1lXMwPlXc=; fh=2K0npGu6YLa63t0AWrsVMMNWFG1XasEhtj2baE1dv58=; b=yNAvJA88QbUdgmiTfFYG4SOyS17vnOJKVqfRCp9YLncNP5qV/Ny0cZxeglTdoAl+iw aDIj/Xd3bMjVGC/5ZiCawvXyHIJsNBV8QCzLZQpAXZxEoAwfg+Ptf3ANBWRT4gkX+K/N XerYpVXbKY839kqapEabPUuajFG4hyLds4pGG0TRL5b2PmoOIawOdqCzQYU6qVnz1AuU ENV5SuEG9fsP4t9PIiIgsba0HzLHnt9IRzUghqh4icUtml18XNLeRxdJH8gZJokT/Nr4 IGZq15B8gXNo7yYCBHo+epGR6fIRfqQ1wOQSsEJQrL4/xUiXK5Z/NHzoXaUrqwHlql2c GNhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d8hC5oXZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 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 groat.vger.email (groat.vger.email. [2620:137:e000::3:5]) by mx.google.com with ESMTPS id k1-20020aa788c1000000b006cb84e342dcsi5800252pff.129.2023.11.21.08.43.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 08:43:52 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) client-ip=2620:137:e000::3:5; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=d8hC5oXZ; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:5 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by groat.vger.email (Postfix) with ESMTP id DB96A80C3A1F; Tue, 21 Nov 2023 08:43:39 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at groat.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233556AbjKUQnd (ORCPT + 99 others); Tue, 21 Nov 2023 11:43:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57832 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231229AbjKUQnc (ORCPT ); Tue, 21 Nov 2023 11:43:32 -0500 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5964A19E for ; Tue, 21 Nov 2023 08:43:28 -0800 (PST) Received: by smtp.kernel.org (Postfix) with ESMTPSA id DDF75C433C8; Tue, 21 Nov 2023 16:43:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1700585008; bh=/U3kd7ywcCF+XCjlFdnVgAtFdH2pvC95gZA5CdP+R7A=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=d8hC5oXZovua02aR+GsRCPNBnBonyFe9VF180GnOg9JdJ7SPSAxI0bQ4fwEhCWh72 xhpksKXbcEDH4xLBvzqM1z5IQEdfUP76yHcYFcltbYMwznAdnbEueOnp4XWsQlWXuK /SYSb1/i8vhF7DjpEbzgiEdjorLBkdhqQFyGThfhxAJjelB36jmWYTi0vf6kv8E6Jd 7K4FZWR5nKax6ZkunDuHjTEZiIZ5OucROcypM0s6NaSSGpB79TwLfT/z8lCqWAy8Ks B9lH/tuSnVCrwEan4oHH4YyOLgzlJ8Zvt1YTCsee6jvaXllE0/M3iCWiHYIjBYI9oy Tdej5ktkV7eew== Received: by paulmck-ThinkPad-P17-Gen-1.home (Postfix, from userid 1000) id 83BCBCE04C0; Tue, 21 Nov 2023 08:43:27 -0800 (PST) Date: Tue, 21 Nov 2023 08:43:27 -0800 From: "Paul E. McKenney" To: Mathieu Desnoyers Cc: Steven Rostedt , Peter Zijlstra , Masami Hiramatsu , linux-kernel@vger.kernel.org, Michael Jeanson , Alexei Starovoitov , Yonghong Song , Ingo Molnar , Arnaldo Carvalho de Melo , Mark Rutland , Alexander Shishkin , Jiri Olsa , Namhyung Kim , bpf@vger.kernel.org, Joel Fernandes Subject: Re: [PATCH v4 1/5] tracing: Introduce faultable tracepoints Message-ID: <045efa69-f0a4-4f04-b092-96b317865cf3@paulmck-laptop> Reply-To: paulmck@kernel.org References: <20231121084706.GF8262@noisy.programming.kicks-ass.net> <20231121143647.GI8262@noisy.programming.kicks-ass.net> <6f503545-9c42-4d10-aca4-5332fd1097f3@efficios.com> <20231121144643.GJ8262@noisy.programming.kicks-ass.net> <20231121155256.GN4779@noisy.programming.kicks-ass.net> <20231121110753.41dc5603@gandalf.local.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on groat.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (groat.vger.email [0.0.0.0]); Tue, 21 Nov 2023 08:43:40 -0800 (PST) On Tue, Nov 21, 2023 at 11:11:57AM -0500, Mathieu Desnoyers wrote: > On 2023-11-21 11:07, Steven Rostedt wrote: > > On Tue, 21 Nov 2023 11:00:13 -0500 > > Mathieu Desnoyers wrote: > > > > > > tasks-tracing-rcu: > > > > extention of tasks to have critical-sections ? Should this simply be > > > > tasks? > > > > > > tasks-trace-rcu is meant to allow tasks to block/take a page fault > > > within the read-side. It is specialized for tracing and has a single > > > domain. It does not need the smp_mb on the read-side, which makes it > > > lower-overhead than SRCU. > > > > IOW, task-trace-rcu allows the call to schedule in its critical section, > > whereas task-rcu does not? > > Correct. > > And unlike preemptible rcu, tasks-trace-rcu allows calls to schedule which > do not provide priority inheritance guarantees (such as I/O triggered by > page faults). But please keep it to things allowed in vanilla RCU read-side critical sections and I/O triggered by page faults. If you need something else, that is a discussion between all the current users of RCU Tasks Trace. Thanx, Paul