On Tue, 02 Sep 2025, Thobias Knudsen via lttng-dev <lttng-dev@lists.lttng.org> 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