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: next-20140116~33^2~18^2^2~41 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=618afb294e288db086fce59de4419644215265e5;p=karo-tx-linux.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);