perf evsel: Initialize evsel->per_pkg_mask to NULL in evsel__init()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 13 May 2020 14:00:04 +0000 (11:00 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 28 May 2020 13:03:26 +0000 (10:03 -0300)
commitf0aef4759be5efe525660055925b726efcd7cf27
tree1b037966459feb292b32eb2777fa4ffec5ffbe4e
parent3efc899d9afb3d03604f191a0be9669eabbfc4aa
perf evsel: Initialize evsel->per_pkg_mask to NULL in evsel__init()

Just like with the other fields, this probably isn't fixing anything
observable as evsel__new() uses zalloc() for the whole 'struct evsel',
but since evsels can be embedded in larger structures and maybe those
larger structures don't use zalloc() for some reason, init it to NULL
just in case.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Ian Rogers <irogers@google.com>
Cc: Jiri Olsa <jolsa@redhat.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>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c