aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2012-09-26 13:43:13 -0400
committerArnaldo Carvalho de Melo <acme@redhat.com>2012-09-26 13:45:16 -0400
commit1491a63218d0fd764e7fab13aa6b82164bfc14d6 (patch)
treea0a920ef84e3d405037f0a1c0fb6a11e1eb8cc6f /tools
parenteb2f270338461a4de659a21946739748160c0816 (diff)
perf evlist: Renane set_filters method to apply_filters
Because that is what it really does, i.e. it applies the filters that were parsed from the command line and stashed into the evsels they refer to. We'll need the set_filter method name to actually apply a filter to all the evsels in an evlist, for instance, to ask that a syswide tracer doesn't trace itself. Cc: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Namhyung Kim <namhyung@gmail.com> Cc: Paul Mackerras <paulus@samba.org> Cc: Peter Zijlstra <peterz@infradead.org> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/n/tip-v9x3q9rv4caxtox7wtjpchq5@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/builtin-record.c2
-rw-r--r--tools/perf/builtin-stat.c2
-rw-r--r--tools/perf/util/evlist.c2
-rw-r--r--tools/perf/util/evlist.h2
4 files changed, 4 insertions, 4 deletions
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index 2cb74343de3e..f14cb5fdb91f 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -320,7 +320,7 @@ try_again:
320 } 320 }
321 } 321 }
322 322
323 if (perf_evlist__set_filters(evlist)) { 323 if (perf_evlist__apply_filters(evlist)) {
324 error("failed to set filter with %d (%s)\n", errno, 324 error("failed to set filter with %d (%s)\n", errno,
325 strerror(errno)); 325 strerror(errno));
326 rc = -1; 326 rc = -1;
diff --git a/tools/perf/builtin-stat.c b/tools/perf/builtin-stat.c
index e0f65fe65944..e8cd4d81b06e 100644
--- a/tools/perf/builtin-stat.c
+++ b/tools/perf/builtin-stat.c
@@ -478,7 +478,7 @@ static int run_perf_stat(int argc __maybe_unused, const char **argv)
478 counter->supported = true; 478 counter->supported = true;
479 } 479 }
480 480
481 if (perf_evlist__set_filters(evsel_list)) { 481 if (perf_evlist__apply_filters(evsel_list)) {
482 error("failed to set filter with %d (%s)\n", errno, 482 error("failed to set filter with %d (%s)\n", errno,
483 strerror(errno)); 483 strerror(errno));
484 return -1; 484 return -1;
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c
index 704bd91ce05d..c3ec7878985b 100644
--- a/tools/perf/util/evlist.c
+++ b/tools/perf/util/evlist.c
@@ -666,7 +666,7 @@ void perf_evlist__delete_maps(struct perf_evlist *evlist)
666 evlist->threads = NULL; 666 evlist->threads = NULL;
667} 667}
668 668
669int perf_evlist__set_filters(struct perf_evlist *evlist) 669int perf_evlist__apply_filters(struct perf_evlist *evlist)
670{ 670{
671 const struct thread_map *threads = evlist->threads; 671 const struct thread_map *threads = evlist->threads;
672 const struct cpu_map *cpus = evlist->cpus; 672 const struct cpu_map *cpus = evlist->cpus;
diff --git a/tools/perf/util/evlist.h b/tools/perf/util/evlist.h
index 008a95702bf7..25e49e02810a 100644
--- a/tools/perf/util/evlist.h
+++ b/tools/perf/util/evlist.h
@@ -115,7 +115,7 @@ static inline void perf_evlist__set_maps(struct perf_evlist *evlist,
115int perf_evlist__create_maps(struct perf_evlist *evlist, 115int perf_evlist__create_maps(struct perf_evlist *evlist,
116 struct perf_target *target); 116 struct perf_target *target);
117void perf_evlist__delete_maps(struct perf_evlist *evlist); 117void perf_evlist__delete_maps(struct perf_evlist *evlist);
118int perf_evlist__set_filters(struct perf_evlist *evlist); 118int perf_evlist__apply_filters(struct perf_evlist *evlist);
119 119
120void __perf_evlist__set_leader(struct list_head *list); 120void __perf_evlist__set_leader(struct list_head *list);
121void perf_evlist__set_leader(struct perf_evlist *evlist); 121void perf_evlist__set_leader(struct perf_evlist *evlist);