add metric for new glibc hwcaps
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
| ubuntu-report (Ubuntu) |
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 |
Balint Reczey (rbalint) wrote : | #1 |
Matthias Klose (doko) wrote : | #2 |
it's much more work to build up a table for each cpu and map that to some base level, and continue to update that table. just take that information from the glibc hwcaps.
Changed in ubuntu-report (Ubuntu): | |
assignee: | nobody → William Wilson (jawn-smith) |
William Wilson (jawn-smith) wrote : | #3 |
Attached is a patch to add the hwcap metric to ubuntu-report.
The attachment "lp1922712.debdiff" seems to be a debdiff. The ubuntu-sponsors team has been subscribed to the bug report so that they can review and hopefully sponsor the debdiff. If the attachment isn't a patch, please remove the "patch" flag from the attachment, remove the "patch" tag, and if you are member of the ~ubuntu-sponsors, unsubscribe the team.
[This is an automated message performed by a Launchpad user owned by ~brian-murray, for any issue please contact him.]
tags: | added: patch |
Sebastien Bacher (seb128) wrote : | #5 |
@William, thanks for working on a patch. The project is hosted on github, is there a chance that you could set up a proper pull request on https:/
Changed in ubuntu-report (Ubuntu): | |
importance: | Undecided → Low |
status: | New → Confirmed |
William Wilson (jawn-smith) wrote : | #6 |
Seb, I have made a PR in the github repo. This PR also pulls in the changes in version 1.6.3, which were previously not present.
Sebastien Bacher (seb128) wrote : | #7 |
Thanks! I've added a trello card to review the PR in our trello backlog
description: | updated |
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
},