lkml.org 
[lkml]   [2011]   [May]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectRe: [GIT PULL] perf fixes
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++;
}

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

\
 
 \ /
  Last update: 2011-05-24 00:21    [W:0.035 / U:10.372 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site