|
|
Log in / Subscribe / Register

Re: PATCH [0/4] perf: clean-up of power events API

From:  Linus Torvalds <torvalds-AT-linux-foundation.org>
To:  Pierre Tardy <tardyp-AT-gmail.com>
Subject:  Re: PATCH [0/4] perf: clean-up of power events API
Date:  Sat, 9 Oct 2010 11:36:50 -0700
Message-ID:  <AANLkTimT5Or7gLDMnmLqSzmUoPux0pXrPxUZQpFon+6___9029.46604551307$1286650042$gmane$org@mail.gmail.com>
Cc:  Thomas Gleixner <tglx-AT-linutronix.de>, Andrew Morton <akpm-AT-linux-foundation.org>, Peter Zijlstra <peterz-AT-infradead.org>, Frederic Weisbecker <fweisbec-AT-gmail.com>, Masami Hiramatsu <masami.hiramatsu.pt-AT-hitachi.com>, Jean Pihet <jean.pihet-AT-newoldbits.com>, Steven Rostedt <rostedt-AT-goodmis.org>, linux-perf-users-AT-vger.kernel.org, linux-trace-users-AT-vger.kernel.org, Frank Eigler <fche-AT-redhat.com>, Mathieu Desnoyers <mathieu.desnoyers-AT-efficios.com>, linux-pm-AT-lists.linux-foundation.org, Tejun Heo <tj-AT-kernel.org>, Ingo Molnar <mingo-AT-elte.hu>, linux-omap-AT-vger.kernel.org, Arjan van de Ven <arjan-AT-linux.intel.com>
Archive‑link:  Article

On Sat, Oct 9, 2010 at 1:14 AM, Pierre Tardy <tardyp@gmail.com> wrote:
> On Sat, Oct 9, 2010 at 8:28 AM, Ingo Molnar <mingo@elte.hu> wrote:
>>
>
>> The thing is, Arjan is 100% right that a library for this is not a
>> 'solution', it's an unnecessary complication.
> Yes. sounds like overengineering.

I also want to remind people that backwards compatibility should
always absolutely be the #1 priority. Using libraries to "hide"
differences is a totally moronic thing to do, because if you can do a
compatibility library with good interfaces, then damn it, the kernel
interface should already _be_ that good interface.

And no, even if you interact purely with open source programs, the
backwards compatibility requirement doesn't go away. It's a damn pain
in the ass to have to recompile, and it means that you have a much
harder time mixing and matching, and just updating the kernel on top
of a standard distribution.

So changing kernel interfaces that get exported to user space is
always a disaster. Anybody who _designs_ for that kind of disaster
shouldn't be participating in kernel development, because they've
shown themselves to be unable to understand the pain and suffering.

Yes, we do it. Sometimes we change interfaces because not changing
them is too damn painful. But it should absolutely not be the design
model.

                            Linus



to post comments


Copyright © 2010, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds