diff options
author | Alexander Yarygin <yarygin@linux.vnet.ibm.com> | 2014-07-03 10:29:07 -0400 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2014-07-16 16:57:33 -0400 |
commit | 3be8e2a0a53c3179a44a933614f6a893da0b5c19 (patch) | |
tree | 7f2ebeed37634cfcf46244e80ad1c1c90642e389 /arch/s390 | |
parent | 54c801ff71ba9c9ae41871e226b9d846ff9c6bab (diff) |
perf kvm: Add stat support on s390
On s390, the vmexit event has a tree-like structure: between
exit_event_begin and exit_event_end several other events may happen and
with each of them refining the previous ones.
This patch adds a decoder for such events to the generic code and also
the files <asm/kvm_perf.h> and kvm-stat.c for s390.
Commands 'perf kvm stat record', 'report' and 'live' are supported.
Reviewed-by: David Ahern <dsahern@gmail.com>
Signed-off-by: Alexander Yarygin <yarygin@linux.vnet.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: Jiri Olsa <jolsa@redhat.com>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1404397747-20939-5-git-send-email-yarygin@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'arch/s390')
-rw-r--r-- | arch/s390/include/uapi/asm/Kbuild | 1 | ||||
-rw-r--r-- | arch/s390/include/uapi/asm/kvm_perf.h | 25 |
2 files changed, 26 insertions, 0 deletions
diff --git a/arch/s390/include/uapi/asm/Kbuild b/arch/s390/include/uapi/asm/Kbuild index 6a9a9eb645f5..0e2b54db82bc 100644 --- a/arch/s390/include/uapi/asm/Kbuild +++ b/arch/s390/include/uapi/asm/Kbuild | |||
@@ -16,6 +16,7 @@ header-y += ioctls.h | |||
16 | header-y += ipcbuf.h | 16 | header-y += ipcbuf.h |
17 | header-y += kvm.h | 17 | header-y += kvm.h |
18 | header-y += kvm_para.h | 18 | header-y += kvm_para.h |
19 | header-y += kvm_perf.h | ||
19 | header-y += kvm_virtio.h | 20 | header-y += kvm_virtio.h |
20 | header-y += mman.h | 21 | header-y += mman.h |
21 | header-y += monwriter.h | 22 | header-y += monwriter.h |
diff --git a/arch/s390/include/uapi/asm/kvm_perf.h b/arch/s390/include/uapi/asm/kvm_perf.h new file mode 100644 index 000000000000..397282727e21 --- /dev/null +++ b/arch/s390/include/uapi/asm/kvm_perf.h | |||
@@ -0,0 +1,25 @@ | |||
1 | /* | ||
2 | * Definitions for perf-kvm on s390 | ||
3 | * | ||
4 | * Copyright 2014 IBM Corp. | ||
5 | * Author(s): Alexander Yarygin <yarygin@linux.vnet.ibm.com> | ||
6 | * | ||
7 | * This program is free software; you can redistribute it and/or modify | ||
8 | * it under the terms of the GNU General Public License (version 2 only) | ||
9 | * as published by the Free Software Foundation. | ||
10 | */ | ||
11 | |||
12 | #ifndef __LINUX_KVM_PERF_S390_H | ||
13 | #define __LINUX_KVM_PERF_S390_H | ||
14 | |||
15 | #include <asm/sie.h> | ||
16 | |||
17 | #define DECODE_STR_LEN 40 | ||
18 | |||
19 | #define VCPU_ID "id" | ||
20 | |||
21 | #define KVM_ENTRY_TRACE "kvm:kvm_s390_sie_enter" | ||
22 | #define KVM_EXIT_TRACE "kvm:kvm_s390_sie_exit" | ||
23 | #define KVM_EXIT_REASON "icptcode" | ||
24 | |||
25 | #endif | ||