]> 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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 19 Jul 2021 06:53:14 +0000 (08:53 +0200)
commitbd84dc7b6c6d1b67104efbba9401d248bca69be5
treef34647ccd626e10cec301beceec1b3c955536b5f
parentb3beb1bf245f6bdcffff2d1f6e64cfcd6f02477b
perf bench: Fix 2 memory sanitizer warnings

commit d2c73501a767514b6c85c7feff9457a165d51057 upstream.

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>
Cc: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/perf/bench/sched-messaging.c