perf stat: Move stats related code to util/stat.c
authorXiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Mon, 17 Sep 2012 08:31:14 +0000 (16:31 +0800)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Mon, 17 Sep 2012 16:10:03 +0000 (13:10 -0300)
commit0007eceaceb11520071d053acfe06ee3326b1d13
treed9b96c6a53c1ccca87222003e7c5c0e4b0f171a0
parent034a9265c289d5298bac7bfd824d3d5b9ec892b4
perf stat: Move stats related code to util/stat.c

Then, the code can be shared between kvm events and perf stat.

Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
[ Dong Hao <haodong@linux.vnet.ibm.com>: rebase it on acme's git tree ]
Signed-off-by: Dong Hao <haodong@linux.vnet.ibm.com>
Cc: Avi Kivity <avi@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: kvm@vger.kernel.org
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Runzhen Wang <runzhen@linux.vnet.ibm.com>
Cc: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com
Link: http://lkml.kernel.org/r/1347870675-31495-3-git-send-email-haodong@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/Makefile
tools/perf/builtin-stat.c
tools/perf/util/stat.c [new file with mode: 0644]
tools/perf/util/stat.h [new file with mode: 0644]