diff options
author | Rob Norris <[email protected]> | 2024-04-21 21:43:53 +1000 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2024-05-01 10:51:49 -0700 |
commit | 394800200e033f3a21dcbbf38a1e71b9d33b3b70 (patch) | |
tree | ae4650af7452a87003ce7b9dacd667b4c44db666 /config/user.m4 | |
parent | 4429ad9276cea193bb29463a7d6c38367d0d78ce (diff) |
libspl/assert: show process/task details in assert output
Makes it much easier to see what thing complained.
Getting thread id, program name and thread name vary wildly between
Linux and FreeBSD, so those are set up in macros. pthread_getname_np()
did not appear in musl until very recently, but the same info has always
been available via prctl(PR_GET_NAME), so we use that instead.
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Rob Norris <[email protected]>
Sponsored-by: https://despairlabs.com/sponsor/
Closes #16140
Diffstat (limited to 'config/user.m4')
-rw-r--r-- | config/user.m4 | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/config/user.m4 b/config/user.m4 index 87df8c7cc..3a69086a9 100644 --- a/config/user.m4 +++ b/config/user.m4 @@ -31,7 +31,7 @@ AC_DEFUN([ZFS_AC_CONFIG_USER], [ ZFS_AC_CONFIG_USER_MAKEDEV_IN_MKDEV ZFS_AC_CONFIG_USER_ZFSEXEC - AC_CHECK_FUNCS([execvpe issetugid mlockall strlcat strlcpy]) + AC_CHECK_FUNCS([execvpe issetugid mlockall strlcat strlcpy gettid]) AC_SUBST(RM) ]) |