From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759457AbcAULfR (ORCPT ); Thu, 21 Jan 2016 06:35:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:44750 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759403AbcAULfP (ORCPT ); Thu, 21 Jan 2016 06:35:15 -0500 Date: Thu, 21 Jan 2016 12:35:11 +0100 From: Jiri Olsa To: Namhyung Kim Cc: Arnaldo Carvalho de Melo , Ingo Molnar , Peter Zijlstra , Jiri Olsa , LKML , David Ahern , Stephane Eranian , Andi Kleen , Wang Nan Subject: Re: [PATCH 01/17] perf hists: Basic support of hierarchical report view Message-ID: <20160121113511.GE13547@krava.brq.redhat.com> References: <1452960197-5323-1-git-send-email-namhyung@kernel.org> <1452960197-5323-2-git-send-email-namhyung@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1452960197-5323-2-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 Sun, Jan 17, 2016 at 01:03:01AM +0900, Namhyung Kim wrote: SNIP > diff --git a/tools/perf/util/sort.h b/tools/perf/util/sort.h > index 687bbb124428..15a75d44de91 100644 > --- a/tools/perf/util/sort.h > +++ b/tools/perf/util/sort.h > @@ -94,9 +94,11 @@ struct hist_entry { > s32 socket; > s32 cpu; > u8 cpumode; > + u8 depth; > > /* We are added by hists__add_dummy_entry. */ > bool dummy; > + bool leaf; > > char level; > u8 filtered; > @@ -118,13 +120,22 @@ struct hist_entry { > char *srcline; > char *srcfile; > struct symbol *parent; > - struct rb_root sorted_chain; > struct branch_info *branch_info; > struct hists *hists; > struct mem_info *mem_info; > void *raw_data; > u32 raw_size; > void *trace_output; > + struct perf_hpp_fmt *fmt; > + struct hist_entry *parent_he; > + union { > + /* this is for hierarchical entry structure */ > + struct { > + struct rb_root hroot_in; > + struct rb_root hroot_out; we use 'entries_in' and 'entries' in hists object could we keep the names in here as well to indicate it's doing the same stuff..? thanks, jirka