On Thu, Aug 25, 2011 at 09:18:04PM +0200, Lluís wrote: > diff --git a/trace/control.h b/trace/control.h > new file mode 100644 > index 0000000..80526f7 > --- /dev/null > +++ b/trace/control.h > @@ -0,0 +1,23 @@ > +/* > + * Interface for configuring and controlling the state of tracing events. > + * > + * Copyright (C) 2011 Lluís Vilanova <vilan...@ac.upc.edu> > + * > + * This work is licensed under the terms of the GNU GPL, version 2. See > + * the COPYING file in the top-level directory. > + */ > + > +#ifndef TRACE_CONTROL_H > +#define TRACE_CONTROL_H > + > +#include <stdbool.h> > + > +/** Whether any cmdline trace option is avilable. */
s/avilable/available/ > +bool trace_config_init (void); > +/** Configure output trace file. > + * > + * @return Whether cmdline option is available. > + */ > +bool trace_config_init_file (const char *file); > + > +#endif /* TRACE_CONTROL_H */ > diff --git a/trace/dtrace.c b/trace/dtrace.c > new file mode 100644 > index 0000000..e0121ca > --- /dev/null > +++ b/trace/dtrace.c > @@ -0,0 +1,12 @@ > +#inclued "trace/control.h" #include Instead of duplicating all of this I suggest creating trace/default-backend.c and linking that in for all external trace backends which do not have qemu -trace ... support. Stefan