diff options
author | Arnaldo Carvalho de Melo <[email protected]> | 2014-10-29 11:31:54 -0200 |
---|---|---|
committer | Arnaldo Carvalho de Melo <[email protected]> | 2014-10-29 11:31:54 -0200 |
commit | cba9b847f649af350809d8ff4119e84b0466c1d9 (patch) | |
tree | 9df75724f38b7f04a0cc455b5a5fee3f921697af | |
parent | 3c659eedada2fbf909c5818848753a6647a56426 (diff) |
perf tools: Use evlist__for_each in a few remaining places
Where direct use of the longer form using list_for_entry() was being
used.
Cc: Adrian Hunter <[email protected]>
Cc: Borislav Petkov <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Don Zickus <[email protected]>
Cc: Frederic Weisbecker <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Mike Galbraith <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Paul Mackerras <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
-rw-r--r-- | tools/perf/util/evlist.c | 2 | ||||
-rw-r--r-- | tools/perf/util/session.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/util/evlist.c b/tools/perf/util/evlist.c index 0babd390963c..7e23dae54f1d 100644 --- a/tools/perf/util/evlist.c +++ b/tools/perf/util/evlist.c @@ -413,7 +413,7 @@ int perf_evlist__alloc_pollfd(struct perf_evlist *evlist) int nfds = 0; struct perf_evsel *evsel; - list_for_each_entry(evsel, &evlist->entries, node) { + evlist__for_each(evlist, evsel) { if (evsel->system_wide) nfds += nr_cpus; else diff --git a/tools/perf/util/session.c b/tools/perf/util/session.c index 27a0049118b5..58dd5ceb8bef 100644 --- a/tools/perf/util/session.c +++ b/tools/perf/util/session.c @@ -1662,7 +1662,7 @@ int perf_event__synthesize_id_index(struct perf_tool *tool, max_nr = (UINT16_MAX - sizeof(struct id_index_event)) / sizeof(struct id_index_entry); - list_for_each_entry(evsel, &evlist->entries, node) + evlist__for_each(evlist, evsel) nr += evsel->ids; n = nr > max_nr ? max_nr : nr; @@ -1675,7 +1675,7 @@ int perf_event__synthesize_id_index(struct perf_tool *tool, ev->id_index.header.size = sz; ev->id_index.nr = n; - list_for_each_entry(evsel, &evlist->entries, node) { + evlist__for_each(evlist, evsel) { u32 j; for (j = 0; j < evsel->ids; j++) { |