mirror of
https://github.com/torvalds/linux.git
synced 2026-11-27 08:52:27 +00:00
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 <[email protected]> Signed-off-by: Alexander Yarygin <[email protected]> Acked-by: Christian Borntraeger <[email protected]> Cc: Christian Borntraeger <[email protected]> Cc: Cornelia Huck <[email protected]> Cc: David Ahern <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: Paul Mackerras <[email protected]> Cc: Peter Zijlstra <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
26 lines
608 B
C
26 lines
608 B
C
/*
|
|
* Definitions for perf-kvm on s390
|
|
*
|
|
* Copyright 2014 IBM Corp.
|
|
* Author(s): Alexander Yarygin <[email protected]>
|
|
*
|
|
* 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
|