aboutsummaryrefslogtreecommitdiffstats
path: root/xen/arch/x86/trace.c
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2012-09-12 13:29:30 +0100
committerKeir Fraser <keir@xen.org>2012-09-12 13:29:30 +0100
commit5d1181a5ea5e0f11d481a94b16ed00d883f9726e (patch)
tree4b43be5829873f2ec1a1b2d0f7e26b15dffb11c6 /xen/arch/x86/trace.c
parentb314cd733413babc5978b819793ad5c77f094adf (diff)
downloadxen-5d1181a5ea5e0f11d481a94b16ed00d883f9726e.tar.gz
xen-5d1181a5ea5e0f11d481a94b16ed00d883f9726e.tar.bz2
xen-5d1181a5ea5e0f11d481a94b16ed00d883f9726e.zip
xen: Remove x86_32 build target.
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/arch/x86/trace.c')
-rw-r--r--xen/arch/x86/trace.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/xen/arch/x86/trace.c b/xen/arch/x86/trace.c
index 404f293188..c09acf7a48 100644
--- a/xen/arch/x86/trace.c
+++ b/xen/arch/x86/trace.c
@@ -6,16 +6,10 @@
#include <xen/sched.h>
#include <xen/trace.h>
-#ifndef __x86_64__
-#undef TRC_64_FLAG
-#define TRC_64_FLAG 0
-#endif
-
void trace_hypercall(void)
{
struct cpu_user_regs *regs = guest_cpu_user_regs();
-#ifdef __x86_64__
if ( is_pv_32on64_vcpu(current) )
{
struct {
@@ -28,7 +22,6 @@ void trace_hypercall(void)
__trace_var(TRC_PV_HYPERCALL, 1, sizeof(d), &d);
}
else
-#endif
{
struct {
unsigned long eip;
@@ -48,7 +41,6 @@ void trace_hypercall(void)
void __trace_pv_trap(int trapnr, unsigned long eip,
int use_error_code, unsigned error_code)
{
-#ifdef __x86_64__
if ( is_pv_32on64_vcpu(current) )
{
struct {
@@ -66,7 +58,6 @@ void __trace_pv_trap(int trapnr, unsigned long eip,
__trace_var(TRC_PV_TRAP, 1, sizeof(d), &d);
}
else
-#endif
{
struct {
unsigned long eip;
@@ -91,7 +82,6 @@ void __trace_pv_page_fault(unsigned long addr, unsigned error_code)
{
unsigned long eip = guest_cpu_user_regs()->eip;
-#ifdef __x86_64__
if ( is_pv_32on64_vcpu(current) )
{
struct {
@@ -105,7 +95,6 @@ void __trace_pv_page_fault(unsigned long addr, unsigned error_code)
__trace_var(TRC_PV_PAGE_FAULT, 1, sizeof(d), &d);
}
else
-#endif
{
struct {
unsigned long eip, addr;
@@ -124,14 +113,12 @@ void __trace_pv_page_fault(unsigned long addr, unsigned error_code)
void __trace_trap_one_addr(unsigned event, unsigned long va)
{
-#ifdef __x86_64__
if ( is_pv_32on64_vcpu(current) )
{
u32 d = va;
__trace_var(event, 1, sizeof(d), &d);
}
else
-#endif
{
event |= TRC_64_FLAG;
__trace_var(event, 1, sizeof(va), &va);
@@ -141,7 +128,6 @@ void __trace_trap_one_addr(unsigned event, unsigned long va)
void __trace_trap_two_addr(unsigned event, unsigned long va1,
unsigned long va2)
{
-#ifdef __x86_64__
if ( is_pv_32on64_vcpu(current) )
{
struct {
@@ -152,7 +138,6 @@ void __trace_trap_two_addr(unsigned event, unsigned long va1,
__trace_var(event, 1, sizeof(d), &d);
}
else
-#endif
{
struct {
unsigned long va1, va2;
@@ -176,7 +161,6 @@ void __trace_ptwr_emulation(unsigned long addr, l1_pgentry_t npte)
* cases, "unsigned long" is the size of a guest virtual address.
*/
-#ifdef __x86_64__
if ( is_pv_32on64_vcpu(current) )
{
struct {
@@ -190,7 +174,6 @@ void __trace_ptwr_emulation(unsigned long addr, l1_pgentry_t npte)
__trace_var(TRC_PV_PTWR_EMULATION_PAE, 1, sizeof(d), &d);
}
else
-#endif
{
struct {
l1_pgentry_t pte;