Linux Perf
rb_resort.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define DEFINE_RESORT_RB(__name, __comp, ...)
 
#define DECLARE_RESORT_RB(__name)
 
#define resort_rb__for_each_entry(__nd, __name)
 
#define resort_rb__delete(__name)   __name##_sorted__delete(__name), __name = NULL
 
#define DECLARE_RESORT_RB_INTLIST(__name, __ilist)
 
#define DECLARE_RESORT_RB_MACHINE_THREADS(__name, __machine, hash_bucket)
 

Macro Definition Documentation

◆ DECLARE_RESORT_RB

#define DECLARE_RESORT_RB (   __name)
Value:
struct __name##_sorted_entry *__name##_entry; \
struct __name##_sorted *__name = __name##_sorted__new

Definition at line 123 of file rb_resort.h.

◆ DECLARE_RESORT_RB_INTLIST

#define DECLARE_RESORT_RB_INTLIST (   __name,
  __ilist 
)
Value:
DECLARE_RESORT_RB(__name)(&__ilist->rblist.entries, \
__ilist->rblist.nr_entries)
#define DECLARE_RESORT_RB(__name)
Definition: rb_resort.h:123

Definition at line 142 of file rb_resort.h.

◆ DECLARE_RESORT_RB_MACHINE_THREADS

#define DECLARE_RESORT_RB_MACHINE_THREADS (   __name,
  __machine,
  hash_bucket 
)
Value:
DECLARE_RESORT_RB(__name)(&__machine->threads[hash_bucket].entries, \
__machine->threads[hash_bucket].nr)
#define DECLARE_RESORT_RB(__name)
Definition: rb_resort.h:123

Definition at line 147 of file rb_resort.h.

◆ DEFINE_RESORT_RB

#define DEFINE_RESORT_RB (   __name,
  __comp,
  ... 
)

Definition at line 55 of file rb_resort.h.

◆ resort_rb__delete

#define resort_rb__delete (   __name)    __name##_sorted__delete(__name), __name = NULL

Definition at line 133 of file rb_resort.h.

◆ resort_rb__for_each_entry

#define resort_rb__for_each_entry (   __nd,
  __name 
)
Value:
for (__nd = rb_first(&__name->entries); \
__name##_entry = rb_entry(__nd, struct __name##_sorted_entry, \
rb_node), __nd; \
__nd = rb_next(__nd))

Definition at line 127 of file rb_resort.h.