[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 10/10] REMOVE: Instrumentation to show the module functions being
From: |
Christophe de Dinechin |
Subject: |
[PATCH 10/10] REMOVE: Instrumentation to show the module functions being replaced |
Date: |
Fri, 26 Jun 2020 18:43:07 +0200 |
Signed-off-by: Christophe de Dinechin <dinechin@redhat.com>
---
include/qemu/module.h | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/include/qemu/module.h b/include/qemu/module.h
index 1922a0293c..8d6e10ba81 100644
--- a/include/qemu/module.h
+++ b/include/qemu/module.h
@@ -14,10 +14,13 @@
#ifndef QEMU_MODULE_H
#define QEMU_MODULE_H
+#include "trace/recorder.h"
#define DSO_STAMP_FUN glue(qemu_stamp, CONFIG_STAMP)
#define DSO_STAMP_FUN_STR stringify(DSO_STAMP_FUN)
+RECORDER_DECLARE(modules);
+
#ifdef BUILD_DSO
void DSO_STAMP_FUN(void);
/* This is a dummy symbol to identify a loaded DSO as a QEMU module, so we can
@@ -55,6 +58,7 @@ static void __attribute__((constructor)) do_qemu_init_ ##
function(void) \
static void __attribute__((constructor)) Name##_register(void) \
{ \
Name = Name##_implementation; \
+ record(modules, "Setting " #Name " to %p", Name); \
} \
Ret Name##_implementation Args
#else /* !CONFIG_MODULES */
--
2.26.2
- [PATCH 08/10] build: Add SPICE_CFLAGS and SPICE_LIBS to relevant files, (continued)
[PATCH 10/10] REMOVE: Instrumentation to show the module functions being replaced,
Christophe de Dinechin <=