[PATCH] D154275: [llvm-exegesis] Support older kernel versions in subprocess executor

Aiden Grossman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 30 18:02:10 PDT 2023


aidengrossman created this revision.
Herald added a subscriber: mstojanovic.
Herald added a project: All.
aidengrossman requested review of this revision.
Herald added subscribers: llvm-commits, courbet.
Herald added a project: LLVM.

This patch switches from moving the performance counter file descriptor to the child process to socket calls rather than using the pidfd_getfd system call which was introduced in kernel 5.6. This significantly expands the range of kernel versions that are supported.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D154275

Files:
  llvm/test/tools/llvm-exegesis/X86/latency/memory-annotations-livein.s
  llvm/test/tools/llvm-exegesis/X86/latency/memory-annotations.s
  llvm/test/tools/llvm-exegesis/X86/latency/subprocess-abnormal-exit-code.s
  llvm/test/tools/llvm-exegesis/X86/latency/subprocess-segfault.s
  llvm/test/tools/llvm-exegesis/X86/latency/subprocess.s
  llvm/test/tools/llvm-exegesis/lit.local.cfg
  llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D154275.536491.patch
Type: text/x-patch
Size: 9126 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230701/4adfe349/attachment.bin>


More information about the llvm-commits mailing list