Conditional tracepoints
Conditional tracepoints
Posted Dec 2, 2010 16:56 UTC (Thu) by intgr (subscriber, #39733)Parent article: Conditional tracepoints
> within the definition of the tracepoint; that definition is usually found
> in a special header file far from the code where the tracepoint is
> actually inserted. At the tracepoint itself, the condition which might
> cause it not to fire is not visible in any way.
Why not use code comments? their purpose after all is to inform other coders of things that might not be obvious at first.
Posted Dec 3, 2010 10:16 UTC (Fri)
by dag- (guest, #30207)
[Link] (1 responses)
> 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.
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.
Posted Dec 8, 2010 11:02 UTC (Wed)
by Auders (guest, #53318)
[Link]
Conditional tracepoints
Conditional tracepoints