From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id 5aOjMlibt2g1uhIAWB0awg (envelope-from ) for ; Tue, 02 Sep 2025 21:35:20 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=lists.lttng.org header.i=@lists.lttng.org header.a=rsa-sha256 header.s=default header.b=t1M5ltvM; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id C21401E057; Tue, 02 Sep 2025 21:35:20 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.1 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no autolearn_force=no version=4.0.1 Received: from lists.lttng.org (lists.lttng.org [158.69.130.29]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 4E9AD1E057 for ; Tue, 02 Sep 2025 21:35:20 -0400 (EDT) ARC-Filter: OpenARC Filter v1.2.1 lists.lttng.org 4cGlY36VQ9z1Tkn ARC-Seal: i=1; d=lists.lttng.org; s=arc1; a=rsa-sha256; cv=none; t=1756863319; b=Dd7tpYlthIAnklDNeqTbLSVhBJg8yA6caMVFHuh1m07Le4Ryf4QhiWwbRbxTJqSTRCET rRS0+fAkW1cywWGLJvejjAtth97O0H2li1z3KUyA/3rBf0KXgfjXhnz2526pCj5KcxxBV J/E8lyj4uprzUW+krU0nPgRdaF9pzW9XfO2te5DE44Lk3sIC9A/5Vr4N8rpPHE22spXwO bYX2U1KEhOCMoVjA+8tT9ZJLBsBnZz+1vPsb1+y8Qs2OnhvLFISCEdQRJiJtF2ECk9Wxw pcGw8WDHrhVoI69EtpuKmkFll2W72jXzZSYLpQBlQUVDlzEvQRHBiFLwQxNm+V4w46w== ARC-Message-Signature: i=1; d=lists.lttng.org; s=arc1; a=rsa-sha256; c=relaxed/simple; t=1756863319; h=DKIM-Signature:To:Subject:Date:Message-ID:MIME-Version:From:From; bh=Nm/NJuOoKIwXKRRnMkxC6hBGHGl+YK+NEF6Z59tUDes=; b=hEtOH/Uu3l0GaDiNuCMcLZ1KAbLRgmh9mfZ3VTi+zkSQfdpWt+TLBg+ZuafZH5J4vuP2 UXzuc/2t4WVmo2R1+kJ9DOTtE7D8EmC7PmPmcOlW+RHJMu9T9tgZ+HvKWE9DQHbMcf0/r tF+e9ENDnUzPxV1vOQ6ERNRqd+zTsIncIzeYBnfLKPVHeWQs2nhDbGyMd73oHmjooW8CI E2piAuHI1ObXMOh9ESLIQCqeegI726/up1/ooMZek1hGIsi9c8HRhoiqjMcqu1yKHGJfo 3eaQJpYvN19ufOMY2h+tapkRc+67NALU7YyzDO0SseksnYRxRqTMpsPWoFOaFYoApxQ== ARC-Authentication-Results: i=1; lists.lttng.org; arc=none smtp.remote-ip="::1" DKIM-Filter: OpenDKIM Filter v2.11.0 lists.lttng.org 4cGlY36VQ9z1Tkn DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=lists.lttng.org; s=default; t=1756863319; bh=Nm/NJuOoKIwXKRRnMkxC6hBGHGl+YK+NEF6Z59tUDes=; h=To:Cc:Subject:In-Reply-To:References:Date:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From:Reply-To:From; b=t1M5ltvMgXTOJHkAPTq+nt8INMtgPyK+3Aq2p7FjygZecPTMh/Y/GGEhD7ezOucw6 3WCIlAyYw7l3HYx25k2SKHk+XxlmgjshCc56bssMiTF/+C4Z6pTEQr5VbUeFjlPHfT ynDrFUGicsHvJbvRwuaLt8cPZaq83xACS6k7WF3Tvplk5b0vZY1T1oZKQV4lE9RVM8 7g7SZDqSwiB3jLz3TQ+vHLZ8EYXXEfYyjun1ZX3eCcKbABSlO6XNlDfgeTBA9PfTok 2RWw+vmtYQbTy9VbHZqlI4RDsehFB46YkdzlIoR+Og0PwtM2lORwVLZ9lT49YZ/yVp 9YquWfr2WPoXg== Received: from lists-lttng01.efficios.com (localhost [IPv6:::1]) by lists.lttng.org (Postfix) with ESMTP id 4cGlY36VQ9z1Tkn; Tue, 2 Sep 2025 21:35:19 -0400 (EDT) ARC-Filter: OpenARC Filter v1.2.1 lists.lttng.org 4cGlY24nBdz1Tkl DKIM-Filter: OpenDKIM Filter v2.11.0 lists.lttng.org 4cGlY24nBdz1Tkl Received: from smtpout.efficios.com (smtpout.efficios.com [IPv6:2607:5300:400:ed00::31e5]) by lists.lttng.org (Postfix) with ESMTPS id 4cGlY24nBdz1Tkl for ; Tue, 2 Sep 2025 21:35:18 -0400 (EDT) Received: from localhost (199-193-172-8.cpe.axion.ca [199.193.172.8]) by smtpout.efficios.com (Postfix) with ESMTPSA id 4cGlY12CgDz7Sc; Tue, 02 Sep 2025 21:35:17 -0400 (EDT) To: Thobias Knudsen , =?utf-8?B?T25kxZllaiBTdXLDvQ==?= Cc: lttng-dev@lists.lttng.org Subject: Re: URCU feature request? In-Reply-To: Organization: EfficiOS References: <3c49eadb-f310-46b2-984d-58a0c193cde9@efficios.com> <2f0dc1b4-3fcb-453c-aa42-4a1f85623300@paulmck-laptop> Date: Tue, 02 Sep 2025 21:35:16 -0400 Message-ID: <87y0qwwc6j.fsf@laura> MIME-Version: 1.0 Content-Type: text/plain X-BeenThere: lttng-dev@lists.lttng.org X-Mailman-Version: 2.1.39 Precedence: list List-Id: LTTng development list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Olivier Dion via lttng-dev Reply-To: Olivier Dion Errors-To: lttng-dev-bounces@lists.lttng.org Sender: "lttng-dev" On Tue, 02 Sep 2025, Thobias Knudsen via lttng-dev wrote: > Yes but all read/write operations doesn't have the syntax of a function as > you used in the example here i.e. use(...). When it is a function you can > easily just change the implementation to check if it is called inside a > read section. Some reads and writes are usually done by this syntax (a = b) > and '=' cannot be overridden. > > BTW just saying that what we're talking about now is not the original > topic, but if someone has an elegant solution to this that would be > nice! I am confuse about the overall discussion here. Are we talking about static checking of RCU pointers usage or runtime checking? Is is possible to see the implementation you made so I can understand better? Thanks, Olivier -- Olivier Dion EfficiOS Inc. https://www.efficios.com