[llvm] [llvm-exegesis] Add support for pinning benchmarking process to a CPU (PR #85168)

Clement Courbet via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 18 23:20:17 PDT 2024


================
@@ -384,6 +393,31 @@ class SubProcessFunctionExecutorImpl
     return make_error<SnippetSignal>(ChildSignalInfo.si_signo);
   }
 
+  void setCPUAffinityIfRequested() const {
----------------
legrosbuffle wrote:

[nit] `static void setCPUAffinity(int) {` here, and `if (BenchmarkProcessCPU.has_value()) { setCPUAffinity(*value); }` at the call site.

https://github.com/llvm/llvm-project/pull/85168


More information about the llvm-commits mailing list