svn commit: r349492 - stable/11/usr.bin/procstat
Mitchell Horne
mhorne at FreeBSD.org
Fri Jun 28 01:07:20 UTC 2019
Author: mhorne
Date: Fri Jun 28 01:07:19 2019
New Revision: 349492
URL: https://svnweb.freebsd.org/changeset/base/349492
Log:
MFC r348887:
procstat: Recognize HWCAP and HWCAP2 with auxv command
Approved by: markj (mentor, implicit)
Modified:
stable/11/usr.bin/procstat/procstat_auxv.c
Directory Properties:
stable/11/ (props changed)
Modified: stable/11/usr.bin/procstat/procstat_auxv.c
==============================================================================
--- stable/11/usr.bin/procstat/procstat_auxv.c Fri Jun 28 01:03:55 2019 (r349491)
+++ stable/11/usr.bin/procstat/procstat_auxv.c Fri Jun 28 01:07:19 2019 (r349492)
@@ -185,6 +185,18 @@ procstat_auxv(struct procstat *procstat, struct kinfo_
prefix, "AT_EHDRFLAGS", (u_long)auxv[i].a_un.a_val);
break;
#endif
+#ifdef AT_HWCAP
+ case AT_HWCAP:
+ xo_emit("{dw:/%s}{Lw:/%-16s/%s}{:AT_HWCAP/%#lx}\n",
+ prefix, "AT_HWCAP", (u_long)auxv[i].a_un.a_val);
+ break;
+#endif
+#ifdef AT_HWCAP2
+ case AT_HWCAP2:
+ xo_emit("{dw:/%s}{Lw:/%-16s/%s}{:AT_HWCAP2/%#lx}\n",
+ prefix, "AT_HWCAP2", (u_long)auxv[i].a_un.a_val);
+ break;
+#endif
default:
xo_emit("{dw:/%s}{Lw:/%16ld/%ld}{:UNKNOWN/%#lx}\n",
prefix, auxv[i].a_type, auxv[i].a_un.a_val);
More information about the svn-src-stable-11
mailing list