Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 28 Jun 2019 01:03:56 +0000 (UTC)
From:      Mitchell Horne <mhorne@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r349491 - stable/12/usr.bin/procstat
Message-ID:  <201906280103.x5S13uZA087761@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mhorne
Date: Fri Jun 28 01:03:55 2019
New Revision: 349491
URL: https://svnweb.freebsd.org/changeset/base/349491

Log:
  MFC r348887:
  procstat: Recognize HWCAP and HWCAP2 with auxv command
  
  Approved by:	markj (mentor, implicit)

Modified:
  stable/12/usr.bin/procstat/procstat_auxv.c
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/usr.bin/procstat/procstat_auxv.c
==============================================================================
--- stable/12/usr.bin/procstat/procstat_auxv.c	Fri Jun 28 01:01:54 2019	(r349490)
+++ stable/12/usr.bin/procstat/procstat_auxv.c	Fri Jun 28 01:03:55 2019	(r349491)
@@ -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);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201906280103.x5S13uZA087761>