LWN: Comments on "Kernel markers" https://lwn.net/Articles/245671/ This is a special feed containing comments posted to the individual LWN article titled "Kernel markers". en-us Thu, 09 Oct 2025 06:17:00 +0000 Thu, 09 Oct 2025 06:17:00 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Kernel markers https://lwn.net/Articles/252712/ https://lwn.net/Articles/252712/ fuhchee <font class="QuotedText">&gt; If and when this code is merged, the way will be clear for the creation of a</font><br> <font class="QuotedText">&gt; set of well-defined trace points for utilities like SystemTap and LTTng.</font><br> <p> Indeed. It may be interesting to point out the systemtap script interface<br> to the markers - for those who don't want to write their instrumentation<br> in C. This one just traces the first argument. (It's already working,<br> which makes sense since we prototyped markers with/before Mathieu.)<br> <p> probe kernel.mark("name") { println ($arg1) }<br> <p> We look forward to the inclusion of markers in linux, and their gradual<br> utilization throughout the code base.<br> <p> Tue, 02 Oct 2007 19:35:07 +0000 Kernel markers https://lwn.net/Articles/245810/ https://lwn.net/Articles/245810/ davecb It's interesting to compare these with the mostly-dynamic but<br> sometimes-static approach used in dtrace: almost any function<br> can be traced without great effort, but a few built-in<br> static trace points provide higher-level semantics.<br> <p> A decent explanation of that was Brian Cantrill's comment<br> at <a href="http://lwn.net/Articles/244646/">http://lwn.net/Articles/244646/</a><br> <p> I speculate that developers of particular kernel areas<br> would be active in creating and maintaining high-level and<br> correlated trace information, and end users could take<br> advantage of them, but being able to trace on, for example,<br> entry to an arbitrary function would be th next-most-used<br> functionality.<br> <p> --dave<br> Thu, 16 Aug 2007 16:22:42 +0000 Kernel markers https://lwn.net/Articles/245802/ https://lwn.net/Articles/245802/ compudj Hi,<br> <p> Being the developer behind the Linux Kernel Markers, I would like to add some clarifications:<br> <p> The argument "For example, the rate of change of the kernel code base would make the maintenance of a large set of probe points difficult, especially given that developers working on many parts of the code might not be particularly aware of - or concerned about - those points." should be put in context. Actually, if we think of tracing as being provided not only to Linux users, but also to kernel developers, embedded developers, etc, it makes sense to have an intrumentation set which follows the kernel source as closely as possible.<br> <p> SystemTap's approach of creating an external tapset that have to be ported to each new kernel is correct for users of distribution kernels, but requires much more effort when trying to adapt the tapsets to a rapidly changing code base.<br> <p> One of the advantages of putting markers at important locations in the kernel code is that they follow the code flow and use the underlying revision control system of the kernel. Moreover, the developers who are the most likely to know what trace points must be inserted and where are probably the maintainers of a subsystem themself. Therefore, it makes sense for them to be the final deciders on wether or not a trace point belongs to a kernel code path.<br> <p> Second point, the immediate values optimized versions are currently implemented for i386 and powerpc.<br> <p> Thanks for this thorough coverage of the state of the markers/immediate values.<br> <p> Mathieu<br> Thu, 16 Aug 2007 15:58:24 +0000