mirror of https://github.com/xemu-project/xemu.git
modules: add tracepoints
One for module load and one for qom type lookup. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com> Reviewed-by: Jose R. Ziviani <jziviani@suse.de> Message-Id: <20210624103836.2382472-18-kraxel@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
5111edaf9e
commit
819b8b13c1
|
@ -24,6 +24,7 @@
|
||||||
#ifdef CONFIG_MODULE_UPGRADES
|
#ifdef CONFIG_MODULE_UPGRADES
|
||||||
#include "qemu-version.h"
|
#include "qemu-version.h"
|
||||||
#endif
|
#endif
|
||||||
|
#include "trace.h"
|
||||||
|
|
||||||
typedef struct ModuleEntry
|
typedef struct ModuleEntry
|
||||||
{
|
{
|
||||||
|
@ -176,6 +177,7 @@ static int module_load_file(const char *fname, bool mayfail, bool export_symbols
|
||||||
ret = 0;
|
ret = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
trace_module_load_module(fname);
|
||||||
QTAILQ_FOREACH_SAFE(e, &dso_init_list, node, next) {
|
QTAILQ_FOREACH_SAFE(e, &dso_init_list, node, next) {
|
||||||
QTAILQ_REMOVE(&dso_init_list, e, node);
|
QTAILQ_REMOVE(&dso_init_list, e, node);
|
||||||
g_free(e);
|
g_free(e);
|
||||||
|
@ -294,6 +296,7 @@ void module_load_qom_one(const char *type)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
trace_module_lookup_object_type(type);
|
||||||
for (modinfo = module_info; modinfo->name != NULL; modinfo++) {
|
for (modinfo = module_info; modinfo->name != NULL; modinfo++) {
|
||||||
if (!modinfo->objs) {
|
if (!modinfo->objs) {
|
||||||
continue;
|
continue;
|
||||||
|
|
|
@ -100,3 +100,7 @@ uffd_create_fd_api_failed(int err) "errno: %i"
|
||||||
uffd_create_fd_api_noioctl(uint64_t ioctl_req, uint64_t ioctl_supp) "ioctl_req: 0x%" PRIx64 "ioctl_supp: 0x%" PRIx64
|
uffd_create_fd_api_noioctl(uint64_t ioctl_req, uint64_t ioctl_supp) "ioctl_req: 0x%" PRIx64 "ioctl_supp: 0x%" PRIx64
|
||||||
uffd_register_memory_failed(void *addr, uint64_t length, uint64_t mode, int err) "addr: %p length: %" PRIu64 " mode: 0x%" PRIx64 " errno: %i"
|
uffd_register_memory_failed(void *addr, uint64_t length, uint64_t mode, int err) "addr: %p length: %" PRIu64 " mode: 0x%" PRIx64 " errno: %i"
|
||||||
uffd_unregister_memory_failed(void *addr, uint64_t length, int err) "addr: %p length: %" PRIu64 " errno: %i"
|
uffd_unregister_memory_failed(void *addr, uint64_t length, int err) "addr: %p length: %" PRIu64 " errno: %i"
|
||||||
|
|
||||||
|
# module.c
|
||||||
|
module_load_module(const char *name) "file %s"
|
||||||
|
module_lookup_object_type(const char *name) "name %s"
|
||||||
|
|
Loading…
Reference in New Issue