[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 23/40] bsd-user: Add trace events for bsd-user
From: |
Warner Losh |
Subject: |
[PATCH v2 23/40] bsd-user: Add trace events for bsd-user |
Date: |
Mon, 24 Jan 2022 18:29:30 -0700 |
Add the bsd-user specific events and infrastructure. Only include the
linux-user trace events for linux-user, not bsd-user.
Signed-off-by: Stacey Son <sson@FreeBSD.org>
Signed-off-by: Kyle Evans <kevans@freebsd.org>
Signed-off-by: Warner Losh <imp@bsdimp.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
---
bsd-user/signal.c | 1 +
bsd-user/trace-events | 11 +++++++++++
bsd-user/trace.h | 1 +
meson.build | 5 ++++-
4 files changed, 17 insertions(+), 1 deletion(-)
create mode 100644 bsd-user/trace-events
create mode 100644 bsd-user/trace.h
diff --git a/bsd-user/signal.c b/bsd-user/signal.c
index f3e020e004a..cb0036acb61 100644
--- a/bsd-user/signal.c
+++ b/bsd-user/signal.c
@@ -21,6 +21,7 @@
#include "qemu/osdep.h"
#include "qemu.h"
#include "signal-common.h"
+#include "trace.h"
#include "hw/core/tcg-cpu-ops.h"
#include "host-signal.h"
diff --git a/bsd-user/trace-events b/bsd-user/trace-events
new file mode 100644
index 00000000000..843896f6271
--- /dev/null
+++ b/bsd-user/trace-events
@@ -0,0 +1,11 @@
+# See docs/tracing.txt for syntax documentation.
+
+# bsd-user/signal.c
+user_setup_frame(void *env, uint64_t frame_addr) "env=%p frame_addr=0x%"PRIx64
+user_setup_rt_frame(void *env, uint64_t frame_addr) "env=%p
frame_addr=0x%"PRIx64
+user_do_rt_sigreturn(void *env, uint64_t frame_addr) "env=%p
frame_addr=0x%"PRIx64
+user_do_sigreturn(void *env, uint64_t frame_addr) "env=%p frame_addr=0x%"PRIx64
+user_dump_core_and_abort(void *env, int target_sig, int host_sig) "env=%p
signal %d (host %d)"
+user_handle_signal(void *env, int target_sig) "env=%p signal %d"
+user_host_signal(void *env, int host_sig, int target_sig) "env=%p signal %d
(target %d("
+user_queue_signal(void *env, int target_sig) "env=%p signal %d"
diff --git a/bsd-user/trace.h b/bsd-user/trace.h
new file mode 100644
index 00000000000..593c0204add
--- /dev/null
+++ b/bsd-user/trace.h
@@ -0,0 +1 @@
+#include "trace/trace-bsd_user.h"
diff --git a/meson.build b/meson.build
index 99bb7ba3a57..9fc9e0ddab9 100644
--- a/meson.build
+++ b/meson.build
@@ -2437,9 +2437,12 @@ trace_events_subdirs = [
'monitor',
'util',
]
-if have_user
+if have_linux_user
trace_events_subdirs += [ 'linux-user' ]
endif
+if have_bsd_user
+ trace_events_subdirs += [ 'bsd-user' ]
+endif
if have_block
trace_events_subdirs += [
'authz',
--
2.33.1
- [PATCH v2 13/40] bsd-user/arm/target_arch_cpu.h: Correct code pointer, (continued)
- [PATCH v2 13/40] bsd-user/arm/target_arch_cpu.h: Correct code pointer, Warner Losh, 2022/01/24
- [PATCH v2 15/40] bsd-user/arm/target_arch_cpu.h: Implement data faults, Warner Losh, 2022/01/24
- [PATCH v2 11/40] bsd-user/signal.c: implement cpu_loop_exit_sigbus, Warner Losh, 2022/01/24
- [PATCH v2 12/40] bsd-user/arm/arget_arch_cpu.h: Move EXCP_DEBUG and EXCP_BKPT together, Warner Losh, 2022/01/24
- [PATCH v2 22/40] bsd-user: Add host signals to the build, Warner Losh, 2022/01/24
- [PATCH v2 17/40] bsd-user/signal.c: Implement signal_init(), Warner Losh, 2022/01/24
- [PATCH v2 19/40] bsd-user/host/arm/host-signal.h: Implement host_signal_*, Warner Losh, 2022/01/24
- [PATCH v2 26/40] bsd-user/signal.c: Implement host_signal_handler, Warner Losh, 2022/01/24
- [PATCH v2 23/40] bsd-user: Add trace events for bsd-user,
Warner Losh <=
- [PATCH v2 21/40] bsd-user/host/x86_64/host-signal.h: Implement host_signal_*, Warner Losh, 2022/01/24
- [PATCH v2 29/40] bsd-user/signal.c: Fill in queue_signal, Warner Losh, 2022/01/24
- [PATCH v2 30/40] bsd-user/signal.c: sigset manipulation routines., Warner Losh, 2022/01/24
- [PATCH v2 35/40] bsd-user/signal.c: implement do_sigreturn, Warner Losh, 2022/01/24
- [PATCH v2 33/40] bsd-user/signal.c: tswap_siginfo, Warner Losh, 2022/01/24