2 #ifndef __PERF_STRLIST_H 3 #define __PERF_STRLIST_H 5 #include <linux/rbtree.h> 77 #define strlist__for_each_entry(pos, slist) \ 78 for (pos = strlist__first(slist); pos; pos = strlist__next(pos)) 87 #define strlist__for_each_entry_safe(pos, n, slist) \ 88 for (pos = strlist__first(slist), n = strlist__next(pos); pos;\ 89 pos = n, n = strlist__next(n)) static bool rblist__empty(const struct rblist *rblist)
struct str_node * strlist__entry(const struct strlist *slist, unsigned int idx)
int strlist__add(struct strlist *slist, const char *str)
struct str_node * strlist__find(struct strlist *slist, const char *entry)
static unsigned int strlist__nr_entries(const struct strlist *slist)
static int entry(u64 ip, struct unwind_info *ui)
static bool strlist__empty(const struct strlist *slist)
static unsigned int rblist__nr_entries(const struct rblist *rblist)
static int str(yyscan_t scanner, int token)
static struct str_node * strlist__first(struct strlist *slist)
static struct str_node * strlist__next(struct str_node *sn)
int strlist__load(struct strlist *slist, const char *filename)
struct strlist * strlist__new(const char *slist, const struct strlist_config *config)
void strlist__remove(struct strlist *slist, struct str_node *sn)
static bool strlist__has_entry(struct strlist *slist, const char *entry)
void strlist__delete(struct strlist *slist)