Re: [PATCH 06/14] perf hists: Resort hist entries using group members for output

2012-12-18 Thread Jiri Olsa
On Mon, Dec 17, 2012 at 03:38:57PM +0900, Namhyung Kim wrote: > From: Namhyung Kim SNIP > +static int hist_entry__sort_on_period(struct hist_entry *a, > + struct hist_entry *b) > +{ > + int ret; > + int i, nr_members; > + struct perf_evsel *evsel; >

Re: [PATCH 06/14] perf hists: Resort hist entries using group members for output

2012-12-18 Thread Jiri Olsa
On Mon, Dec 17, 2012 at 03:38:57PM +0900, Namhyung Kim wrote: From: Namhyung Kim namhyung@lge.com SNIP +static int hist_entry__sort_on_period(struct hist_entry *a, + struct hist_entry *b) +{ + int ret; + int i, nr_members; + struct

[PATCH 06/14] perf hists: Resort hist entries using group members for output

2012-12-16 Thread Namhyung Kim
From: Namhyung Kim When event group is enabled, sorting hist entries on periods for output should consider groups members' period also. To do that, build period table using link/pair information and compare the table. Cc: Jiri Olsa Cc: Stephane Eranian Signed-off-by: Namhyung Kim ---

[PATCH 06/14] perf hists: Resort hist entries using group members for output

2012-12-16 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com When event group is enabled, sorting hist entries on periods for output should consider groups members' period also. To do that, build period table using link/pair information and compare the table. Cc: Jiri Olsa jo...@redhat.com Cc: Stephane Eranian