diff options
author | Laurent Vivier | 2020-02-12 13:56:58 +0100 |
---|---|---|
committer | Laurent Vivier | 2020-02-12 18:56:41 +0100 |
commit | 6bc024e713fd35eb5fddbe16acd8dc92d27872a9 (patch) | |
tree | ec7229f3d63b2b4071d8d4ab12da477a62e9b38f /linux-user/trace-events | |
parent | linux-user: fix TARGET_NSIG and _NSIG uses (diff) | |
download | qemu-6bc024e713fd35eb5fddbe16acd8dc92d27872a9.tar.gz qemu-6bc024e713fd35eb5fddbe16acd8dc92d27872a9.tar.xz qemu-6bc024e713fd35eb5fddbe16acd8dc92d27872a9.zip |
linux-user: fix use of SIGRTMIN
Some RT signals can be in use by glibc,
it's why SIGRTMIN (34) is generally greater than __SIGRTMIN (32).
So SIGRTMIN cannot be mapped to TARGET_SIGRTMIN.
Instead of swapping only SIGRTMIN and SIGRTMAX, map all the
range [TARGET_SIGRTMIN ... TARGET_SIGRTMAX - X] to
[__SIGRTMIN + X ... SIGRTMAX ]
(SIGRTMIN is __SIGRTMIN + X).
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Taylor Simson <tsimpson@quicinc.com>
Tested-by: Taylor Simpson <tsimpson@quicinc.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Message-Id: <20200212125658.644558-5-laurent@vivier.eu>
Diffstat (limited to 'linux-user/trace-events')
-rw-r--r-- | linux-user/trace-events | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/linux-user/trace-events b/linux-user/trace-events index f6de1b8bef..0296133dae 100644 --- a/linux-user/trace-events +++ b/linux-user/trace-events @@ -1,6 +1,9 @@ # See docs/devel/tracing.txt for syntax documentation. # signal.c +signal_table_init(int i) "number of unavailable signals: %d" +signal_do_sigaction_guest(int sig, int max) "target signal %d (MAX %d)" +signal_do_sigaction_host(int sig, int max) "host signal %d (MAX %d)" # */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 |