perf evsel: Force sample_type for slave events
authorJiri Olsa <jolsa@kernel.org>
Wed, 20 Feb 2019 12:27:56 +0000 (13:27 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 20 Feb 2019 19:08:59 +0000 (16:08 -0300)
commit6e7e8b9fec45f7bef11a5d9d2dd9febe439d4047
treedf4461ae6ce64070b505c830cbf48ab0f8abf8f1
parent529c1a9e18c3b470d2eff7879923eda40b1431db
perf evsel: Force sample_type for slave events

Force sample_type setup for slave events in group leader sessions.

We don't get sample for slave events, we make them when delivering group
leader sample. Set the slave event to follow the master sample_type to
ease up report.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/20190220122800.864-3-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evsel.c