[llvm-exegesis] Add ability to assign perf counters to specific PID
authorAiden Grossman <agrossman154@yahoo.com>
Sat, 20 May 2023 08:55:47 +0000 (08:55 +0000)
committerAiden Grossman <agrossman154@yahoo.com>
Wed, 21 Jun 2023 00:51:10 +0000 (00:51 +0000)
commit5e9173c43a9b97c8614e36d6f754317f731e71e9
tree3a497c34084753f5a64e5a45eb711d3bcdb30684
parent015049338d7e8e0e81f2ad2f94e5a43e2e3f5220
[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