diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-03-15 10:26:17 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2018-03-20 13:19:27 -0300 |
commit | c426e5849b6019a0da7957e1acce4762c77f7c71 (patch) | |
tree | 0bdb67d2bb6d5b233c7d3961c2e7ace391b6f81a /tools/perf/util | |
parent | 98bc80b0a199619d2987e61e42415a1ae7a1d7fb (diff) | |
download | op-kernel-dev-c426e5849b6019a0da7957e1acce4762c77f7c71.zip op-kernel-dev-c426e5849b6019a0da7957e1acce4762c77f7c71.tar.gz |
perf annotate: Move cycles/IPC formatting width constants outside TUI
These will be used in --stdio2 so lets move it first to reduce noise in
the following patches.
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-fisud7pcak3prk7uwsvs3g2e@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util')
-rw-r--r-- | tools/perf/util/annotate.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tools/perf/util/annotate.h b/tools/perf/util/annotate.h index e924033..0407234 100644 --- a/tools/perf/util/annotate.h +++ b/tools/perf/util/annotate.h @@ -58,6 +58,9 @@ bool ins__is_lock(const struct ins *ins); int ins__scnprintf(struct ins *ins, char *bf, size_t size, struct ins_operands *ops); bool ins__is_fused(struct arch *arch, const char *ins1, const char *ins2); +#define ANNOTATION__IPC_WIDTH 6 +#define ANNOTATION__CYCLES_WIDTH 6 + struct annotation_options { bool hide_src_code, use_offset, |