perf trace: No need to set PERF_SAMPLE_IDENTIFIER explicitely
authorArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 Jan 2018 16:14:52 +0000 (13:14 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 12 Jan 2018 16:23:51 +0000 (13:23 -0300)
commit236d812c55c2f38665663f0af61606b1cecea825
tree68622fae68b75bd8530b5f1bfe8400c3e20d4920
parent41013f0c095980775e0746272873891ca7c28fb1
perf trace: No need to set PERF_SAMPLE_IDENTIFIER explicitely

Since 75562573bab3 ("perf tools: Add support for
PERF_SAMPLE_IDENTIFIER") we don't need explicitely set
PERF_SAMPLE_IDENTIFIER, as perf_evlist__config() will do this for us,
i.e. when there are more than one evsel in an evlist, it will check if
some evsel has a sample_type different than the one on the first evsel
in the list, setting PERF_SAMPLE_IDENTIFIER in that case.

So, to simplify 'perf trace' codebase, ditch that check.

Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Hendrick Brueckner <brueckner@linux.vnet.ibm.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Thomas Richter <tmricht@linux.vnet.ibm.com>
Cc: Wang Nan <wangnan0@huawei.com>
Link: https://lkml.kernel.org/n/tip-12xq6orhwttee2tdtu96ucrp@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-trace.c