[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v5 19/55] *-user: notify plugin of exit
From: |
Alex Bennée |
Subject: |
[PATCH v5 19/55] *-user: notify plugin of exit |
Date: |
Mon, 14 Oct 2019 11:49:12 +0100 |
From: "Emilio G. Cota" <address@hidden>
Reviewed-by: Alex Bennée <address@hidden>
Signed-off-by: Emilio G. Cota <address@hidden>
Reviewed-by: Richard Henderson <address@hidden>
Signed-off-by: Alex Bennée <address@hidden>
---
bsd-user/syscall.c | 3 +++
linux-user/exit.c | 1 +
2 files changed, 4 insertions(+)
diff --git a/bsd-user/syscall.c b/bsd-user/syscall.c
index 1ee6195d9f..84a983a9a1 100644
--- a/bsd-user/syscall.c
+++ b/bsd-user/syscall.c
@@ -332,6 +332,7 @@ abi_long do_freebsd_syscall(void *cpu_env, int num,
abi_long arg1,
_mcleanup();
#endif
gdb_exit(cpu_env, arg1);
+ qemu_plugin_atexit_cb();
/* XXX: should free thread stack and CPU env */
_exit(arg1);
ret = 0; /* avoid warning */
@@ -430,6 +431,7 @@ abi_long do_netbsd_syscall(void *cpu_env, int num, abi_long
arg1,
_mcleanup();
#endif
gdb_exit(cpu_env, arg1);
+ qemu_plugin_atexit_cb();
/* XXX: should free thread stack and CPU env */
_exit(arg1);
ret = 0; /* avoid warning */
@@ -505,6 +507,7 @@ abi_long do_openbsd_syscall(void *cpu_env, int num,
abi_long arg1,
_mcleanup();
#endif
gdb_exit(cpu_env, arg1);
+ qemu_plugin_atexit_cb();
/* XXX: should free thread stack and CPU env */
_exit(arg1);
ret = 0; /* avoid warning */
diff --git a/linux-user/exit.c b/linux-user/exit.c
index bdda720553..a362ef67d2 100644
--- a/linux-user/exit.c
+++ b/linux-user/exit.c
@@ -35,4 +35,5 @@ void preexit_cleanup(CPUArchState *env, int code)
__gcov_dump();
#endif
gdb_exit(env, code);
+ qemu_plugin_atexit_cb();
}
--
2.20.1
- [PATCH v5 29/55] target/m68k: fetch code with translator_ld, (continued)
- [PATCH v5 29/55] target/m68k: fetch code with translator_ld, Alex Bennée, 2019/10/14
- [PATCH v5 26/55] target/sh4: fetch code with translator_ld, Alex Bennée, 2019/10/14
- [PATCH v5 48/55] tests/plugin: add hotpages plugin to breakdown memory access patterns, Alex Bennée, 2019/10/14
- [PATCH v5 16/55] tcg: let plugins instrument virtual memory accesses, Alex Bennée, 2019/10/14
- [PATCH v5 14/55] plugin-gen: add module for TCG-related code, Alex Bennée, 2019/10/14
- [PATCH v5 35/55] translator: inject instrumentation from plugins, Alex Bennée, 2019/10/14
- [PATCH v5 28/55] target/hppa: fetch code with translator_ld, Alex Bennée, 2019/10/14
- [PATCH v5 34/55] target/openrisc: fetch code with translator_ld, Alex Bennée, 2019/10/14
- [PATCH v5 19/55] *-user: notify plugin of exit,
Alex Bennée <=
- [PATCH v5 23/55] translator: add translator_ld{ub,sw,uw,l,q}, Alex Bennée, 2019/10/14
- Re: [PATCH v5 23/55] translator: add translator_ld{ub,sw,uw,l,q}, Richard Henderson, 2019/10/14
- Re: [PATCH v5 23/55] translator: add translator_ld{ub,sw,uw,l,q}, Peter Maydell, 2019/10/14
- Re: [PATCH v5 23/55] translator: add translator_ld{ub,sw,uw,l,q}, Alex Bennée, 2019/10/15
- Re: [PATCH v5 23/55] translator: add translator_ld{ub,sw,uw,l,q}, Alex Bennée, 2019/10/15
- Re: [PATCH v5 23/55] translator: add translator_ld{ub,sw,uw,l,q}, Alex Bennée, 2019/10/15
- [PATCH v5 53/55] plugins: add sparc64 instruction classification table, Alex Bennée, 2019/10/14