perf callchain: Append callchains only when requested
authorNamhyung Kim <[email protected]>
Mon, 22 Dec 2014 04:44:14 +0000 (13:44 +0900)
committerArnaldo Carvalho de Melo <[email protected]>
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 <[email protected]>
Cc: Adrian Hunter <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/hist.c