Re: [PATCH 6/7] perf tools: Add name field into perf_hpp_fmt

2014-07-27 Thread Namhyung Kim
Hi Jiri, On Fri, 25 Jul 2014 13:12:30 +0200, Jiri Olsa wrote: > On Fri, Jul 25, 2014 at 10:18:57AM +0900, Namhyung Kim wrote: > > SNIP > >> } >> >> -#define __HPP_WIDTH_FN(_type, _str) \ >> +#define __HPP_WIDTH_FN(_type)

Re: [PATCH 6/7] perf tools: Add name field into perf_hpp_fmt

2014-07-25 Thread Jiri Olsa
On Fri, Jul 25, 2014 at 10:18:57AM +0900, Namhyung Kim wrote: SNIP > } > > -#define __HPP_WIDTH_FN(_type, _str) \ > +#define __HPP_WIDTH_FN(_type) > \ > static int hpp__width_##_type(struct perf_hpp_fmt *fmt,

[PATCH 6/7] perf tools: Add name field into perf_hpp_fmt

2014-07-24 Thread Namhyung Kim
It makes the code a bit simpler and easier to debug IMHO. I guess it can also remove similar code in perf diff, but let's keep it for a future work. :) Signed-off-by: Namhyung Kim --- tools/perf/ui/gtk/hists.c | 4 +- tools/perf/ui/hist.c | 109 ++-