perf hists: Introduce perf_hpp_list__for_each_format macro
[deliverable/linux.git] / tools / perf / util / hist.h
index a7769d77837459628409e125210f40f3d8d08db7..eadffca1a501128b9e1f763a4068a1b3c1f38736 100644 (file)
@@ -248,8 +248,8 @@ static inline void perf_hpp__register_sort_field(struct perf_hpp_fmt *format)
        perf_hpp_list__register_sort_field(&perf_hpp_list, format);
 }
 
-#define perf_hpp__for_each_format(format) \
-       list_for_each_entry(format, &perf_hpp_list.fields, list)
+#define perf_hpp_list__for_each_format(_list, format) \
+       list_for_each_entry(format, &(_list)->fields, list)
 
 #define perf_hpp__for_each_format_safe(format, tmp)    \
        list_for_each_entry_safe(format, tmp, &perf_hpp_list.fields, list)
This page took 0.039259 seconds and 5 git commands to generate.