aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.c
diff options
context:
space:
mode:
authorWang Nan <[email protected]>2015-11-05 13:19:25 +0000
committerArnaldo Carvalho de Melo <[email protected]>2015-11-05 15:47:52 +0000
commit98d3b258ede2cdac31a2728543f652964e597e79 (patch)
tree66000c66d8c031df7cc42c5357f79cb402edbf34 /tools/perf/util/annotate.c
parentperf trace: Fix documentation for -i (diff)
downloadkernel-98d3b258ede2cdac31a2728543f652964e597e79.tar.gz
kernel-98d3b258ede2cdac31a2728543f652964e597e79.zip
perf tools: Fix find_perf_probe_point_from_map() which incorrectly returns success
It is possible that find_perf_probe_point_from_map() fails to find a symbol but still returns 0 because of an small error when coding: find_perf_probe_point_from_map() set 'ret' to error code at first, but also use it to hold return value of kernel_get_symbol_address_by_name(). This patch resets 'ret' to error even kernel_get_symbol_address_by_name() success, so if !sym, the whole function returns error correctly. Signed-off-by: Wang Nan <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Masami Hiramatsu <[email protected]> Cc: Namhyung Kim <[email protected]> Cc: Zefan Li <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.c')
0 files changed, 0 insertions, 0 deletions