diff options
author | Slava Bacherikov <slava@bacher09.org> | 2022-02-02 13:39:46 +0200 |
---|---|---|
committer | Dmitry V. Levin <ldv@strace.io> | 2022-02-02 11:39:46 +0000 |
commit | d8bf3805d12f64d408946e10d8dbf67a7d2330e0 (patch) | |
tree | a99099398808094f79c93aed9011082cbb6ea7d9 /configure.ac | |
parent | dadd6b4a7c678a40840602b0be2410934f6f8d0f (diff) | |
download | strace-d8bf3805d12f64d408946e10d8dbf67a7d2330e0.tar.gz |
printsiginfo: decode siginfo_t.si_pkey field
This adds decoding of si_pkey field which is set on SIGSEGV in case
of memory access violation on some modern CPUs (these have pku flag
in /proc/cpuinfo).
* NEWS: Mention this change.
* configure.ac (AC_CHECK_MEMBERS): Check for siginfo_t.si_pkey.
* src/printsiginfo.c (print_si_info) <case SIGSEGV>
[HAVE_SIGINFO_T_SI_PKEY]: Decode si_pkey field.
Diffstat (limited to 'configure.ac')
-rw-r--r-- | configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/configure.ac b/configure.ac index d17ba04a7..27faa1a81 100644 --- a/configure.ac +++ b/configure.ac @@ -423,7 +423,8 @@ AC_CHECK_MEMBERS([struct utsname.domainname],,, [#include <sys/utsname.h>]) AC_CHECK_MEMBERS(m4_normalize([ siginfo_t.si_syscall, siginfo_t.si_timerid, - siginfo_t.si_overrun + siginfo_t.si_overrun, + siginfo_t.si_pkey ]),,, [#include <signal.h>]) AC_CHECK_HEADERS(m4_normalize([ |