Re: [PATCH] perf_counter: fix perf_poll()

Ingo Molnar
2009-03-24T12:25:47Z

* Peter Zijlstra <peterz@infradead.org> wrote:

> On Tue, 2009-03-24 at 13:18 +0100, Peter Zijlstra wrote:
> > The below does seem to fix things (along with the previous kerneltop.c
> > patch),.. however now kerneltop is going splat like:
> >
> > # ./kerneltop -e 1:2 -c 10
> > KernelTop refresh period: 2 seconds
> > ret: 1
> > left: 0000000080200000
> > ip: 000000008038d4ad
> > right: 00000000ffffffff
> > kerneltop: kerneltop.c:985: record_ip: Assertion `left <= ip && ip <= right' failed.
> > Aborted
> >
> > Which isn't making much sense..
>
> Seems to be an artefact of running a 32bit kerneltop on a 64bit
> kernel.. freshyl compiled 64bit kerneltop works just fine.

Looks like you discovered a real bug by accident :)

Ingo