/****************************************************************************** * common/trace.c * * Xen Trace Buffer * * Copyright (C) 2004 by Intel Research Cambridge * * Authors: Mark Williamson, mark.a.williamson@intel.com * Rob Gardner, rob.gardner@hp.com * Date: October 2005 * * Copyright (C) 2005 Bin Ren * * The trace buffer code is designed to allow debugging traces of Xen to be * generated on UP / SMP machines. Each trace entry is timestamped so that * it's possible to reconstruct a chronological record of trace events. */#include<xen/config.h>#include<asm/types.h>#include<asm/io.h>#include<xen/lib.h>#include<xen/sched.h>#include<xen/smp.h>#include<xen/trace.h>#include<xen/errno.h>#include<xen/event.h>#include<xen/tasklet.h>#include<xen/init.h>#include<xen/mm.h>#include<xen/percpu.h>#include<xen/pfn.h>#include<xen/cpu.h>#include<asm/atomic.h>#include<public/sysctl.h>#ifdef CONFIG_COMPAT#include<compat/trace.h>#define xen_t_buf t_bufCHECK_t_buf;