backtrace: rework for signal safety

Mostly, try a lot harder to not allocate anything.

Sponsored-by: Klara, Inc.
Sponsored-by: Wasabi Technology, Inc.
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Rob Norris <rob.norris@klarasystems.com>
Closes #16181
This commit is contained in:
Rob Norris
2024-05-10 13:04:14 +10:00
committed by Brian Behlendorf
parent 3974ef045e
commit 1ea8c59441
5 changed files with 68 additions and 31 deletions
+1 -1
View File
@@ -27,6 +27,6 @@
#ifndef _LIBSPL_SYS_BACKTRACE_H
#define _LIBSPL_SYS_BACKTRACE_H
void libspl_backtrace(void);
void libspl_backtrace(int fd);
#endif