[llvm-exegesis] Add ability to assign perf counters to specific PID
commit48f0c80277d15bef574c10f247b25329dfe4941d
authorAiden Grossman <agrossman154@yahoo.com>
Sun, 25 Jun 2023 23:46:22 +0000 (25 23:46 +0000)
committerAiden Grossman <agrossman154@yahoo.com>
Mon, 26 Jun 2023 00:45:53 +0000 (26 00:45 +0000)
tree5ff7197b03efdd4a6048ed4cb81ac33f9dd15de2
parent28d13a6297280a1c616ccd63d5a27543d92e5b7d
[llvm-exegesis] Add ability to assign perf counters to specific PID

This patch gives the ability to assign performance counters within
llvm-exegesis to a specific process by passing its PID. This is needed
later on for implementing a subprocess executor. Defaults to zero, the
current process, for the InProcessFunctionExecutorImpl.

Reviewed By: courbet

Differential Revision: https://reviews.llvm.org/D151020
llvm/tools/llvm-exegesis/lib/PerfHelper.cpp
llvm/tools/llvm-exegesis/lib/PerfHelper.h
llvm/tools/llvm-exegesis/lib/Target.cpp
llvm/tools/llvm-exegesis/lib/Target.h
llvm/tools/llvm-exegesis/lib/X86/Target.cpp