perf evsel: Centralize perf_sample initialization
authorJiri Olsa <jolsa@kernel.org>
Thu, 3 Aug 2017 14:07:05 +0000 (16:07 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 16 Nov 2017 17:50:08 +0000 (14:50 -0300)
commit3ad31d8a0df257c3f18c989119359c1f25cd009d
treedec3e4ac5de18f3e407ee8d270e952318b0890f5
parent914eb9ca51117776d83e6761a1c555fb76f0ded2
perf evsel: Centralize perf_sample initialization

Move the initialization bits into common place at the beginning of the
function.

Also removing some superfluous zero initialization for addr and
transaction, because we zero all the data at the top.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Wang Nan <wangnan0@huawei.com>
Link: http://lkml.kernel.org/n/tip-1gv5t6fvv735t1rt3mxpy1h9@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c