perf evlist: Rename for_each() macros to for_each_entry()
To match the semantics for list.h in the kernel, that are used to implement those macros. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Milian Wolff <milian.wolff@kdab.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Taeung Song <treeze.taeung@gmail.com> Cc: Wang Nan <wangnan0@huawei.com> Link: http://lkml.kernel.org/n/tip-qbcjlgj0ffxquxscahbpddi3@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -3199,7 +3199,7 @@ static int __perf_evlist__tui_browse_hists(struct perf_evlist *evlist,
|
||||
|
||||
ui_helpline__push("Press ESC to exit");
|
||||
|
||||
evlist__for_each(evlist, pos) {
|
||||
evlist__for_each_entry(evlist, pos) {
|
||||
const char *ev_name = perf_evsel__name(pos);
|
||||
size_t line_len = strlen(ev_name) + 7;
|
||||
|
||||
@@ -3230,7 +3230,7 @@ single_entry:
|
||||
struct perf_evsel *pos;
|
||||
|
||||
nr_entries = 0;
|
||||
evlist__for_each(evlist, pos) {
|
||||
evlist__for_each_entry(evlist, pos) {
|
||||
if (perf_evsel__is_group_leader(pos))
|
||||
nr_entries++;
|
||||
}
|
||||
|
@@ -627,7 +627,7 @@ int perf_evlist__gtk_browse_hists(struct perf_evlist *evlist,
|
||||
|
||||
gtk_container_add(GTK_CONTAINER(window), vbox);
|
||||
|
||||
evlist__for_each(evlist, pos) {
|
||||
evlist__for_each_entry(evlist, pos) {
|
||||
struct hists *hists = evsel__hists(pos);
|
||||
const char *evname = perf_evsel__name(pos);
|
||||
GtkWidget *scrolled_window;
|
||||
|
@@ -766,7 +766,7 @@ int perf_hpp__setup_hists_formats(struct perf_hpp_list *list,
|
||||
if (!symbol_conf.report_hierarchy)
|
||||
return 0;
|
||||
|
||||
evlist__for_each(evlist, evsel) {
|
||||
evlist__for_each_entry(evlist, evsel) {
|
||||
hists = evsel__hists(evsel);
|
||||
|
||||
perf_hpp_list__for_each_sort_list(list, fmt) {
|
||||
|
Reference in New Issue
Block a user