perf annotate: Move compute_ipc() to annotation library
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 15 Mar 2018 14:46:23 +0000 (11:46 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 20 Mar 2018 16:19:28 +0000 (13:19 -0300)
commitf56c083bc4f9bca6f4d75d13b93720915185a8e8
tree42c395aa90837cba81501345d52601d92a8ecf04
parent9d6bb41d1ced7288b54a79a2c15d750085012215
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 <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-0jahghvqdodb8vu2591pkv3d@git.kernel.org
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/ui/browsers/annotate.c
tools/perf/util/annotate.c
tools/perf/util/annotate.h