@@ -123,7 +123,7 @@ trace-events-y = trace-events
trace-events-subdirs += util
trace-events-subdirs += crypto
trace-events-subdirs += io
-trace-events-y += migration/trace-events
+trace-events-subdirs += migration
trace-events-y += block/trace-events
trace-events-y += hw/block/trace-events
trace-events-y += hw/char/trace-events
@@ -10,3 +10,5 @@ common-obj-$(CONFIG_RDMA) += rdma.o
common-obj-y += block.o
+trace-obj-y += trace.o
+trace-obj-$(CONFIG_TRACE_DTRACE) += trace-dtrace.o
@@ -22,7 +22,7 @@
#include "qemu-common.h"
#include "migration/migration.h"
#include "io/channel-command.h"
-#include "trace.h"
+#include "migration/trace.h"
void exec_start_outgoing_migration(MigrationState *s, const char *command, Error **errp)
@@ -20,7 +20,7 @@
#include "migration/migration.h"
#include "monitor/monitor.h"
#include "io/channel-util.h"
-#include "trace.h"
+#include "migration/trace.h"
void fd_start_outgoing_migration(MigrationState *s, const char *fdname, Error **errp)
@@ -29,7 +29,7 @@
#include "migration/postcopy-ram.h"
#include "qemu/thread.h"
#include "qmp-commands.h"
-#include "trace.h"
+#include "migration/trace.h"
#include "qapi-event.h"
#include "qom/cpu.h"
#include "exec/memory.h"
@@ -24,7 +24,7 @@
#include "sysemu/sysemu.h"
#include "sysemu/balloon.h"
#include "qemu/error-report.h"
-#include "trace.h"
+#include "migration/trace.h"
/* Arbitrary limit on size of each discard command,
* keeps them around ~200 bytes
@@ -30,7 +30,7 @@
#include "qemu/coroutine.h"
#include "migration/migration.h"
#include "migration/qemu-file.h"
-#include "trace.h"
+#include "migration/trace.h"
#define IO_BUF_SIZE 32768
#define MAX_IOV_SIZE MIN(IOV_MAX, 64)
@@ -40,7 +40,7 @@
#include "exec/address-spaces.h"
#include "migration/page_cache.h"
#include "qemu/error-report.h"
-#include "trace.h"
+#include "migration/trace.h"
#include "exec/ram_addr.h"
#include "qemu/rcu_queue.h"
@@ -29,7 +29,7 @@
#include <netdb.h>
#include <arpa/inet.h>
#include <rdma/rdma_cma.h>
-#include "trace.h"
+#include "migration/trace.h"
/*
* Print and error on both the Monitor and the Log file.
@@ -46,7 +46,7 @@
#include "sysemu/cpus.h"
#include "exec/memory.h"
#include "qmp-commands.h"
-#include "trace.h"
+#include "migration/trace.h"
#include "qemu/bitops.h"
#include "qemu/iov.h"
#include "block/snapshot.h"
@@ -22,7 +22,7 @@
#include "migration/migration.h"
#include "migration/qemu-file.h"
#include "io/channel-socket.h"
-#include "trace.h"
+#include "migration/trace.h"
static SocketAddress *tcp_build_address(const char *host_port, Error **errp)
@@ -24,7 +24,7 @@
#include "crypto/tlscreds.h"
#include "qemu/error-report.h"
#include "qapi/error.h"
-#include "trace.h"
+#include "migration/trace.h"
static QCryptoTLSCreds *
migration_tls_get_creds(MigrationState *s,
@@ -5,7 +5,7 @@
#include "migration/vmstate.h"
#include "qemu/bitops.h"
#include "qemu/error-report.h"
-#include "trace.h"
+#include "migration/trace.h"
static void vmstate_subsection_save(QEMUFile *f, const VMStateDescription *vmsd,
void *opaque, QJSON *vmdesc);
Switch files in the migration/ directory to include the migration/trace.h file instead of the global trace.h file. Signed-off-by: Daniel P. Berrange <berrange@redhat.com> --- Makefile.objs | 2 +- migration/Makefile.objs | 2 ++ migration/exec.c | 2 +- migration/fd.c | 2 +- migration/migration.c | 2 +- migration/postcopy-ram.c | 2 +- migration/qemu-file.c | 2 +- migration/ram.c | 2 +- migration/rdma.c | 2 +- migration/savevm.c | 2 +- migration/socket.c | 2 +- migration/tls.c | 2 +- migration/vmstate.c | 2 +- 13 files changed, 14 insertions(+), 12 deletions(-)