perf bench: Fix 2 memory sanitizer warnings 89/292589/1
authorIan Rogers <irogers@google.com>
Sat, 12 Sep 2020 05:37:25 +0000 (22:37 -0700)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Tue, 9 May 2023 09:23:45 +0000 (18:23 +0900)
commit1bfeb4547744e137c5f6540c722eff28cf1a1279
tree859fce3aafdcaacc1bc51f44d3f1e5862ce19893
parent6e24623612b81d8f14dbd34a616408b9c54b35f0
perf bench: Fix 2 memory sanitizer warnings

Memory sanitizer warns if a write is performed where the memory being
read for the write is uninitialized. Avoid this warning by initializing
the memory.

Signed-off-by: Ian Rogers <irogers@google.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lore.kernel.org/lkml/20200912053725.1405857-1-irogers@google.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
[sw0312.kim: backport upstream commit d2c73501a767 to resolve gcc-12 build issue]
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
Change-Id: I5ddf75c23c88777a9cee798d72605533d3a7f318
tools/perf/bench/sched-messaging.c