From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750844AbcBJMNq (ORCPT ); Wed, 10 Feb 2016 07:13:46 -0500 Received: from mx1.redhat.com ([209.132.183.28]:45349 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750713AbcBJMNm (ORCPT ); Wed, 10 Feb 2016 07:13:42 -0500 Date: Wed, 10 Feb 2016 13:13:35 +0100 From: Jiri Olsa To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra , Jiri Olsa , LKML , David Ahern , Andi Kleen , Stephane Eranian , Wang Nan Subject: Re: [PATCH 14/23] perf ui/stdio: Implement hierarchy output mode Message-ID: <20160210121335.GC19907@krava.redhat.com> References: <1454677315-7515-1-git-send-email-namhyung@kernel.org> <1454677315-7515-15-git-send-email-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1454677315-7515-15-git-send-email-namhyung@kernel.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 05, 2016 at 10:01:46PM +0900, Namhyung Kim wrote: SNIP > + printed += fprintf(fp, "%s\n", buf); > + > + if (symbol_conf.use_callchain && he->leaf) { > + u64 total = hists__total_period(hists); > + > + printed += hist_entry_callchain__fprintf(he, total, 0, fp); > + goto out; > + } > + > +out: > + return printed; > +} > + > static int hist_entry__fprintf(struct hist_entry *he, size_t size, > struct hists *hists, > char *bf, size_t bfsz, FILE *fp) > @@ -423,6 +488,13 @@ static int hist_entry__fprintf(struct hist_entry *he, size_t size, > if (size == 0 || size > bfsz) > size = hpp.size = bfsz; > > + if (symbol_conf.report_hierarchy) { it'd be great for review to have symbol_conf.report_hierarchy already present, so I could try it early in the patchset like with this change jirka