perf kvm: Move code to generate filename for perf-kvm to function.
authorDongsheng Yang <yangds.fnst@cn.fujitsu.com>
Fri, 6 Dec 2013 22:25:51 +0000 (17:25 -0500)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 9 Dec 2013 18:23:56 +0000 (15:23 -0300)
commite1a2b174dbbe08dce12bde9f05f64dbbae652bed
tree9d2c2694b58eb2a323ddd612ce62c1f13f793a2b
parent6f1d0c866261ec1e42850b2bf760484c100b6dd6
perf kvm: Move code to generate filename for perf-kvm to function.

The code in builtin-kvm.c to generate filename for perf-kvm is useful to
other command such as builtin-diff.

This patch move the related code form builtin-kvm.c to util/util.c and
wrap them in a function named get_filename_for_perf_kvm.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
Link: http://lkml.kernel.org/r/5e09a5c47e8a495e888cbdc65a6fafb2c950f529.1386368672.git.yangds.fnst@cn.fujitsu.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/builtin-kvm.c
tools/perf/util/util.c
tools/perf/util/util.h