aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@redhat.com>2012-09-10 12:50:18 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-09-11 11:05:16 -0400
commit1c4be9ff5933e5c0f033ea98169cd89e22c90900 (patch)
tree2bb9c0e84951b06a07cc6d17ff6128c49d0208a2 /tools/perf
parentb232e0732b1d763834c3d5b098d25d59337ba075 (diff)
perf symbols: Make dsos__find function globally available
Changing dsos__find function from static to be globally available. Signed-off-by: Jiri Olsa <jolsa@redhat.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@elte.hu> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1347295819-23177-4-git-send-email-jolsa@redhat.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf')
-rw-r--r--tools/perf/util/symbol.c2
-rw-r--r--tools/perf/util/symbol.h1
2 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/symbol.c b/tools/perf/util/symbol.c
index ba85d4ffef06..bbb24e951656 100644
--- a/tools/perf/util/symbol.c
+++ b/tools/perf/util/symbol.c
@@ -1596,7 +1596,7 @@ void dsos__add(struct list_head *head, struct dso *dso)
1596 list_add_tail(&dso->node, head); 1596 list_add_tail(&dso->node, head);
1597} 1597}
1598 1598
1599static struct dso *dsos__find(struct list_head *head, const char *name) 1599struct dso *dsos__find(struct list_head *head, const char *name)
1600{ 1600{
1601 struct dso *pos; 1601 struct dso *pos;
1602 1602
diff --git a/tools/perf/util/symbol.h b/tools/perf/util/symbol.h
index 41a15dac4120..dde8a26f7be3 100644
--- a/tools/perf/util/symbol.h
+++ b/tools/perf/util/symbol.h
@@ -294,6 +294,7 @@ static inline void dso__set_loaded(struct dso *dso, enum map_type type)
294void dso__sort_by_name(struct dso *dso, enum map_type type); 294void dso__sort_by_name(struct dso *dso, enum map_type type);
295 295
296void dsos__add(struct list_head *head, struct dso *dso); 296void dsos__add(struct list_head *head, struct dso *dso);
297struct dso *dsos__find(struct list_head *head, const char *name);
297struct dso *__dsos__findnew(struct list_head *head, const char *name); 298struct dso *__dsos__findnew(struct list_head *head, const char *name);
298 299
299int dso__load(struct dso *dso, struct map *map, symbol_filter_t filter); 300int dso__load(struct dso *dso, struct map *map, symbol_filter_t filter);