Don Zickus fdf57dd052 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>
2014-03-10 11:19:36 -03:00
..
2013-12-27 15:17:00 -03:00
2011-02-16 13:30:48 +01:00
2014-01-13 11:37:17 -03:00
2014-01-13 11:37:17 -03:00
2012-02-13 23:17:40 -02:00
2013-12-27 15:17:00 -03:00
2013-11-05 15:15:07 -03:00
2013-11-05 15:15:07 -03:00
2013-12-19 11:34:27 -03:00
2013-12-18 14:43:04 -03:00
2013-11-07 11:51:19 -03:00
2013-08-07 17:35:26 -03:00
2013-08-07 17:35:26 -03:00
2014-02-24 11:13:08 -03:00
2013-09-11 10:09:32 -03:00
2013-12-27 15:17:00 -03:00