[PATCH 18/27] perf tools: Add callback function to hist_entry_iter

2014-06-01 Thread Jiri Olsa
From: Namhyung Kim The new ->add_entry_cb() will be called after an entry was added to the histogram. It's used for code sharing between perf report and perf top. Note that ops->add_*_entry() should set iter->he properly in order to call the ->add_entry_cb. Also pass @arg to the callback funct

Re: [PATCH 18/27] perf tools: Add callback function to hist_entry_iter

2014-05-29 Thread Namhyung Kim
On Thu, 29 May 2014 15:16:51 +0200, Jiri Olsa wrote: > On Thu, May 29, 2014 at 12:58:21PM +0900, Namhyung Kim wrote: >> +static int hist_iter__report_callback(struct hist_entry_iter *iter, >> + struct addr_location *al, void *arg) >> +{ >> +int err = 0; >> +

Re: [PATCH 18/27] perf tools: Add callback function to hist_entry_iter

2014-05-29 Thread Jiri Olsa
On Thu, May 29, 2014 at 12:58:21PM +0900, Namhyung Kim wrote: > The new ->add_entry_cb() will be called after an entry was added to > the histogram. It's used for code sharing between perf report and > perf top. Note that ops->add_*_entry() should set iter->he properly > in order to call the ->ad

[PATCH 18/27] perf tools: Add callback function to hist_entry_iter

2014-05-28 Thread Namhyung Kim
The new ->add_entry_cb() will be called after an entry was added to the histogram. It's used for code sharing between perf report and perf top. Note that ops->add_*_entry() should set iter->he properly in order to call the ->add_entry_cb. Also pass @arg to the callback function. It'll be used b