perf evlist: Make splice_list_tail method public
authorJiri Olsa <jolsa@redhat.com>
Fri, 27 Jan 2012 14:34:20 +0000 (15:34 +0100)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Wed, 1 Feb 2012 17:29:53 +0000 (15:29 -0200)
Making perf_evlist__splice_list_tail globaly accessible.

It is used in the upcomming paches.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Cc: Corey Ashford <cjashfor@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/1327674868-10486-2-git-send-email-jolsa@redhat.com
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/evlist.c
tools/perf/util/evlist.h

index a6d50e3762577914cfcfe533002624577fbba751..a57a8cfc5d90af05bb243098324a6a70c7aa4173 100644 (file)
@@ -97,9 +97,9 @@ void perf_evlist__add(struct perf_evlist *evlist, struct perf_evsel *entry)
        ++evlist->nr_entries;
 }
 
-static void perf_evlist__splice_list_tail(struct perf_evlist *evlist,
-                                         struct list_head *list,
-                                         int nr_entries)
+void perf_evlist__splice_list_tail(struct perf_evlist *evlist,
+                                  struct list_head *list,
+                                  int nr_entries)
 {
        list_splice_tail(list, &evlist->entries);
        evlist->nr_entries += nr_entries;
index 9c516607ce20319c5d2459525467a8b1727981bc..1b4282be8fe7466d3014223515aa2b874dd66b1e 100644 (file)
@@ -117,4 +117,9 @@ u16 perf_evlist__id_hdr_size(const struct perf_evlist *evlist);
 
 bool perf_evlist__valid_sample_type(const struct perf_evlist *evlist);
 bool perf_evlist__valid_sample_id_all(const struct perf_evlist *evlist);
+
+void perf_evlist__splice_list_tail(struct perf_evlist *evlist,
+                                  struct list_head *list,
+                                  int nr_entries);
+
 #endif /* __PERF_EVLIST_H */