perf tools: Add callback function to hist_entry_iter
authorNamhyung Kim <namhyung@kernel.org>
Tue, 7 Jan 2014 08:02:25 +0000 (17:02 +0900)
committerJiri Olsa <jolsa@kernel.org>
Sun, 1 Jun 2014 12:35:05 +0000 (14:35 +0200)
commit9d3c02d7188866299eebe3c4a652c08140a71f40
tree1a45d4db4976bb33a0f315d24f6fa7f70aef1c66
parent2bf1a12340bda1bf621f27b9892094a51b1297fd
perf tools: Add callback function to hist_entry_iter

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 by perf top
later.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: Arun Sharma <asharma@fb.com>
Tested-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/r/87k393g999.fsf@sejong.aot.lge.com
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
tools/perf/builtin-report.c
tools/perf/tests/hists_filter.c
tools/perf/tests/hists_output.c
tools/perf/util/hist.c
tools/perf/util/hist.h
This page took 0.024422 seconds and 5 git commands to generate.