From: Arnaldo Carvalho de Melo Date: Wed, 18 Dec 2013 20:08:07 +0000 (-0300) Subject: perf top: Use hist_entry__inc_addr_sample X-Git-Tag: submit/tizen/20160422.055611~1^2~99^2~18^2~2397^2~4^2~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=618afb294e288db086fce59de4419644215265e5;p=sdk%2Femulator%2Femulator-kernel.git perf top: Use hist_entry__inc_addr_sample Since it has a hist_entry, no need to skip the hist layer and use the underlying symbol one. Acked-by: Namhyung Kim Cc: Adrian Hunter Cc: David Ahern Cc: Frederic Weisbecker Cc: Jiri Olsa Cc: Mike Galbraith Cc: Namhyung Kim Cc: Paul Mackerras Cc: Peter Zijlstra Cc: Stephane Eranian Link: http://lkml.kernel.org/n/tip-txsgu9umb0i86ijk888r1a0o@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo --- diff --git a/tools/perf/builtin-top.c b/tools/perf/builtin-top.c index 73df9c05bad9..2c6cb66f5358 100644 --- a/tools/perf/builtin-top.c +++ b/tools/perf/builtin-top.c @@ -190,7 +190,7 @@ static void perf_top__record_precise_ip(struct perf_top *top, return; ip = he->ms.map->map_ip(he->ms.map, ip); - err = symbol__inc_addr_samples(sym, he->ms.map, counter, ip); + err = hist_entry__inc_addr_samples(he, counter, ip); pthread_mutex_unlock(¬es->lock);