-
Notifications
You must be signed in to change notification settings - Fork 53.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
KVM: PPC: Book3S HV: Tracepoints for KVM HV guest interactions
This patch adds trace points in the guest entry and exit code and also for exceptions handled by the host in kernel mode - hypercalls and page faults. The new events are added to /sys/kernel/debug/tracing/events under a new subsystem called kvm_hv. Acked-by: Paul Mackerras <[email protected]> Signed-off-by: Suresh Warrier <[email protected]> Signed-off-by: Alexander Graf <[email protected]>
- Loading branch information
Showing
5 changed files
with
539 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#if !defined(_TRACE_KVM_BOOK3S_H) | ||
#define _TRACE_KVM_BOOK3S_H | ||
|
||
/* | ||
* Common defines used by the trace macros in trace_pr.h and trace_hv.h | ||
*/ | ||
|
||
#define kvm_trace_symbol_exit \ | ||
{0x100, "SYSTEM_RESET"}, \ | ||
{0x200, "MACHINE_CHECK"}, \ | ||
{0x300, "DATA_STORAGE"}, \ | ||
{0x380, "DATA_SEGMENT"}, \ | ||
{0x400, "INST_STORAGE"}, \ | ||
{0x480, "INST_SEGMENT"}, \ | ||
{0x500, "EXTERNAL"}, \ | ||
{0x501, "EXTERNAL_LEVEL"}, \ | ||
{0x502, "EXTERNAL_HV"}, \ | ||
{0x600, "ALIGNMENT"}, \ | ||
{0x700, "PROGRAM"}, \ | ||
{0x800, "FP_UNAVAIL"}, \ | ||
{0x900, "DECREMENTER"}, \ | ||
{0x980, "HV_DECREMENTER"}, \ | ||
{0xc00, "SYSCALL"}, \ | ||
{0xd00, "TRACE"}, \ | ||
{0xe00, "H_DATA_STORAGE"}, \ | ||
{0xe20, "H_INST_STORAGE"}, \ | ||
{0xe40, "H_EMUL_ASSIST"}, \ | ||
{0xf00, "PERFMON"}, \ | ||
{0xf20, "ALTIVEC"}, \ | ||
{0xf40, "VSX"} | ||
|
||
#endif |
Oops, something went wrong.