Re: [GIT PULL] perf fixes

From: Eric Dumazet
Date: Mon May 23 2011 - 18:22:15 EST


Le mardi 24 mai 2011 Ã 00:19 +0200, Frederic Weisbecker a Ãcrit :
> On Tue, May 24, 2011 at 12:10:48AM +0200, Eric Dumazet wrote:
> > Le lundi 23 mai 2011 Ã 15:41 +0200, Ingo Molnar a Ãcrit :
> > > Linus,
> > >
> > > Please pull the latest perf-urgent-for-linus git tree from:
> > >
> > > git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip.git perf-urgent-for-linus
> > >
> > > Thanks,
> > >
> >
> > Hi Ingo
> >
> > I just tried latest "perf top" from linux-2.6 tree on my 32bit x86 host.
> >
> > It outputs endless errors, I dont know if you guys already are aware of
> > this ?
> >
> > Can't parse sample, err = -14
> > Can't parse sample, err = -14
> > Can't parse sample, err = -14
> > Can't parse sample, err = -14
> > Can't parse sample, err = -14
> > Can't parse sample, err = -14
> > Can't parse sample, err = -14
> > Can't parse sample, err = -14
>
> Hi Eric,
>
> Does that fix the issue?
>
> diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c
> index 252b72a..6635fcd 100644
> --- a/tools/perf/util/event.c
> +++ b/tools/perf/util/event.c
> @@ -42,7 +42,7 @@ int perf_sample_size(u64 sample_type)
> int i;
>
> for (i = 0; i < 64; i++) {
> - if (mask & (1UL << i))
> + if (mask & (1ULL << i))
> size++;
> }
>
>

It does, thanks Frederic !


--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/