2010-05-31 22:13:21 +08:00
|
|
|
tools/perf
|
2015-05-08 04:52:19 +08:00
|
|
|
tools/arch/alpha/include/asm/barrier.h
|
2015-05-07 05:35:20 +08:00
|
|
|
tools/arch/powerpc/include/asm/barrier.h
|
2015-05-07 05:44:53 +08:00
|
|
|
tools/arch/s390/include/asm/barrier.h
|
2015-05-08 04:09:48 +08:00
|
|
|
tools/arch/sh/include/asm/barrier.h
|
2015-05-08 04:27:23 +08:00
|
|
|
tools/arch/sparc/include/asm/barrier.h
|
|
|
|
tools/arch/sparc/include/asm/barrier_32.h
|
|
|
|
tools/arch/sparc/include/asm/barrier_64.h
|
2015-04-30 23:33:22 +08:00
|
|
|
tools/arch/x86/include/asm/barrier.h
|
2012-05-31 02:02:42 +08:00
|
|
|
tools/scripts
|
2014-12-29 20:51:45 +08:00
|
|
|
tools/build
|
2012-05-31 02:02:42 +08:00
|
|
|
tools/lib/traceevent
|
2014-01-11 03:25:05 +08:00
|
|
|
tools/lib/api
|
2013-12-11 20:15:00 +08:00
|
|
|
tools/lib/symbol/kallsyms.c
|
|
|
|
tools/lib/symbol/kallsyms.h
|
2014-12-16 06:50:12 +08:00
|
|
|
tools/lib/util/find_next_bit.c
|
2015-04-30 23:33:22 +08:00
|
|
|
tools/include/asm/barrier.h
|
2014-01-09 22:00:54 +08:00
|
|
|
tools/include/asm/bug.h
|
2015-05-08 04:04:06 +08:00
|
|
|
tools/include/asm-generic/barrier.h
|
2015-01-13 21:19:12 +08:00
|
|
|
tools/include/asm-generic/bitops/arch_hweight.h
|
2014-12-16 03:44:26 +08:00
|
|
|
tools/include/asm-generic/bitops/atomic.h
|
2015-01-13 21:19:12 +08:00
|
|
|
tools/include/asm-generic/bitops/const_hweight.h
|
2014-12-16 02:07:24 +08:00
|
|
|
tools/include/asm-generic/bitops/__ffs.h
|
2014-12-16 22:26:35 +08:00
|
|
|
tools/include/asm-generic/bitops/__fls.h
|
2014-12-16 21:53:27 +08:00
|
|
|
tools/include/asm-generic/bitops/find.h
|
2014-12-16 22:26:35 +08:00
|
|
|
tools/include/asm-generic/bitops/fls64.h
|
|
|
|
tools/include/asm-generic/bitops/fls.h
|
2015-01-13 21:19:12 +08:00
|
|
|
tools/include/asm-generic/bitops/hweight.h
|
2014-12-16 21:53:27 +08:00
|
|
|
tools/include/asm-generic/bitops.h
|
2014-12-16 21:55:42 +08:00
|
|
|
tools/include/linux/bitops.h
|
2014-01-09 22:00:53 +08:00
|
|
|
tools/include/linux/compiler.h
|
2014-02-23 19:04:53 +08:00
|
|
|
tools/include/linux/export.h
|
2014-12-16 03:04:11 +08:00
|
|
|
tools/include/linux/hash.h
|
|
|
|
tools/include/linux/log2.h
|
2014-04-26 03:31:02 +08:00
|
|
|
tools/include/linux/types.h
|
2015-01-13 21:19:12 +08:00
|
|
|
include/asm-generic/bitops/arch_hweight.h
|
|
|
|
include/asm-generic/bitops/const_hweight.h
|
2014-12-16 22:26:35 +08:00
|
|
|
include/asm-generic/bitops/fls64.h
|
|
|
|
include/asm-generic/bitops/__fls.h
|
|
|
|
include/asm-generic/bitops/fls.h
|
2011-12-17 21:35:37 +08:00
|
|
|
include/linux/const.h
|
2010-05-31 22:13:21 +08:00
|
|
|
include/linux/perf_event.h
|
|
|
|
include/linux/rbtree.h
|
|
|
|
include/linux/list.h
|
|
|
|
include/linux/hash.h
|
|
|
|
include/linux/stringify.h
|
2014-12-16 06:50:12 +08:00
|
|
|
lib/find_next_bit.c
|
2015-01-13 21:19:12 +08:00
|
|
|
lib/hweight.c
|
2010-05-31 22:13:21 +08:00
|
|
|
lib/rbtree.c
|
|
|
|
include/linux/swab.h
|
|
|
|
arch/*/include/asm/unistd*.h
|
2012-09-11 22:42:41 +08:00
|
|
|
arch/*/include/asm/perf_regs.h
|
perf tools: Fix building from 'make perf-*-src-pkg' tarballs
Thanks (mostly) to uapi the package created from perf-*-src-pkg FTBFS:
| CC perf.o
|In file included from util/../perf.h:8:0,
| from util/cache.h:7,
| from perf.c:12:
|arch/x86/include/asm/unistd.h:4:29: fatal error: uapi/asm/unistd.h: No such file or directory
|
| CC perf.o
|In file included from util/../perf.h:106:0,
| from util/cache.h:7,
| from perf.c:12:
|include/linux/perf_event.h:17:35: fatal error: uapi/linux/perf_event.h: No such file or directory
|
| CC perf.o
|In file included from include/uapi/linux/perf_event.h:19:0,
| from util/../perf.h:106,
| from util/cache.h:7,
| from perf.c:12:
|util/include/asm/byteorder.h:2:49: fatal error: ../../../../include/uapi/linux/swab.h: No such file or directory
|
| CC perf.o
|In file included from util/include/../../../../include/linux/list.h:7:0,
| from util/include/linux/list.h:4,
| from util/parse-events.h:7,
| from perf.c:15:
|util/include/linux/const.h:1:50: fatal error: ../../../../include/uapi/linux/const.h: No such file or directory
|
|In file included from builtin-kvm.c:26:0:
|arch/x86/include/asm/svm.h:4:26: fatal error: uapi/asm/svm.h: No such file or directory
|
|In file included from util/evsel.c:21:0:
|include/linux/hw_breakpoint.h:5:38: fatal error: uapi/linux/hw_breakpoint.h: No such file or directory
|
| CC util/evsel.o
|In file included from util/perf_regs.h:5:0,
| from util/evsel.c:23:
|arch/x86/include/perf_regs.h:6:27: fatal error: asm/perf_regs.h: No such file or directory
|
| CC util/rbtree.o
|In file included from ../../lib/rbtree.c:24:0:
|util/include/linux/rbtree_augmented.h:2:56: fatal error: ../../../../include/linux/rbtree_augmented.h: No such file or directory
This patch adds the missing files.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1357654134-28538-1-git-send-email-bigeasy@linutronix.de
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-01-08 22:08:54 +08:00
|
|
|
arch/*/include/uapi/asm/unistd*.h
|
|
|
|
arch/*/include/uapi/asm/perf_regs.h
|
2010-12-01 06:12:13 +08:00
|
|
|
arch/*/lib/memcpy*.S
|
2012-02-13 22:57:37 +08:00
|
|
|
arch/*/lib/memset*.S
|
2010-05-31 22:13:21 +08:00
|
|
|
include/linux/poison.h
|
|
|
|
include/linux/magic.h
|
|
|
|
include/linux/hw_breakpoint.h
|
perf tools: Fix building from 'make perf-*-src-pkg' tarballs
Thanks (mostly) to uapi the package created from perf-*-src-pkg FTBFS:
| CC perf.o
|In file included from util/../perf.h:8:0,
| from util/cache.h:7,
| from perf.c:12:
|arch/x86/include/asm/unistd.h:4:29: fatal error: uapi/asm/unistd.h: No such file or directory
|
| CC perf.o
|In file included from util/../perf.h:106:0,
| from util/cache.h:7,
| from perf.c:12:
|include/linux/perf_event.h:17:35: fatal error: uapi/linux/perf_event.h: No such file or directory
|
| CC perf.o
|In file included from include/uapi/linux/perf_event.h:19:0,
| from util/../perf.h:106,
| from util/cache.h:7,
| from perf.c:12:
|util/include/asm/byteorder.h:2:49: fatal error: ../../../../include/uapi/linux/swab.h: No such file or directory
|
| CC perf.o
|In file included from util/include/../../../../include/linux/list.h:7:0,
| from util/include/linux/list.h:4,
| from util/parse-events.h:7,
| from perf.c:15:
|util/include/linux/const.h:1:50: fatal error: ../../../../include/uapi/linux/const.h: No such file or directory
|
|In file included from builtin-kvm.c:26:0:
|arch/x86/include/asm/svm.h:4:26: fatal error: uapi/asm/svm.h: No such file or directory
|
|In file included from util/evsel.c:21:0:
|include/linux/hw_breakpoint.h:5:38: fatal error: uapi/linux/hw_breakpoint.h: No such file or directory
|
| CC util/evsel.o
|In file included from util/perf_regs.h:5:0,
| from util/evsel.c:23:
|arch/x86/include/perf_regs.h:6:27: fatal error: asm/perf_regs.h: No such file or directory
|
| CC util/rbtree.o
|In file included from ../../lib/rbtree.c:24:0:
|util/include/linux/rbtree_augmented.h:2:56: fatal error: ../../../../include/linux/rbtree_augmented.h: No such file or directory
This patch adds the missing files.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1357654134-28538-1-git-send-email-bigeasy@linutronix.de
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-01-08 22:08:54 +08:00
|
|
|
include/linux/rbtree_augmented.h
|
|
|
|
include/uapi/linux/perf_event.h
|
|
|
|
include/uapi/linux/const.h
|
|
|
|
include/uapi/linux/swab.h
|
|
|
|
include/uapi/linux/hw_breakpoint.h
|
perf kvm: Events analysis tool
Add 'perf kvm stat' support to analyze kvm vmexit/mmio/ioport smartly
Usage:
- kvm stat
run a command and gather performance counter statistics, it is the alias of
perf stat
- trace kvm events:
perf kvm stat record, or, if other tracepoints are interesting as well, we
can append the events like this:
perf kvm stat record -e timer:* -a
If many guests are running, we can track the specified guest by using -p or
--pid, -a is used to track events generated by all guests.
- show the result:
perf kvm stat report
The output example is following:
13005
13059
total 2 guests are running on the host
Then, track the guest whose pid is 13059:
^C[ perf record: Woken up 1 times to write data ]
[ perf record: Captured and wrote 0.253 MB perf.data.guest (~11065 samples) ]
See the vmexit events:
Analyze events for all VCPUs:
VM-EXIT Samples Samples% Time% Avg time
APIC_ACCESS 460 70.55% 0.01% 22.44us ( +- 1.75% )
HLT 93 14.26% 99.98% 832077.26us ( +- 10.42% )
EXTERNAL_INTERRUPT 64 9.82% 0.00% 35.35us ( +- 14.21% )
PENDING_INTERRUPT 24 3.68% 0.00% 9.29us ( +- 31.39% )
CR_ACCESS 7 1.07% 0.00% 8.12us ( +- 5.76% )
IO_INSTRUCTION 3 0.46% 0.00% 18.00us ( +- 11.79% )
EXCEPTION_NMI 1 0.15% 0.00% 5.83us ( +- -nan% )
Total Samples:652, Total events handled time:77396109.80us.
See the mmio events:
Analyze events for all VCPUs:
MMIO Access Samples Samples% Time% Avg time
0xfee00380:W 387 84.31% 79.28% 8.29us ( +- 3.32% )
0xfee00300:W 24 5.23% 9.96% 16.79us ( +- 1.97% )
0xfee00300:R 24 5.23% 7.83% 13.20us ( +- 3.00% )
0xfee00310:W 24 5.23% 2.93% 4.94us ( +- 3.84% )
Total Samples:459, Total events handled time:4044.59us.
See the ioport event:
Analyze events for all VCPUs:
IO Port Access Samples Samples% Time% Avg time
0xc050:POUT 3 100.00% 100.00% 13.75us ( +- 10.83% )
Total Samples:3, Total events handled time:41.26us.
And, --vcpu is used to track the specified vcpu and --key is used to sort the
result:
Analyze events for VCPU 0:
VM-EXIT Samples Samples% Time% Avg time
HLT 27 13.85% 99.97% 405790.24us ( +- 12.70% )
EXTERNAL_INTERRUPT 13 6.67% 0.00% 27.94us ( +- 22.26% )
APIC_ACCESS 146 74.87% 0.03% 21.69us ( +- 2.91% )
IO_INSTRUCTION 2 1.03% 0.00% 17.77us ( +- 20.56% )
CR_ACCESS 2 1.03% 0.00% 8.55us ( +- 6.47% )
PENDING_INTERRUPT 5 2.56% 0.00% 6.27us ( +- 3.94% )
Total Samples:195, Total events handled time:10959950.90us.
Signed-off-by: Dong Hao <haodong@linux.vnet.ibm.com>
Signed-off-by: Runzhen Wang <runzhen@linux.vnet.ibm.com>
[ Dong Hao <haodong@linux.vnet.ibm.com>
Runzhen Wang <runzhen@linux.vnet.ibm.com>:
- rebase it on current acme's tree
- fix the compiling-error on i386 ]
Signed-off-by: Xiao Guangrong <xiaoguangrong@linux.vnet.ibm.com>
Acked-by: David Ahern <dsahern@gmail.com>
Cc: Avi Kivity <avi@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: kvm@vger.kernel.org
Cc: Runzhen Wang <runzhen@linux.vnet.ibm.com>
Link: http://lkml.kernel.org/r/1347870675-31495-4-git-send-email-haodong@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2012-09-17 16:31:15 +08:00
|
|
|
arch/x86/include/asm/svm.h
|
|
|
|
arch/x86/include/asm/vmx.h
|
|
|
|
arch/x86/include/asm/kvm_host.h
|
perf tools: Fix building from 'make perf-*-src-pkg' tarballs
Thanks (mostly) to uapi the package created from perf-*-src-pkg FTBFS:
| CC perf.o
|In file included from util/../perf.h:8:0,
| from util/cache.h:7,
| from perf.c:12:
|arch/x86/include/asm/unistd.h:4:29: fatal error: uapi/asm/unistd.h: No such file or directory
|
| CC perf.o
|In file included from util/../perf.h:106:0,
| from util/cache.h:7,
| from perf.c:12:
|include/linux/perf_event.h:17:35: fatal error: uapi/linux/perf_event.h: No such file or directory
|
| CC perf.o
|In file included from include/uapi/linux/perf_event.h:19:0,
| from util/../perf.h:106,
| from util/cache.h:7,
| from perf.c:12:
|util/include/asm/byteorder.h:2:49: fatal error: ../../../../include/uapi/linux/swab.h: No such file or directory
|
| CC perf.o
|In file included from util/include/../../../../include/linux/list.h:7:0,
| from util/include/linux/list.h:4,
| from util/parse-events.h:7,
| from perf.c:15:
|util/include/linux/const.h:1:50: fatal error: ../../../../include/uapi/linux/const.h: No such file or directory
|
|In file included from builtin-kvm.c:26:0:
|arch/x86/include/asm/svm.h:4:26: fatal error: uapi/asm/svm.h: No such file or directory
|
|In file included from util/evsel.c:21:0:
|include/linux/hw_breakpoint.h:5:38: fatal error: uapi/linux/hw_breakpoint.h: No such file or directory
|
| CC util/evsel.o
|In file included from util/perf_regs.h:5:0,
| from util/evsel.c:23:
|arch/x86/include/perf_regs.h:6:27: fatal error: asm/perf_regs.h: No such file or directory
|
| CC util/rbtree.o
|In file included from ../../lib/rbtree.c:24:0:
|util/include/linux/rbtree_augmented.h:2:56: fatal error: ../../../../include/linux/rbtree_augmented.h: No such file or directory
This patch adds the missing files.
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1357654134-28538-1-git-send-email-bigeasy@linutronix.de
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2013-01-08 22:08:54 +08:00
|
|
|
arch/x86/include/uapi/asm/svm.h
|
|
|
|
arch/x86/include/uapi/asm/vmx.h
|
|
|
|
arch/x86/include/uapi/asm/kvm.h
|
2014-07-03 22:29:04 +08:00
|
|
|
arch/x86/include/uapi/asm/kvm_perf.h
|
2014-07-03 22:29:07 +08:00
|
|
|
arch/s390/include/uapi/asm/sie.h
|
|
|
|
arch/s390/include/uapi/asm/kvm_perf.h
|