hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/perf/util/rb_resort.h
....@@ -140,12 +140,12 @@
140140
141141 /* For 'struct intlist' */
142142 #define DECLARE_RESORT_RB_INTLIST(__name, __ilist) \
143
- DECLARE_RESORT_RB(__name)(&__ilist->rblist.entries, \
143
+ DECLARE_RESORT_RB(__name)(&__ilist->rblist.entries.rb_root, \
144144 __ilist->rblist.nr_entries)
145145
146146 /* For 'struct machine->threads' */
147
-#define DECLARE_RESORT_RB_MACHINE_THREADS(__name, __machine, hash_bucket) \
148
- DECLARE_RESORT_RB(__name)(&__machine->threads[hash_bucket].entries, \
149
- __machine->threads[hash_bucket].nr)
147
+#define DECLARE_RESORT_RB_MACHINE_THREADS(__name, __machine, hash_bucket) \
148
+ DECLARE_RESORT_RB(__name)(&__machine->threads[hash_bucket].entries.rb_root, \
149
+ __machine->threads[hash_bucket].nr)
150150
151151 #endif /* _PERF_RESORT_RB_H_ */