evlist.c (bac2e4a96d1c0bcce5e9654dcc902f75576b9b03) evlist.c (d988d5ee647861706bc7a391ddbc29429b50f00e)
1/*
2 * Copyright (C) 2011, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com>
3 *
4 * Parts came from builtin-{top,stat,record}.c, see those files for further
5 * copyright notes.
6 *
7 * Released under the GPL v2. (and only v2, not any later version)
8 */

--- 1167 unchanged lines hidden (view full) ---

1176 int err = 0;
1177 const int ncpus = cpu_map__nr(evlist->cpus),
1178 nthreads = thread_map__nr(evlist->threads);
1179
1180 evlist__for_each(evlist, evsel) {
1181 if (evsel->filter == NULL)
1182 continue;
1183
1/*
2 * Copyright (C) 2011, Red Hat Inc, Arnaldo Carvalho de Melo <acme@redhat.com>
3 *
4 * Parts came from builtin-{top,stat,record}.c, see those files for further
5 * copyright notes.
6 *
7 * Released under the GPL v2. (and only v2, not any later version)
8 */

--- 1167 unchanged lines hidden (view full) ---

1176 int err = 0;
1177 const int ncpus = cpu_map__nr(evlist->cpus),
1178 nthreads = thread_map__nr(evlist->threads);
1179
1180 evlist__for_each(evlist, evsel) {
1181 if (evsel->filter == NULL)
1182 continue;
1183
1184 /*
1185 * filters only work for tracepoint event, which doesn't have cpu limit.
1186 * So evlist and evsel should always be same.
1187 */
1184 err = perf_evsel__apply_filter(evsel, ncpus, nthreads, evsel->filter);
1185 if (err) {
1186 *err_evsel = evsel;
1187 break;
1188 }
1189 }
1190
1191 return err;

--- 507 unchanged lines hidden ---
1188 err = perf_evsel__apply_filter(evsel, ncpus, nthreads, evsel->filter);
1189 if (err) {
1190 *err_evsel = evsel;
1191 break;
1192 }
1193 }
1194
1195 return err;

--- 507 unchanged lines hidden ---