perf annotate: Move mark_jump_targets from the TUI to the annotation library
This also is not TUI specific, should be used in the upcoming --stdio2 mode. Cc: Adrian Hunter <adrian.hunter@intel.com> Cc: Andi Kleen <ak@linux.intel.com> Cc: David Ahern <dsahern@gmail.com> Cc: Jin Yao <yao.jin@linux.intel.com> Cc: Jiri Olsa <jolsa@kernel.org> Cc: Namhyung Kim <namhyung@kernel.org> Cc: Wang Nan <wangnan0@huawei.com> Link: https://lkml.kernel.org/n/tip-v827xec8z3hxrmgp7bwa6ohs@git.kernel.org Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
This commit is contained in:
@@ -90,6 +90,7 @@ struct annotation_line {
|
||||
s64 offset;
|
||||
char *line;
|
||||
int line_nr;
|
||||
int jump_sources;
|
||||
float ipc;
|
||||
u64 cycles;
|
||||
size_t privsize;
|
||||
@@ -116,6 +117,8 @@ static inline bool disasm_line__has_offset(const struct disasm_line *dl)
|
||||
return dl->ops.target.offset_avail;
|
||||
}
|
||||
|
||||
bool disasm_line__is_valid_jump(struct disasm_line *dl, struct symbol *sym);
|
||||
|
||||
void disasm_line__free(struct disasm_line *dl);
|
||||
struct annotation_line *
|
||||
annotation_line__next(struct annotation_line *pos, struct list_head *head);
|
||||
@@ -184,6 +187,7 @@ static inline int annotation__pcnt_width(struct annotation *notes)
|
||||
}
|
||||
|
||||
void annotation__compute_ipc(struct annotation *notes, size_t size);
|
||||
void annotation__mark_jump_targets(struct annotation *notes, struct symbol *sym);
|
||||
|
||||
static inline struct sym_hist *annotation__histogram(struct annotation *notes, int idx)
|
||||
{
|
||||
|
Reference in New Issue
Block a user