Thread (17 messages) 17 messages, 8 authors, 2011-01-24

Re: Perf ABI versioning

From: Frederic Weisbecker <hidden>
Date: 2011-01-24 21:59:50
Also in: lkml

On Mon, Jan 24, 2011 at 10:28:38PM +0100, Ingo Molnar wrote:
* Frederic Weisbecker [off-list ref] wrote:
quoted
This may be generally useful to help dealing with tracepoint ABI changes.

But instead of a global tracing ABI number, I would rather suggest one number per 
tracepoint subsystem (sched, power, etc...).
Nooooooooooo ... !!! :-)

Please lets stop this madness before it gets too serious: we dont do ABI version 
numbering in Linux, full stop.

We use 'natural' ABIs where the lack of an ABI component triggers some sort of 
clean, finegrained error. Like a -EINVAL on a not-yet-implemented ABI component, a 
non-existent file entry, or -ENOSYS on a non-existent syscall.

Such a design is arbitrarily backportable or forward portable, it's extensible and 
it is actually maintainable.

In the ABI version numbering direction lies Windows madness ...

Thanks,

	Ingo
Yeah. But the tracepoint case looked to me quite special as sometimes
the ABI doesn't evolved smoothly like in the scheme you describe (see
the power events case).

OTOH, checking the format file if we have lost or gained fields must be enough
already to, indeed, avoid a versioning madness :)
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help