[PATCH 12/12] perf tools: Fix find_perf_probe_point_from_map() which incorrectly returns success

2015-11-05 Thread Arnaldo Carvalho de Melo
From: Wang Nan 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().

[PATCH 12/12] perf tools: Fix find_perf_probe_point_from_map() which incorrectly returns success

2015-11-05 Thread Arnaldo Carvalho de Melo
From: Wang Nan 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