[Bug 1922712] Re: add metric for new glibc hwcaps

Didier Roche 1922712 at bugs.launchpad.net
Thu Apr 15 16:22:37 UTC 2021


I reviewed the branch and after some fixes, we +1 on it.
CI is passing, the new code is covered by the same amount of testing than the rest of the code.

I did a run-try locally with ubuntu-report --show:
{
  "Version": "21.04",
  "OEM": {
    "Vendor": "Entroware",
    "Product": "Kratos",
    "Family": "Not Applicable"
  },
  "BIOS": {
    "Vendor": "American Megatrends Inc.",
    "Version": "1.05.02E"
  },
  "CPU": {
    "OpMode": "32-bit, 64-bit",
    "CPUs": "8",
    "Threads": "2",
    "Cores": "4",
    "Sockets": "1",
    "Vendor": "GenuineIntel",
    "Family": "6",
    "Model": "158",
    "Stepping": "10",
    "Name": "Intel(R) Core(TM) i5-8300H CPU @ 2.30GHz",
    "Virtualization": "VT-x"
  },
  "Arch": "amd64",
  "HwCap": "x86-64-v3",
  "GPU": [
    {
      "Vendor": "8086",
      "Model": "3e9b"
    },
    {
      "Vendor": "10de",
      "Model": "1c8d"
    }
  ],
  "RAM": 16.2,
  "Partitions": [
    0.5
  ],
  "Screens": [
    {
      "Size": "344mmx194mm",
      "Resolution": "1920x1080",
      "Frequency": "60.02"
    },
    {
      "Size": "527mmx296mm",
      "Resolution": "1920x1080",
      "Frequency": "60.00"
    }
  ],
  "Autologin": false,
  "LivePatch": false,
  "Session": {
    "DE": "ubuntu:GNOME",
    "Name": "ubuntu",
    "Type": "x11"
  },
  "Language": "fr_FR",
  "Timezone": "Europe/Paris",
  "Install": {
    "Media": "Ubuntu 20.04 LTS \"Focal Fossa\" - Release amd64 (20200423)",
    "Type": "GTK",
    "OEM": false,
    "PartitionMethod": "use_zfs",
    "DownloadUpdates": true,
    "Language": "fr",
    "Minimal": false,
    "RestrictedAddons": true,
    "Stages": {
      "0": "language",
      "3": "console_setup",
      "53": "wireless",
      "82": "prepare",
      "130": "partman",
      "135": "partman",
      "137": "start_install",
      "141": "timezone",
      "142": "usersetup",
      "156": "user_done",
      "406": "done"
    }
  }
}


You can note the new entry is present:   "HwCap": "x86-64-v3",

-- 
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1922712

Title:
  add metric for new glibc hwcaps

Status in ubuntu-report package in Ubuntu:
  Triaged

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://github.com/ubuntu/ubuntu-report/pull/34

  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_64-linux-gnu/ld-linux-x86-64.so.2; then
    lddynload=/lib/x86_64-linux-gnu/ld-linux-x86-64.so.2
  elif test -x /lib/powerpc64le-linux-gnu/ld64.so.2; then
    lddynload=/lib/powerpc64le-linux-gnu/ld64.so.2
  elif test -x /lib/s390x-linux-gnu/ld64.so.1; then
    lddynload=/lib/s390x-linux-gnu/ld64.so.1
  fi

  supported=
  if [ -n "$lddynload" ]; then
    $lddynload --help 2>&1 | awk '/^Subdirectories/,/^$/'
    supported=$($lddynload --help 2>&1 | awk '/^Subdirectories/,/^$/' | awk '/supported/ {print $1}')
  fi

  Here, $supported has listed all supported hwcaps, not just the best
  supported one.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ubuntu-report/+bug/1922712/+subscriptions



More information about the Ubuntu-sponsors mailing list