perf evsel: Ensure reserved member of PERF_SAMPLE_CPU is zero in perf_event__synthesi...
authorAdrian Hunter <adrian.hunter@intel.com>
Tue, 16 Jan 2018 13:14:51 +0000 (15:14 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 18 Jan 2018 12:00:45 +0000 (09:00 -0300)
commit59a87fdad1467d228acc5cb1303b0b568a9e86a8
tree74f556f50cf636b268fc112b0c9bffb297abc0b7
parenta10eb530ae497e2411525fc1f5ec73f39eb11c11
perf evsel: Ensure reserved member of PERF_SAMPLE_CPU is zero in perf_event__synthesize_sample()

PERF_SAMPLE_CPU contains the cpu number in the first 4 bytes and the
second 4 bytes are reserved. Ensure the reserved bytes are zero in
perf_event__synthesize_sample().

Signed-off-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1516108492-21401-3-git-send-email-adrian.hunter@intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c