Re: [PATCH 42/53] perf record: Prevent reading invalid data in record__mmap_read
From: Arnaldo Carvalho de Melo
Date: Mon Jan 11 2016 - 10:00:15 EST
Em Mon, Jan 11, 2016 at 05:21:44PM +0300, Sergei Shtylyov escreveu:
> On 01/11/2016 04:48 PM, Wang Nan wrote:
> > size = head - old;
> >+ if (size > (unsigned long)(md->mask) + 1) {
> >+ WARN_ONCE(1, "WARNING: failed to keep up with mmap data. (warn only once)\n");
>
> WARNING is already printed by WARN*(), no?
No, at least not in tools/include/asm/bug.h, perhaps include/asm/bug.h
has this now and tools/ drifted? Checking now...
- Arnaldo