perf machine: Use map as success in ip__resolve_ams

When trying to map a bunch of instruction addresses to their respective
threads, I kept getting a lot of bogus entries [I forget the exact
reason as I patched my code months ago].

Looking through ip__resolve_ams, I noticed the check for

if (al.sym)

and realized, most times I have an al.map definition but sometimes an
al.sym is undefined. In the cases where al.sym is undefined, the loop
keeps going even though a valid al.map exists.

Modify this check to use the more reliable al.map. This fixed my bogus
entries.

Signed-off-by: Don Zickus <dzickus@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Stephane Eranian <eranian@google.com>
Link: http://lkml.kernel.org/r/1393386227-149412-2-git-send-email-dzickus@redhat.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>

authored by Don Zickus and committed by Arnaldo Carvalho de Melo fdf57dd0 155b3a13

Changed files
+1 -1
tools
perf
util
+1 -1
tools/perf/util/machine.c
··· 1213 1213 */ 1214 1214 thread__find_addr_location(thread, machine, m, MAP__FUNCTION, 1215 1215 ip, &al); 1216 - if (al.sym) 1216 + if (al.map) 1217 1217 goto found; 1218 1218 } 1219 1219 found: