perf util: Add findnew method to intlist
Similar to other findnew based methods if the requested object is not found, add it to the list. v2: followed format of other findnew methods per acme's request Signed-off-by: David Ahern <dsahern@gmail.com> Cc: Frederic Weisbecker <fweisbec@gmail.com> Cc: Ingo Molnar <mingo@kernel.org> Cc: Jiri Olsa <jolsa@redhat.com> Cc: Namhyung Kim <namhyung.kim@lge.com> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Stephane Eranian <eranian@google.com> Link: http://lkml.kernel.org/r/1381289214-24885-2-git-send-email-dsahern@gmail.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:

committed by
Arnaldo Carvalho de Melo

parent
87f918685a
commit
813335b8b2
@@ -32,6 +32,7 @@ void rblist__delete(struct rblist *rblist);
|
||||
int rblist__add_node(struct rblist *rblist, const void *new_entry);
|
||||
void rblist__remove_node(struct rblist *rblist, struct rb_node *rb_node);
|
||||
struct rb_node *rblist__find(struct rblist *rblist, const void *entry);
|
||||
struct rb_node *rblist__findnew(struct rblist *rblist, const void *entry);
|
||||
struct rb_node *rblist__entry(const struct rblist *rblist, unsigned int idx);
|
||||
|
||||
static inline bool rblist__empty(const struct rblist *rblist)
|
||||
|
Reference in New Issue
Block a user