aboutsummaryrefslogtreecommitdiffstats
path: root/cmd/zdb
diff options
context:
space:
mode:
authorRob Norris <[email protected]>2024-05-10 11:26:11 +1000
committerBrian Behlendorf <[email protected]>2024-05-14 09:48:45 -0700
commit3974ef045ef270e72be6ca1d20baf67bfbecfbe5 (patch)
treec8e871234e1819c270995948275b925004275f15 /cmd/zdb
parente7b451941b92e2bdbb9c08bb4283c9a39d5571c6 (diff)
libspl: lift backtrace into a separate file
If it's going to be used directly by zdb/ztest, then it sort of doesn't make sense to carry it with the assert code. Sponsored-by: Klara, Inc. Sponsored-by: Wasabi Technology, Inc. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Rob Norris <[email protected]> Closes #16181
Diffstat (limited to 'cmd/zdb')
-rw-r--r--cmd/zdb/zdb.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cmd/zdb/zdb.c b/cmd/zdb/zdb.c
index 908e4e0ab..01d584844 100644
--- a/cmd/zdb/zdb.c
+++ b/cmd/zdb/zdb.c
@@ -85,6 +85,7 @@
#include <sys/brt_impl.h>
#include <zfs_comutil.h>
#include <sys/zstd/zstd.h>
+#include <sys/backtrace.h>
#include <libnvpair.h>
#include <libzutil.h>
@@ -844,7 +845,7 @@ static void sig_handler(int signo)
{
struct sigaction action;
- libspl_dump_backtrace();
+ libspl_backtrace();
dump_debug_buffer();
/*