[Bug 2007599] Comment bridged from LTC Bugzilla

bugproxy 2007599 at bugs.launchpad.net
Mon Mar 27 12:09:34 UTC 2023


------- Comment From STLI at de.ibm.com 2023-03-27 08:07 EDT-------
I've updated to libc6-2.37-0ubuntu2 and was able to influence memmove, strstr, memmem and __to_utf8_loop in UTF8_UTF16_Z9.so iconv module. Thanks for integration.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to glibc in Ubuntu.
https://bugs.launchpad.net/bugs/2007599

Title:
  [23.04 FEAT] [GNU2223] glibc - Influence hwcaps/stfle via
  GLIBC_TUNABLES glibc.cpu.hwcaps

Status in Ubuntu on IBM z Systems:
  In Progress
Status in glibc package in Ubuntu:
  Fix Released
Status in glibc source package in Jammy:
  Confirmed

Bug description:
  Feature Description:

  In glibc there are a lot of IFUNC-optimized functions, where we have
  different implementations for e.g. z13, z14, z15, ... . At runtime the
  best implementation is chosen depending on the available HWCAP-/STFLE-
  bits.

  We need to have a mechanism to influence this decision. There already exists such a mechanism for x86 which is documented here:
  GLIBC_TUNABLE: glibc.cpu.hwcaps (x86 variant)

  https://www.gnu.org/software/libc/manual/html_node/Hardware-
  Capability-Tunables.html

  Therefore we've developed the commit 
  "S390: Influence hwcaps/stfle via GLIBC_TUNABLES." (https://sourceware.org/git/?p=glibc.git;a=commit;h=41f67ccbe92b4fd09e1062b383e55e407ae5bfa1) 
  as part of our maintenance work. The s390-variant of the mentioned tunable is able to add/remove specific HWCAP-/STFLE-bits used by the IFUNC-resolvers inside glibc. Furthermore we can set the architecture-level like z13 to influence multiple bits at once.

  One can query if the feature is available with (useful to check if this feature is also backported to current distro or not):
  $ /lib/ld64.so.1 --list-tunables

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu-z-systems/+bug/2007599/+subscriptions




More information about the foundations-bugs mailing list