perf annotate: Move line/offset into annotation_line struct

Move the line/line_nr/offset menbers to the annotation_line struct to be
used as generic members for any annotation source.

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-4-jolsa@kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
Jiri Olsa
2017-10-11 17:01:26 +02:00
committed by Arnaldo Carvalho de Melo
parent a17c4ca0dd
commit d5490b9647
4 changed files with 54 additions and 52 deletions

View File

@@ -61,14 +61,14 @@ struct annotation;
struct annotation_line {
struct list_head node;
s64 offset;
char *line;
int line_nr;
};
struct disasm_line {
struct annotation_line al;
s64 offset;
char *line;
struct ins ins;
int line_nr;
float ipc;
u64 cycles;
struct ins_operands ops;