Received: by 2002:a05:7412:40d:b0:e2:908c:2ebd with SMTP id 13csp482925rdf; Tue, 21 Nov 2023 07:54:01 -0800 (PST) X-Google-Smtp-Source: AGHT+IH8TNSMedVsjxSES8qnWthpGW4OV51azkXoaaKIhM3TiO0So8B0wV4Nrn3gQTLOL1c93SCd X-Received: by 2002:a05:6808:6507:b0:3b6:d68e:cfeb with SMTP id fm7-20020a056808650700b003b6d68ecfebmr12769423oib.55.1700582040708; Tue, 21 Nov 2023 07:54:00 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1700582040; cv=none; d=google.com; s=arc-20160816; b=VdzWqULYjAbwtdeprEghoJ79Tlv7B3MsSEi6pzEUMrgMoxJBAg0TP9ZwWpdNJVJFaN uKS72sQZKeotxUssVkEd+eVoaiab4a5+E2Op7D4KEt6QcvMGNWfV7oCRMbyEYmYQ2Ndo Pqk1E+4pqcHzSUDs7oXv1y5yhn7tixCbyVarCspicya7ogDq5pZ0MbY3Frff2jAMsD2y eD+Fu0UuBvPjFGf9Mid7v/Y2ihHHbi0Bc+EU1VdM1EOGa/r3VmofrO0oWQ7xgwPDEut4 vpZjt1k6JP454rQO3tiEGRd43ICqUJR325aicK7wBUS/30aRO4dDDlMAB5GWx9ZCAvIO aIuw== 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:message-id:subject:cc:to:from:date:dkim-signature; bh=w97cVJb/aQInQREnjHpwi7QFE9oxzcwBFUlRXyXpLTM=; fh=z9Hiijo2AEjSuQa407xYLVoBdVXTx1tb3RJVTAa8V68=; b=0tb5dpXBht+g5p7IBCHc04UcogI2/hwtHfhJt29TRpA+GzF4nyv6BTMb//PYEt4EsY chtkT/e1R3CU+y2ftXk2ATn1BSjlczdhm1RN2TLsbQBMD2Tnr9eduiMqJgwyAbVczGTl hSf5o8rmYDgJnTXUafTp45uRn021OZ4FVj3ZrLfOSjFpauQITzhPGnZTpmwbOyAoqdkX RexzFIazkL7vnTlezWjzt/TWTyURSGIo+5QidDuv6RyXakZUOziiZ5QF3hrkOl8UJ/rp y/G+A6q99xvHc5vbao1icVMCQLBsFiZNTeZfAla9oa3TigdYVGHSEFV+98Ng10cGqswm adSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=m93MnOeH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id t187-20020a632dc4000000b005bdfb8a9048si10846585pgt.67.2023.11.21.07.54.00 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Nov 2023 07:54:00 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@infradead.org header.s=casper.20170209 header.b=m93MnOeH; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id DF4038028939; Tue, 21 Nov 2023 07:53:47 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234678AbjKUPx0 (ORCPT + 99 others); Tue, 21 Nov 2023 10:53:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59564 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234657AbjKUPxV (ORCPT ); Tue, 21 Nov 2023 10:53:21 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8B67D185; Tue, 21 Nov 2023 07:53:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.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=w97cVJb/aQInQREnjHpwi7QFE9oxzcwBFUlRXyXpLTM=; b=m93MnOeHJp3JuYMNkSzI0h+sh5 z10+8KAVJ91/7rNYnQBsLhrTDLx1pyFHMrAJfaMKirCS4WjNaxwUJvyCrzY/NG0ig0b//FNRDdupH VyDa1SgQ7G53XY5K7EfMksqVhEdxhd2Yix8bmQ99JaiPJJWOBWOeOi15EslMK7oOFvwWZbr/IyqsU I1Oir5kkvhZDF9P3Bn4fT58qS+rf2UZj91HCtCjGpuAwOa6j8KdSniVISY8dE8GB8r9Ttezlnnvry N1ECNDQXgVkUrnkVr3O0Xn4RAm+o7ZO876ARb3WHUNomBPAqXcuPOqcfOPvUf7rSjUWG+1sukH7Jn HMqwGzZA==; Received: from j130084.upc-j.chello.nl ([24.132.130.84] helo=noisy.programming.kicks-ass.net) by casper.infradead.org with esmtpsa (Exim 4.94.2 #2 (Red Hat Linux)) id 1r5T3a-005icl-2G; Tue, 21 Nov 2023 15:52:58 +0000 Received: by noisy.programming.kicks-ass.net (Postfix, from userid 1000) id 242B6300338; Tue, 21 Nov 2023 16:52:56 +0100 (CET) Date: Tue, 21 Nov 2023 16:52:56 +0100 From: Peter Zijlstra To: Mathieu Desnoyers Cc: "Paul E. McKenney" , Steven Rostedt , 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: <20231121155256.GN4779@noisy.programming.kicks-ass.net> References: <20231120205418.334172-2-mathieu.desnoyers@efficios.com> <20231120214742.GC8262@noisy.programming.kicks-ass.net> <62c6e37c-88cc-43f7-ac3f-1c14059277cc@paulmck-laptop> <20231120222311.GE8262@noisy.programming.kicks-ass.net> <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> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231121144643.GJ8262@noisy.programming.kicks-ass.net> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,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 lipwig.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 (lipwig.vger.email [0.0.0.0]); Tue, 21 Nov 2023 07:53:48 -0800 (PST) On Tue, Nov 21, 2023 at 03:46:43PM +0100, Peter Zijlstra wrote: > Why is this such a hard question? Anyway, recapping from IRC: preemptible, SRCU: counter-array based, GP advances by increasing array index and waiting for previous index to drop to 0. notably, a GP can pass while a task is preempted but not within a critical section. SRCU has smp_mb() in the critical sections to improve GP. tasks: waits for every task to pass schedule() ensures that any pieces of text rendered unreachable before, is actually unused after. tasks-rude: like tasks, but different? build to handle tracing while rcu-idle, even though that was already deemed bad? tasks-tracing-rcu: extention of tasks to have critical-sections ? Should this simply be tasks? Can someone complete, please?