perf symbols: Support multiple symtabs in struct thread
[safe/jmp/linux-2.6] / tools / perf / builtin-top.c
index abe78bb..bf6730c 100644 (file)
@@ -945,7 +945,7 @@ static void event__process_sample(const event_t *self, int counter)
                if (thread == NULL)
                        return;
 
-               map = thread__find_map(thread, ip);
+               map = thread__find_map(thread, MAP__FUNCTION, ip);
                if (map != NULL) {
                        ip = map->map_ip(map, ip);
                        sym = map__find_symbol(map, ip, symbol_filter);