diff options
author | David Ahern <dsahern@gmail.com> | 2013-09-28 15:13:02 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2013-10-11 11:17:55 -0400 |
commit | 2969b12993ca7a8b9692048431e075a67815002d (patch) | |
tree | ca3e8ac5a2c194c541ef146ca18a53d8849ceaf0 /tools | |
parent | 896cbb56bfee6ad99e0ee1b8209dc678f1a49f5a (diff) |
perf intlist: Add priv member
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>
Diffstat (limited to 'tools')
-rw-r--r-- | tools/perf/util/intlist.c | 1 | ||||
-rw-r--r-- | tools/perf/util/intlist.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/intlist.c b/tools/perf/util/intlist.c index 11a8d86f7fea..826d7b38c9a0 100644 --- a/tools/perf/util/intlist.c +++ b/tools/perf/util/intlist.c | |||
@@ -20,6 +20,7 @@ static struct rb_node *intlist__node_new(struct rblist *rblist __maybe_unused, | |||
20 | 20 | ||
21 | if (node != NULL) { | 21 | if (node != NULL) { |
22 | node->i = i; | 22 | node->i = i; |
23 | node->priv = NULL; | ||
23 | rc = &node->rb_node; | 24 | rc = &node->rb_node; |
24 | } | 25 | } |
25 | 26 | ||
diff --git a/tools/perf/util/intlist.h b/tools/perf/util/intlist.h index 62351dad848f..0eb00ac39e01 100644 --- a/tools/perf/util/intlist.h +++ b/tools/perf/util/intlist.h | |||
@@ -9,6 +9,7 @@ | |||
9 | struct int_node { | 9 | struct int_node { |
10 | struct rb_node rb_node; | 10 | struct rb_node rb_node; |
11 | int i; | 11 | int i; |
12 | void *priv; | ||
12 | }; | 13 | }; |
13 | 14 | ||
14 | struct intlist { | 15 | struct intlist { |