mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-30 13:36:45 +07:00
3be8e2a0a5
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>
26 lines
608 B
C
26 lines
608 B
C
/*
|
|
* Definitions for perf-kvm on s390
|
|
*
|
|
* Copyright 2014 IBM Corp.
|
|
* Author(s): Alexander Yarygin <yarygin@linux.vnet.ibm.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License (version 2 only)
|
|
* as published by the Free Software Foundation.
|
|
*/
|
|
|
|
#ifndef __LINUX_KVM_PERF_S390_H
|
|
#define __LINUX_KVM_PERF_S390_H
|
|
|
|
#include <asm/sie.h>
|
|
|
|
#define DECODE_STR_LEN 40
|
|
|
|
#define VCPU_ID "id"
|
|
|
|
#define KVM_ENTRY_TRACE "kvm:kvm_s390_sie_enter"
|
|
#define KVM_EXIT_TRACE "kvm:kvm_s390_sie_exit"
|
|
#define KVM_EXIT_REASON "icptcode"
|
|
|
|
#endif
|