-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
- Loading branch information
Jeremy Fitzhardinge
committed
Jul 18, 2011
1 parent
f04e2ee
commit c796f21
Showing
6 changed files
with
241 additions
and
8 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#ifndef _ASM_XEN_TRACE_TYPES_H | ||
#define _ASM_XEN_TRACE_TYPES_H | ||
|
||
enum xen_mc_flush_reason { | ||
XEN_MC_FL_NONE, /* explicit flush */ | ||
XEN_MC_FL_BATCH, /* out of hypercall space */ | ||
XEN_MC_FL_ARGS, /* out of argument space */ | ||
XEN_MC_FL_CALLBACK, /* out of callback space */ | ||
}; | ||
|
||
enum xen_mc_extend_args { | ||
XEN_MC_XE_OK, | ||
XEN_MC_XE_BAD_OP, | ||
XEN_MC_XE_NO_SPACE | ||
}; | ||
typedef void (*xen_mc_callback_fn_t)(void *); | ||
|
||
#endif /* _ASM_XEN_TRACE_TYPES_H */ |
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 |
---|---|---|
@@ -1,4 +1,61 @@ | ||
#include <linux/ftrace.h> | ||
|
||
#define N(x) [__HYPERVISOR_##x] = "("#x")" | ||
static const char *xen_hypercall_names[] = { | ||
N(set_trap_table), | ||
N(mmu_update), | ||
N(set_gdt), | ||
N(stack_switch), | ||
N(set_callbacks), | ||
N(fpu_taskswitch), | ||
N(sched_op_compat), | ||
N(dom0_op), | ||
N(set_debugreg), | ||
N(get_debugreg), | ||
N(update_descriptor), | ||
N(memory_op), | ||
N(multicall), | ||
N(update_va_mapping), | ||
N(set_timer_op), | ||
N(event_channel_op_compat), | ||
N(xen_version), | ||
N(console_io), | ||
N(physdev_op_compat), | ||
N(grant_table_op), | ||
N(vm_assist), | ||
N(update_va_mapping_otherdomain), | ||
N(iret), | ||
N(vcpu_op), | ||
N(set_segment_base), | ||
N(mmuext_op), | ||
N(acm_op), | ||
N(nmi_op), | ||
N(sched_op), | ||
N(callback_op), | ||
N(xenoprof_op), | ||
N(event_channel_op), | ||
N(physdev_op), | ||
N(hvm_op), | ||
|
||
/* Architecture-specific hypercall definitions. */ | ||
N(arch_0), | ||
N(arch_1), | ||
N(arch_2), | ||
N(arch_3), | ||
N(arch_4), | ||
N(arch_5), | ||
N(arch_6), | ||
N(arch_7), | ||
}; | ||
#undef N | ||
|
||
static const char *xen_hypercall_name(unsigned op) | ||
{ | ||
if (op < ARRAY_SIZE(xen_hypercall_names) && xen_hypercall_names[op] != NULL) | ||
return xen_hypercall_names[op]; | ||
|
||
return ""; | ||
} | ||
|
||
#define CREATE_TRACE_POINTS | ||
#include <trace/events/xen.h> |
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