Skip to content

Commit

Permalink
perf intlist: Add priv member
Browse files Browse the repository at this point in the history
Allows commands to leverage intlist infrastructure for opaque
structures.

For example an upcoming perf-trace change will use this as a means of
tracking syscalls statistics by task.

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/1380395584-9025-6-git-send-email-dsahern@gmail.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
  • Loading branch information
David Ahern authored and Arnaldo Carvalho de Melo committed Oct 11, 2013
1 parent 896cbb5 commit 2969b12
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions tools/perf/util/intlist.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ static struct rb_node *intlist__node_new(struct rblist *rblist __maybe_unused,

if (node != NULL) {
node->i = i;
node->priv = NULL;
rc = &node->rb_node;
}

Expand Down
1 change: 1 addition & 0 deletions tools/perf/util/intlist.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
struct int_node {
struct rb_node rb_node;
int i;
void *priv;
};

struct intlist {
Expand Down

0 comments on commit 2969b12

Please sign in to comment.