perf tools: Consolidate symbol resolving across all tools
[deliverable/linux.git] / tools / perf / util / symbol.c
index b788c2f5d672d8c69e075b9548f881b4ea086ef1..fffcb937cdcb207f470f1bf335f1e316e283bc12 100644 (file)
@@ -43,7 +43,8 @@ static struct symbol_conf symbol_conf__defaults = {
        .try_vmlinux_path = true,
 };
 
-static struct thread kthread_mem, *kthread = &kthread_mem;
+static struct thread kthread_mem;
+struct thread *kthread = &kthread_mem;
 
 bool dso__loaded(const struct dso *self, enum map_type type)
 {
@@ -1178,29 +1179,6 @@ out:
        return ret;
 }
 
-static struct symbol *thread__find_symbol(struct thread *self, u64 ip,
-                                         enum map_type type, struct map **mapp,
-                                         symbol_filter_t filter)
-{
-       struct map *map = thread__find_map(self, type, ip);
-
-       if (mapp)
-               *mapp = map;
-
-       if (map) {
-               ip = map->map_ip(map, ip);
-               return map__find_symbol(map, ip, filter);
-       }
-
-       return NULL;
-}
-
-struct symbol *kernel_maps__find_function(u64 ip, struct map **mapp,
-                                         symbol_filter_t filter)
-{
-       return thread__find_symbol(kthread, ip, MAP__FUNCTION, mapp, filter);
-}
-
 static struct map *thread__find_map_by_name(struct thread *self, char *name)
 {
        struct rb_node *nd;
This page took 0.02864 seconds and 5 git commands to generate.