perf symbols: Make dsos__find function globally available
authorJiri Olsa <[email protected]>
Mon, 10 Sep 2012 16:50:18 +0000 (18:50 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Tue, 11 Sep 2012 15:05:16 +0000 (12:05 -0300)
Changing dsos__find function from static to be globally available.

Signed-off-by: Jiri Olsa <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/symbol.c
tools/perf/util/symbol.h

index ba85d4ffef06f3c8dbc75e8229bb1f9888c2d3ad..bbb24e9516566d62e0ac2fdcbcb0ce462e3a4800 100644 (file)
@@ -1596,7 +1596,7 @@ void dsos__add(struct list_head *head, struct dso *dso)
        list_add_tail(&dso->node, head);
 }
 
-static struct dso *dsos__find(struct list_head *head, const char *name)
+struct dso *dsos__find(struct list_head *head, const char *name)
 {
        struct dso *pos;
 
index 41a15dac412096c748b0dd186585236413d1faac..dde8a26f7be3f221dd920174ca146af03ff0227e 100644 (file)
@@ -294,6 +294,7 @@ static inline void dso__set_loaded(struct dso *dso, enum map_type type)
 void dso__sort_by_name(struct dso *dso, enum map_type type);
 
 void dsos__add(struct list_head *head, struct dso *dso);
+struct dso *dsos__find(struct list_head *head, const char *name);
 struct dso *__dsos__findnew(struct list_head *head, const char *name);
 
 int dso__load(struct dso *dso, struct map *map, symbol_filter_t filter);