git: 49246fc249a6 - stable/13 - procstat(1): print AT_USRSTACKBASE and AT_USRSTACKLIM

From: Konstantin Belousov <kib_at_FreeBSD.org>
Date: Fri, 30 Sep 2022 02:04:12 UTC
The branch stable/13 has been updated by kib:

URL: https://cgit.FreeBSD.org/src/commit/?id=49246fc249a62680ebdd3f211fe384d70902728c

commit 49246fc249a62680ebdd3f211fe384d70902728c
Author:     Konstantin Belousov <kib@FreeBSD.org>
AuthorDate: 2022-09-15 10:14:17 +0000
Commit:     Konstantin Belousov <kib@FreeBSD.org>
CommitDate: 2022-09-30 00:29:09 +0000

    procstat(1): print AT_USRSTACKBASE and AT_USRSTACKLIM
    
    (cherry picked from commit 1d280f21427f560c696476366cfeb74d93629293)
---
 usr.bin/procstat/procstat_auxv.c | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/usr.bin/procstat/procstat_auxv.c b/usr.bin/procstat/procstat_auxv.c
index d62ed6028569..d58faf9777c4 100644
--- a/usr.bin/procstat/procstat_auxv.c
+++ b/usr.bin/procstat/procstat_auxv.c
@@ -245,6 +245,20 @@ procstat_auxv(struct procstat *procstat, struct kinfo_proc *kipp)
 			xo_emit("{dw:/%s}{Lw:/%-16s/%s}{:AT_KPRELOAD/%p}\n",
 			    prefix, "AT_KPRELOAD", auxv[i].a_un.a_ptr);
 			break;
+#endif
+#ifdef AT_USRSTACKBASE
+		case AT_USRSTACKBASE:
+			xo_emit("{dw:/%s}{Lw:/%-16s/%s}"
+			    "{:AT_USRSTACKBASE/%#lx}\n",
+			    prefix, "AT_USRSTACKBASE", auxv[i].a_un.a_val);
+			break;
+#endif
+#ifdef AT_USRSTACKLIM
+		case AT_USRSTACKLIM:
+			xo_emit("{dw:/%s}{Lw:/%-16s/%s}"
+			    "{:AT_USRSTACKLIM/%#lx}\n",
+			    prefix, "AT_USRSTACKLIM", auxv[i].a_un.a_val);
+			break;
 #endif
 		default:
 			xo_emit("{dw:/%s}{Lw:/%16ld/%ld}{:UNKNOWN/%#lx}\n",