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

From: Jiri Olsa
Date: Fri Mar 13 2020 - 05:36:56 EST


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

Acked-by: iri Olsa <jolsa@xxxxxxxxxx>

thanks,
jirka

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