[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v3 21/50] *-user: notify plugin of exit
From: |
Alex Bennée |
Subject: |
[Qemu-devel] [PATCH v3 21/50] *-user: notify plugin of exit |
Date: |
Fri, 14 Jun 2019 18:11:31 +0100 |
From: "Emilio G. Cota" <address@hidden>
Reviewed-by: Alex Bennée <address@hidden>
Signed-off-by: Emilio G. Cota <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
- [Qemu-devel] [PATCH v3 05/50] docs/devel: add plugins.rst design document, (continued)
- [Qemu-devel] [PATCH v3 05/50] docs/devel: add plugins.rst design document, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 12/50] cputlb: introduce get_page_addr_code_hostp, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 14/50] tcg: add tcg_gen_st_ptr, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 10/50] queue: add QTAILQ_REMOVE_SEVERAL, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 07/50] plugin: add user-facing API, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 09/50] plugin: add implementation of the api, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 08/50] plugin: add core code, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 49/50] include/exec/cpu-defs.h: fix typo, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 21/50] *-user: notify plugin of exit,
Alex Bennée <=
- [Qemu-devel] [PATCH v3 28/50] target/sh4: fetch code with translator_ld, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 35/50] target/xtensa: fetch code with translator_ld, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 43/50] tests/plugin: add a hotblocks plugin, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 23/50] cpu: hook plugin vcpu events, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 11/50] cputlb: document get_page_addr_code, Alex Bennée, 2019/06/14
- [Qemu-devel] [PATCH v3 44/50] plugin: add qemu_plugin_insn_disas helper, Alex Bennée, 2019/06/14