diff options
| author | Arnaldo Carvalho de Melo <[email protected]> | 2018-03-15 14:46:23 +0000 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2018-03-20 16:19:28 +0000 |
| commit | f56c083bc4f9bca6f4d75d13b93720915185a8e8 (patch) | |
| tree | 42c395aa90837cba81501345d52601d92a8ecf04 /tools/perf/util/annotate.h | |
| parent | perf annotate: Move annotation_line array from TUI to generic code (diff) | |
| download | kernel-f56c083bc4f9bca6f4d75d13b93720915185a8e8.tar.gz kernel-f56c083bc4f9bca6f4d75d13b93720915185a8e8.zip | |
perf annotate: Move compute_ipc() to annotation library
Out of the TUI code, as it has nothing specific to that UI and should be
used in the other output modes as well.
Cc: Adrian Hunter <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Jin Yao <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Namhyung Kim <[email protected]>
Cc: Wang Nan <[email protected]>
Link: https://lkml.kernel.org/n/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'tools/perf/util/annotate.h')
| -rw-r--r-- | tools/perf/util/annotate.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h index d2c3436830a9..21fa5d7cd9e0 100644 --- a/tools/perf/util/annotate.h +++ b/tools/perf/util/annotate.h @@ -174,6 +174,8 @@ static inline int annotation__cycles_width(struct annotation *notes) return notes->have_cycles ? ANNOTATION__IPC_WIDTH + ANNOTATION__CYCLES_WIDTH : 0; } +void annotation__compute_ipc(struct annotation *notes, size_t size); + static inline struct sym_hist *annotation__histogram(struct annotation *notes, int idx) { return (((void *)¬es->src->histograms) + |
