add metric for new glibc hwcaps
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-report (Ubuntu) |
Fix Released
|
Low
|
William Wilson |
Bug Description
FFe: We would like to collect that information with 21.04 to get a better view of supported hardware for the new hwcaps. The risk should be minimal, only adding an extra flag, and the server side collecting the data can handle that, according to Didier.
pull request at https:/
we want to collect information which most recent hwcap is supported by a machine. The result should be a string like "x86-64-v2", "x86-64-v3", "x86-64-v4", "z13", "z14", "p9", "p10" depending on "ld-linux --help" output. The string should be empty for architectures without glibc hwcaps (currently armhf, arm64, i386, riscv64). The string should be empty if no specific hwcaps is supported (e.g. on a power8 machine). The string should be "" (empty), when trying to run ld-linux on a release with glibc (<< 2.33). The string should be "-" (dash) when not having any hwcaps mentioned.
Note that lexical sorting won't work for "p9", "p10".
if test -x /lib/x86_
lddynload=
elif test -x /lib/powerpc64l
lddynload=
elif test -x /lib/s390x-
lddynload=
fi
supported=
if [ -n "$lddynload" ]; then
$lddynload --help 2>&1 | awk '/^Subdirectori
supported=
fi
Here, $supported has listed all supported hwcaps, not just the best supported one.
tags: | added: fr-1265 |
Changed in ubuntu-report (Ubuntu): | |
assignee: | nobody → William Wilson (jawn-smith) |
Changed in ubuntu-report (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Confirmed |
description: | updated |
Changed in ubuntu-report (Ubuntu): | |
status: | Triaged → Fix Committed |
What is the point for that?
Ubuntu-report already collects the CPU string from which the hwcap can be computed:
$ ubuntu-report interactive tion": "VT-x"
This is the result of hardware and optional installer/upgrader that we collected:
{
...
"CPU": {
"OpMode": "32-bit, 64-bit",
"CPUs": "4",
"Threads": "2",
"Cores": "2",
"Sockets": "1",
"Vendor": "GenuineIntel",
"Family": "6",
"Model": "142",
"Stepping": "9",
"Name": "Intel(R) Core(TM) i5-7300U CPU @ 2.60GHz",
"Virtualiza
},