procstat: Recognize HWCAP and HWCAP2 with auxv command
The two most recent additions to the elf auxiliary vector are HWCAP and HWCAP2 which describe platform specific cpu capabilities. Make procstat recognize these fields so that they aren't displayed as UNKNOWN. Reviewed by: trociny, markj Approved by: markj (mentor) MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D20582
This commit is contained in:
parent
50a7855ac2
commit
300397edf3
@ -184,6 +184,18 @@ procstat_auxv(struct procstat *procstat, struct kinfo_proc *kipp)
|
||||
xo_emit("{dw:/%s}{Lw:/%-16s/%s}{:AT_EHDRFLAGS/%#lx}\n",
|
||||
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",
|
||||
|
Loading…
Reference in New Issue
Block a user