perf report: Use perf_evlist__force_leader to support '--group'
authorJin Yao <yao.jin@linux.intel.com>
Mon, 21 May 2018 14:57:45 +0000 (22:57 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 21 May 2018 17:41:01 +0000 (14:41 -0300)
commita26bb0ba706aef4f42cc9377c0d4e849378574a4
tree92d5450aecf957c1ce313f26ef28ca8b7407de30
parente2bdbe80a0b7dea9ba73582701b8a67c01e1da4f
perf report: Use perf_evlist__force_leader to support '--group'

Since we created a new function perf_evlist__force_leader(), remove the
old code and use that new evlist method.

Signed-off-by: Jin Yao <yao.jin@linux.intel.com>
Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: Jiri Olsa <jolsa@kernel.org>
Cc: Kan Liang <kan.liang@linux.intel.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Link: http://lkml.kernel.org/r/1526914666-31839-3-git-send-email-yao.jin@linux.intel.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-report.c