[PATCH 09/21] perf ui/hist: Add support to accumulated hist stat

2014-03-19 Thread Namhyung Kim
Print accumulated stat of a hist entry if requested. To do that, add new HPP_PERCENT_ACC_FNS macro and generate a perf_hpp_fmt using it. The __hpp__sort_acc() function sorts entries by accumulated period value. When accumulated periods of two entries are same (i.e. single path callchain) put

[PATCH 09/21] perf ui/hist: Add support to accumulated hist stat

2014-03-19 Thread Namhyung Kim
Print accumulated stat of a hist entry if requested. To do that, add new HPP_PERCENT_ACC_FNS macro and generate a perf_hpp_fmt using it. The __hpp__sort_acc() function sorts entries by accumulated period value. When accumulated periods of two entries are same (i.e. single path callchain) put

Re: [PATCH 09/21] perf ui/hist: Add support to accumulated hist stat

2014-01-06 Thread Jiri Olsa
On Mon, Jan 06, 2014 at 05:32:16PM +0900, Namhyung Kim wrote: > On Sun, 5 Jan 2014 18:31:13 +0100, Jiri Olsa wrote: > > On Tue, Dec 24, 2013 at 05:22:15PM +0900, Namhyung Kim wrote: > >> +#define __HPP_COLOR_ACC_PERCENT_FN(_type, _field) > >> \ > >> +static u64

Re: [PATCH 09/21] perf ui/hist: Add support to accumulated hist stat

2014-01-06 Thread Namhyung Kim
On Sun, 5 Jan 2014 18:31:13 +0100, Jiri Olsa wrote: > On Tue, Dec 24, 2013 at 05:22:15PM +0900, Namhyung Kim wrote: >> +#define __HPP_COLOR_ACC_PERCENT_FN(_type, _field) >> \ >> +static u64 he_get_acc_##_field(struct hist_entry *he) >> \ >>

Re: [PATCH 09/21] perf ui/hist: Add support to accumulated hist stat

2014-01-06 Thread Namhyung Kim
On Sun, 5 Jan 2014 18:31:13 +0100, Jiri Olsa wrote: On Tue, Dec 24, 2013 at 05:22:15PM +0900, Namhyung Kim wrote: +#define __HPP_COLOR_ACC_PERCENT_FN(_type, _field) \ +static u64 he_get_acc_##_field(struct hist_entry *he) \ +{

Re: [PATCH 09/21] perf ui/hist: Add support to accumulated hist stat

2014-01-06 Thread Jiri Olsa
On Mon, Jan 06, 2014 at 05:32:16PM +0900, Namhyung Kim wrote: On Sun, 5 Jan 2014 18:31:13 +0100, Jiri Olsa wrote: On Tue, Dec 24, 2013 at 05:22:15PM +0900, Namhyung Kim wrote: +#define __HPP_COLOR_ACC_PERCENT_FN(_type, _field) \ +static u64

Re: [PATCH 09/21] perf ui/hist: Add support to accumulated hist stat

2014-01-05 Thread Jiri Olsa
On Tue, Dec 24, 2013 at 05:22:15PM +0900, Namhyung Kim wrote: > From: Namhyung Kim > > Print accumulated stat of a hist entry if requested. > > Cc: Arun Sharma > Cc: Frederic Weisbecker > Signed-off-by: Namhyung Kim > --- > tools/perf/ui/hist.c | 45

Re: [PATCH 09/21] perf ui/hist: Add support to accumulated hist stat

2014-01-05 Thread Jiri Olsa
On Tue, Dec 24, 2013 at 05:22:15PM +0900, Namhyung Kim wrote: From: Namhyung Kim namhyung@lge.com Print accumulated stat of a hist entry if requested. Cc: Arun Sharma asha...@fb.com Cc: Frederic Weisbecker fweis...@gmail.com Signed-off-by: Namhyung Kim namhy...@kernel.org ---

[PATCH 09/21] perf ui/hist: Add support to accumulated hist stat

2013-12-24 Thread Namhyung Kim
From: Namhyung Kim Print accumulated stat of a hist entry if requested. Cc: Arun Sharma Cc: Frederic Weisbecker Signed-off-by: Namhyung Kim --- tools/perf/ui/hist.c | 45 + tools/perf/util/hist.h | 1 + 2 files changed, 46 insertions(+) diff

[PATCH 09/21] perf ui/hist: Add support to accumulated hist stat

2013-12-24 Thread Namhyung Kim
From: Namhyung Kim namhyung@lge.com Print accumulated stat of a hist entry if requested. Cc: Arun Sharma asha...@fb.com Cc: Frederic Weisbecker fweis...@gmail.com Signed-off-by: Namhyung Kim namhy...@kernel.org --- tools/perf/ui/hist.c | 45 +