perf callchain: Append callchains only when requested
authorNamhyung Kim <namhyung@kernel.org>
Mon, 22 Dec 2014 04:44:14 +0000 (13:44 +0900)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 23 Dec 2014 15:06:39 +0000 (12:06 -0300)
commit82aa019e0098a1e0801df94345c0297448323126
tree4ccd3e65a7384348dd0345d924644d870c571fc3
parentb11bc8e28f4829f693ef6c0178fe1811386ac828
perf callchain: Append callchains only when requested

The perf report --children can be called with callchain disabled so no
need to append callchains.  Actually the root of callchain tree is not
initialized properly in this case.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1419223455-4362-7-git-send-email-namhyung@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/hist.c