aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util/annotate.h
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2017-10-11 17:01:36 +0200
committerArnaldo Carvalho de Melo <acme@redhat.com>2017-11-13 09:39:59 -0300
commit5b12adc849be011fd6d99a16e39d83afee43c0a0 (patch)
tree91fe654617b92ceed448b5d24e6f681496d05cb7 /tools/perf/util/annotate.h
parentperf annotate: Add annotation_line__add function (diff)
downloadlinux-dev-5b12adc849be011fd6d99a16e39d83afee43c0a0.tar.xz
linux-dev-5b12adc849be011fd6d99a16e39d83afee43c0a0.zip
perf annotate: Move rb_node to struct annotation_line
Move rb_node to struct annotation_line to make struct annotation_line the rb tree node for sorted lines used in both stdio and TUI code. This way we can unite the sorted lines lines codes for both TUI and stdio in the following patches. Signed-off-by: Jiri Olsa <jolsa@kernel.org> Cc: Andi Kleen <andi@firstfloor.org> Cc: David Ahern <dsahern@gmail.com> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Peter Zijlstra <peterz@infradead.org> Link: http://lkml.kernel.org/r/20171011150158.11895-14-jolsa@kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/annotate.h')
-rw-r--r--tools/perf/util/annotate.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h
index 43bef6cacbc4..6f01e6117936 100644
--- a/tools/perf/util/annotate.h
+++ b/tools/perf/util/annotate.h
@@ -61,6 +61,7 @@ struct annotation;
struct annotation_line {
struct list_head node;
+ struct rb_node rb_node;
s64 offset;
char *line;
int line_nr;