perf top: Convert to hist_entry_iter
authorNamhyung Kim <namhyung@kernel.org>
Tue, 7 Jan 2014 08:41:03 +0000 (17:41 +0900)
committerJiri Olsa <jolsa@kernel.org>
Sun, 1 Jun 2014 12:35:06 +0000 (14:35 +0200)
commit7c50391f536ea6ed1e75b0f4d90922a2606da3de
tree68c13d77f8b5e0afa1e025d84df5f43a73ed2ba8
parent9d3c02d7188866299eebe3c4a652c08140a71f40
perf top: Convert to hist_entry_iter

Reuse hist_entry_iter__add() function to share the similar code with
perf report.  Note that it needs to be called with hists.lock so tweak
some internal functions not to deadlock or hold the lock too long.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
Tested-by: Arun Sharma <asharma@fb.com>
Tested-by: Rodrigo Campos <rodrigo@sdfg.com.ar>
Link: http://lkml.kernel.org/r/1401335910-16832-20-git-send-email-namhyung@kernel.org
Signed-off-by: Jiri Olsa <jolsa@kernel.org>
tools/perf/builtin-top.c