[llvm-exegesis] Switch to using PTRACE_ATTACH instead of PTRACE_SEIZE
authorAiden Grossman <agrossman154@yahoo.com>
Fri, 7 Jul 2023 02:40:19 +0000 (19:40 -0700)
committerAiden Grossman <agrossman154@yahoo.com>
Fri, 7 Jul 2023 02:40:19 +0000 (19:40 -0700)
commit75b5541fe5d096d115d213cb8dc8a10cf3d11fbd
tree15570309313edc8fdec1a24736c17753c50e5ef7
parent71cbc62a24df85cf6c6d02d959fccfde231c0698
[llvm-exegesis] Switch to using PTRACE_ATTACH instead of PTRACE_SEIZE

This patch switches from using PTRACE_SEIZE within the subprocess
benchmark runner for llvm-exegesis as PTRACE_SEIZE was introduced in
Linux kernel 3.4. Some LLVM users were reporting build failures as they
are using Kernel versions older than 3.4 (such as on CentOS/RHEL 6),
hence the patch.
llvm/tools/llvm-exegesis/lib/BenchmarkRunner.cpp