perf tools: Consolidate symbol resolving across all tools
[deliverable/linux.git] / tools / perf / util / thread.c
index 2229f82cd630ab2d72ec26eb4d2162479381b42c..603f5610861b841cc1a526dc1f1566a0c943d56f 100644 (file)
@@ -285,3 +285,15 @@ size_t threads__fprintf(FILE *fp)
 
        return ret;
 }
+
+struct symbol *thread__find_symbol(struct thread *self,
+                                  enum map_type type, u64 addr,
+                                  symbol_filter_t filter)
+{
+       struct map *map = thread__find_map(self, type, addr);
+
+       if (map != NULL)
+               return map__find_symbol(map, map->map_ip(map, addr), filter);
+
+       return NULL;
+}
This page took 0.026168 seconds and 5 git commands to generate.