procstat(1): print AT_USRSTACKBASE and AT_USRSTACKLIM

Reviewed by:	brooks, imp (previous version)
Discussed with:	markj
Sponsored by:	The FreeBSD Foundation
MFC after:	2 weeks
Differential revision:	https://reviews.freebsd.org/D36540
This commit is contained in:
Konstantin Belousov 2022-09-15 13:14:17 +03:00
parent 8f2668b060
commit 1d280f2142

View File

@ -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",