mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* sparse_irq: userspace ABI breakage in -tip tree
@ 2008-09-19 22:53 Arjan van de Ven
  2008-09-20  0:10 ` Yinghai Lu
  0 siblings, 1 reply; 4+ messages in thread
From: Arjan van de Ven @ 2008-09-19 22:53 UTC (permalink / raw)
  To: linux-kernel; +Cc: mingo, Yinghai Lu


commit 70426a06a58561c401e64c5767d71a011d4b978b
Author: Yinghai Lu <yhlu.kernel@gmail.com>
Date:   Tue Aug 19 20:50:27 2008 -0700

    x86: make 32 bit to use sparse_irq

@@ -285,7 +303,7 @@ int show_interrupts(struct seq_file *p, void *v)
                action = desc->action;
                if (!action && !any_count)
                        goto skip;
-               seq_printf(p, "%3d: ",i);
+               seq_printf(p, "%#x: ",i);
 #ifndef CONFIG_SMP
                seq_printf(p, "%10u ", kstat_irqs(i));
 #else


this is a userspace ABI breakage; you're changing /proc/interrupts from
decimal to hex! This file is used by both humans and computer programs,
and the humans will get confused, but the computer programs will break.
Not a good idea to put into mainline.

(I'm not so convinced of sparse_irq as a whole to be honest, but that's
a different story)

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sparse_irq: userspace ABI breakage in -tip tree
  2008-09-19 22:53 sparse_irq: userspace ABI breakage in -tip tree Arjan van de Ven
@ 2008-09-20  0:10 ` Yinghai Lu
  2008-09-20  0:44   ` Arjan van de Ven
  0 siblings, 1 reply; 4+ messages in thread
From: Yinghai Lu @ 2008-09-20  0:10 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: linux-kernel, mingo

On Fri, Sep 19, 2008 at 3:53 PM, Arjan van de Ven <arjan@infradead.org> wrote:
>
> commit 70426a06a58561c401e64c5767d71a011d4b978b
> Author: Yinghai Lu <yhlu.kernel@gmail.com>
> Date:   Tue Aug 19 20:50:27 2008 -0700
>
>    x86: make 32 bit to use sparse_irq
>
> @@ -285,7 +303,7 @@ int show_interrupts(struct seq_file *p, void *v)
>                action = desc->action;
>                if (!action && !any_count)
>                        goto skip;
> -               seq_printf(p, "%3d: ",i);
> +               seq_printf(p, "%#x: ",i);
>  #ifndef CONFIG_SMP
>                seq_printf(p, "%10u ", kstat_irqs(i));
>  #else
>
>
> this is a userspace ABI breakage; you're changing /proc/interrupts from
> decimal to hex! This file is used by both humans and computer programs,
> and the humans will get confused, but the computer programs will break.
> Not a good idea to put into mainline.

change back to decimal could help?

>
> (I'm not so convinced of sparse_irq as a whole to be honest, but that's
> a different story)

anything need to be addressed?

YH

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sparse_irq: userspace ABI breakage in -tip tree
  2008-09-20  0:10 ` Yinghai Lu
@ 2008-09-20  0:44   ` Arjan van de Ven
  2008-09-20  0:47     ` Yinghai Lu
  0 siblings, 1 reply; 4+ messages in thread
From: Arjan van de Ven @ 2008-09-20  0:44 UTC (permalink / raw)
  To: Yinghai Lu; +Cc: linux-kernel, mingo

On Fri, 19 Sep 2008 17:10:42 -0700
"Yinghai Lu" <yhlu.kernel@gmail.com> wrote:

> On Fri, Sep 19, 2008 at 3:53 PM, Arjan van de Ven
> <arjan@infradead.org> wrote:
> >
> > commit 70426a06a58561c401e64c5767d71a011d4b978b
> > Author: Yinghai Lu <yhlu.kernel@gmail.com>
> > Date:   Tue Aug 19 20:50:27 2008 -0700
> >
> >    x86: make 32 bit to use sparse_irq
> >
> > @@ -285,7 +303,7 @@ int show_interrupts(struct seq_file *p, void *v)
> >                action = desc->action;
> >                if (!action && !any_count)
> >                        goto skip;
> > -               seq_printf(p, "%3d: ",i);
> > +               seq_printf(p, "%#x: ",i);
> >  #ifndef CONFIG_SMP
> >                seq_printf(p, "%10u ", kstat_irqs(i));
> >  #else
> >
> >
> > this is a userspace ABI breakage; you're changing /proc/interrupts
> > from decimal to hex! This file is used by both humans and computer
> > programs, and the humans will get confused, but the computer
> > programs will break. Not a good idea to put into mainline.
> 
> change back to decimal could help?

that's a minimum; someone (you?) needs to check if there are other
things changed in the format of this file....



-- 
Arjan van de Ven 	Intel Open Source Technology Centre
For development, discussion and tips for power savings, 
visit http://www.lesswatts.org

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: sparse_irq: userspace ABI breakage in -tip tree
  2008-09-20  0:44   ` Arjan van de Ven
@ 2008-09-20  0:47     ` Yinghai Lu
  0 siblings, 0 replies; 4+ messages in thread
From: Yinghai Lu @ 2008-09-20  0:47 UTC (permalink / raw)
  To: Arjan van de Ven; +Cc: linux-kernel, mingo

On Fri, Sep 19, 2008 at 5:44 PM, Arjan van de Ven <arjan@infradead.org> wrote:
> On Fri, 19 Sep 2008 17:10:42 -0700
> "Yinghai Lu" <yhlu.kernel@gmail.com> wrote:
>
>> On Fri, Sep 19, 2008 at 3:53 PM, Arjan van de Ven
>> <arjan@infradead.org> wrote:
>> >
>> > commit 70426a06a58561c401e64c5767d71a011d4b978b
>> > Author: Yinghai Lu <yhlu.kernel@gmail.com>
>> > Date:   Tue Aug 19 20:50:27 2008 -0700
>> >
>> >    x86: make 32 bit to use sparse_irq
>> >
>> > @@ -285,7 +303,7 @@ int show_interrupts(struct seq_file *p, void *v)
>> >                action = desc->action;
>> >                if (!action && !any_count)
>> >                        goto skip;
>> > -               seq_printf(p, "%3d: ",i);
>> > +               seq_printf(p, "%#x: ",i);
>> >  #ifndef CONFIG_SMP
>> >                seq_printf(p, "%10u ", kstat_irqs(i));
>> >  #else
>> >
>> >
>> > this is a userspace ABI breakage; you're changing /proc/interrupts
>> > from decimal to hex! This file is used by both humans and computer
>> > programs, and the humans will get confused, but the computer
>> > programs will break. Not a good idea to put into mainline.
>>
>> change back to decimal could help?
>
> that's a minimum; someone (you?) needs to check if there are other
> things changed in the format of this file....

does the ABI require the irq number in ascend sequence in /proc/interrupts?

also how about /proc/stat?

YH

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-09-20  0:47 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-09-19 22:53 sparse_irq: userspace ABI breakage in -tip tree Arjan van de Ven
2008-09-20  0:10 ` Yinghai Lu
2008-09-20  0:44   ` Arjan van de Ven
2008-09-20  0:47     ` Yinghai Lu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®