Re: [PATCH] perf tools: give synthetic mmap events an inode generation

From: Arnaldo Carvalho de Melo
Date: Fri Mar 13 2020 - 14:46:17 EST


Em Fri, Mar 13, 2020 at 10:36:39AM +0100, Jiri Olsa escreveu:
> On Thu, Mar 12, 2020 at 10:31:29PM -0700, Ian Rogers wrote:
>
> SNIP
>
> >
> > SUMMARY: MemorySanitizer: use-of-uninitialized-value tools/perf/util/dsos.c:23:6 in __dso_id__cmp
> > Signed-off-by: Ian Rogers <irogers@xxxxxxxxxx>
> > ---
> > tools/perf/util/synthetic-events.c | 1 +
> > 1 file changed, 1 insertion(+)
> >
> > diff --git a/tools/perf/util/synthetic-events.c b/tools/perf/util/synthetic-events.c
> > index dd3e6f43fb86..5fddb64ec8c7 100644
> > --- a/tools/perf/util/synthetic-events.c
> > +++ b/tools/perf/util/synthetic-events.c
> > @@ -345,6 +345,7 @@ int perf_event__synthesize_mmap_events(struct perf_tool *tool,
> > continue;
> >
> > event->mmap2.ino = (u64)ino;
> > + event->mmap2.ino_generation = 0;
>
> please use tabs for indent, other than that

I fixed that.

> Acked-by: iri Olsa <jolsa@xxxxxxxxxx>

Thanks, applied.

- Arnaldo

> thanks,
> jirka
>
> >
> > /*
> > * Just like the kernel, see __perf_event_mmap in kernel/perf_event.c
> > --
> > 2.25.1.481.gfbce0eb801-goog
> >
>

--

- Arnaldo