LWN: Comments on "Conditional tracepoints" https://lwn.net/Articles/417772/ This is a special feed containing comments posted to the individual LWN article titled "Conditional tracepoints". en-us Thu, 02 Oct 2025 18:05:55 +0000 Thu, 02 Oct 2025 18:05:55 +0000 https://www.rssboard.org/rss-specification lwn@lwn.net Conditional tracepoints https://lwn.net/Articles/419136/ https://lwn.net/Articles/419136/ Auders <div class="FormattedComment"> The condition should be reflected in the format then, so that the tool used to read the tracepoint can know about it.<br> </div> Wed, 08 Dec 2010 11:02:36 +0000 Conditional tracepoints https://lwn.net/Articles/418559/ https://lwn.net/Articles/418559/ dag- <div class="FormattedComment"> You removed the next sentence which gives a clue.<br> <p> <font class="QuotedText">&gt; So, if somebody other than the initial developer wants to use the tracepoint, they could misinterpret a lack of output as a sign that the surrounding code is not being executed at all.</font><br> <p> The people using the tracepoints are not necessarily kernel developers, and in most cases will not be tracing while at the same time looking at the source-code.<br> </div> Fri, 03 Dec 2010 10:16:16 +0000 Conditional tracepoints https://lwn.net/Articles/418373/ https://lwn.net/Articles/418373/ intgr <div class="FormattedComment"> <font class="QuotedText">&gt; There is one potential problem in that the condition is now hidden deeply</font><br> <font class="QuotedText">&gt; within the definition of the tracepoint; that definition is usually found</font><br> <font class="QuotedText">&gt; in a special header file far from the code where the tracepoint is</font><br> <font class="QuotedText">&gt; actually inserted. At the tracepoint itself, the condition which might</font><br> <font class="QuotedText">&gt; cause it not to fire is not visible in any way.</font><br> <p> Why not use code comments? their purpose after all is to inform other coders of things that might not be obvious at first.<br> <p> </div> Thu, 02 Dec 2010 16:56:32 +0000 Conditional tracepoints https://lwn.net/Articles/418257/ https://lwn.net/Articles/418257/ mjthayer <div class="FormattedComment"> <font class="QuotedText">&gt; "Tracing those calls could create a stream of useless events which would have to be filtered out by PowerTop, causing PowerTop itself to require more power."</font><br> <p> It does make me wonder why the filtering logic couldn't just be in PowerTop, as having the tracepoint on is clearly not the normal case. I assume that it would have generated enough extra work and really changed the systems power usage enough to make PowerTop's analysis harder.<br> </div> Thu, 02 Dec 2010 10:16:07 +0000 Conditional tracepoints https://lwn.net/Articles/418186/ https://lwn.net/Articles/418186/ thedevil <div class="FormattedComment"> "Tracing those calls could create a stream of useless events which would have to be filtered out by PowerTop, causing PowerTop itself to require more power."<br> <p> LOL! Thanks for this bit of typical LWN humor. Sometimes I think the Editor has been born on other shores where this gift is more common :)<br> <p> </div> Thu, 02 Dec 2010 03:58:45 +0000