Re: [PATCH 1/2] Fix mmap-thread-lookup.c unitialized memory usage

2019-07-02 Thread Arnaldo Carvalho de Melo
Em Tue, Jul 02, 2019 at 10:37:15AM -0700, Numfor Mbiziwo-Tiapo escreveu: > Running the perf test command after building perf with a memory > sanitizer causes a warning that says: > WARNING: MemorySanitizer: use-of-uninitialized-value... in > mmap-thread-lookup.c > Initializing the go variable to 0

[PATCH 1/2] Fix mmap-thread-lookup.c unitialized memory usage

2019-07-02 Thread Numfor Mbiziwo-Tiapo
Running the perf test command after building perf with a memory sanitizer causes a warning that says: WARNING: MemorySanitizer: use-of-uninitialized-value... in mmap-thread-lookup.c Initializing the go variable to 0 fixes this change. Signed-off-by: Numfor Mbiziwo-Tiapo --- tools/perf/tests/mmap