perf bench: Fix 2 memory sanitizer warnings
authorIan Rogers <irogers@google.com>
Sat, 12 Sep 2020 05:37:25 +0000 (22:37 -0700)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 14 Sep 2020 21:30:26 +0000 (18:30 -0300)
commitd2c73501a767514b6c85c7feff9457a165d51057
treeaed03a5f0aa0bbb512bce996fb6ccb657db7d18d
parent8a39e8c4d9baf65d88f66d49ac684df381e30055
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>
tools/perf/bench/sched-messaging.c