The branch main has been updated by kib: URL: https://cgit.FreeBSD.org/src/commit/?id=ac1a57f6c325cf5d66a82256de42fdae49121466
commit ac1a57f6c325cf5d66a82256de42fdae49121466 Author: Konstantin Belousov <k...@freebsd.org> AuthorDate: 2025-05-31 21:11:47 +0000 Commit: Konstantin Belousov <k...@freebsd.org> CommitDate: 2025-06-03 02:47:38 +0000 ktrace: define user interface for tracing extended errors Reviewed by: brooks Sponsored by: The FreeBSD Foundation MFC after: 1 week Differential revision: https://reviews.freebsd.org/D50633 --- sys/sys/ktrace.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sys/sys/ktrace.h b/sys/sys/ktrace.h index 6608b9250da4..dba650c72494 100644 --- a/sys/sys/ktrace.h +++ b/sys/sys/ktrace.h @@ -36,6 +36,7 @@ #include <sys/caprights.h> #include <sys/signal.h> #include <sys/socket.h> +#include <sys/_uexterror.h> #include <sys/_uio.h> /* @@ -272,6 +273,14 @@ struct ktr_struct_array { */ #define KTR_ENVS 17 +/* + * KTR_EXTERR - extended error reported + */ +#define KTR_EXTERR 18 +struct ktr_exterr { + struct uexterror ue; +}; + /* * KTR_DROP - If this bit is set in ktr_type, then at least one event * between the previous record and this record was dropped. @@ -306,6 +315,7 @@ struct ktr_struct_array { #define KTRFAC_STRUCT_ARRAY (1<<KTR_STRUCT_ARRAY) #define KTRFAC_ARGS (1<<KTR_ARGS) #define KTRFAC_ENVS (1<<KTR_ENVS) +#define KTRFAC_EXTERR (1<<KTR_EXTERR) /* * trace flags (also in p_traceflags)