[all-commits] [llvm/llvm-project] cbfbbd: [llvm-exegesis] Use correct rseq struct size (#100...

Aiden Grossman via All-commits all-commits at lists.llvm.org
Mon Jul 29 01:07:37 PDT 2024


  Branch: refs/heads/release/19.x
  Home:   https://github.com/llvm/llvm-project
  Commit: cbfbbd74788252b3c5488480fc9d6914f9cf0f38
      https://github.com/llvm/llvm-project/commit/cbfbbd74788252b3c5488480fc9d6914f9cf0f38
  Author: Aiden Grossman <aidengrossman at google.com>
  Date:   2024-07-29 (Mon, 29 Jul 2024)

  Changed paths:
    M llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp

  Log Message:
  -----------
  [llvm-exegesis] Use correct rseq struct size (#100804)

Glibc v2.40 changes the definition of __rseq_size to the usable area of
the struct rather than the actual size of the struct to accommodate
users trying to figure out what features can be used. This change breaks
llvm-exegesis trying to disable rseq as the size registered in the
kernel is no longer equal to __rseq_size. This patch adds a check to see
if __rseq_size is less than 32 bytes and uses 32 as a value if it is
given alignment requirements.

Fixes #100791.

(cherry picked from commit 1e8df9e85a1ff213e5868bd822877695f27504ad)



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list