]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4a76986cd3b772bd118e998cb90243160fdf66dd
treeaed03a5f0aa0bbb512bce996fb6ccb657db7d18d
parentdbd2cfc81dd5dc7a75bef1a67eeaddf5707480d0
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