TRACE_EVENT_ABI
Arjan van de Ven's TRACE_EVENT_ABI patch is an attempt to bring some clarity to the situation. For now, it just defines a tracepoint in exactly the same way as TRACE_EVENT; the difference is that it is meant to create a tracepoint which can be relied upon as part of the kernel ABI. Such tracepoints should continue to exist in future kernel releases, and the format of the associated trace information will not change in application-breaking ways. What that means in practice is that no fields would be deleted, and any new fields would be added at the end.
Whether this approach will work remains to be seen. The word from Linus in
the past has been that kernel ABIs are created by applications which rely on an
interface, rather than any specific marking on the interface itself. So if people start
using applications which expect to be able to use a specific tracepoint,
that tracepoint may be set in cement regardless of whether it was defined with
TRACE_EVENT_ABI. This macro would thus be a good guide to the kernel
developers' intent, but it can make no guarantee that only specially-marked
tracepoints will be subject to ABI stability requirements.
Index entries for this article | |
---|---|
Kernel | Development tools/Kernel tracing |
Kernel | Tracing/ABI issues |
Posted Oct 1, 2009 3:29 UTC (Thu)
by davecb (subscriber, #1574)
[Link]
--dave
Posted Oct 1, 2009 7:41 UTC (Thu)
by ajb (subscriber, #9694)
[Link]
Or at least, it would be obvious which applications were dumb enough to depend on debug features, because they would have to put up a requester asking the user to press the key before they used it.
Posted Oct 1, 2009 8:11 UTC (Thu)
by mjthayer (guest, #39183)
[Link] (1 responses)
Posted Oct 2, 2009 14:34 UTC (Fri)
by addw (guest, #1771)
[Link]
TRACE_EVENT_ABI
TRACE_EVENT_ABI
TRACE_EVENT_ABI
TRACE_EVENT_ABI