]> git.karo-electronics.de Git - linux-beck.git/commitdiff
perf intlist: Rename for_each() macros to for_each_entry()
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 23 Jun 2016 14:39:19 +0000 (11:39 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 23 Jun 2016 14:39:19 +0000 (11:39 -0300)
To match the semantics for list.h in the kernel, that are the
interface we use in them.

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-mdp1heu9xjjc12zebh91232l@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/intlist.h
tools/perf/util/probe-event.c

index aa6877d36858288c9027d83ab2390b82a2370fc2..020b9ca1b47ed8c2d4f0db22a4c6918b5ca5e7b6 100644 (file)
@@ -57,21 +57,21 @@ static inline struct int_node *intlist__next(struct int_node *in)
 }
 
 /**
- * intlist_for_each      - iterate over a intlist
+ * intlist__for_each_entry      - iterate over a intlist
  * @pos:       the &struct int_node to use as a loop cursor.
  * @ilist:     the &struct intlist for loop.
  */
-#define intlist__for_each(pos, ilist)  \
+#define intlist__for_each_entry(pos, ilist)    \
        for (pos = intlist__first(ilist); pos; pos = intlist__next(pos))
 
 /**
- * intlist_for_each_safe - iterate over a intlist safe against removal of
+ * intlist__for_each_entry_safe - iterate over a intlist safe against removal of
  *                         int_node
  * @pos:       the &struct int_node to use as a loop cursor.
  * @n:         another &struct int_node to use as temporary storage.
  * @ilist:     the &struct intlist for loop.
  */
-#define intlist__for_each_safe(pos, n, ilist)  \
+#define intlist__for_each_entry_safe(pos, n, ilist)    \
        for (pos = intlist__first(ilist), n = intlist__next(pos); pos;\
             pos = n, n = intlist__next(n))
 #endif /* __PERF_INTLIST_H */
index 4f7b3e5e355dcc8c86fb09db383054bdf1bda4f0..55f41d5e20d1145d7d1a4abf41ba82ee9bfe3013 100644 (file)
@@ -896,7 +896,7 @@ static int __show_line_range(struct line_range *lr, const char *module,
                        goto end;
        }
 
-       intlist__for_each(ln, lr->line_list) {
+       intlist__for_each_entry(ln, lr->line_list) {
                for (; ln->i > l; l++) {
                        ret = show_one_line(fp, l - lr->offset);
                        if (ret < 0)