[PATCH] D151020: [llvm-exegesis] Add ability to assign perf counters to specific PID

Aiden Grossman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 20 03:37:49 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 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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D151020

Files:
  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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D151020.524011.patch
Type: text/x-patch
Size: 4549 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20230520/1fc34864/attachment.bin>


More information about the llvm-commits mailing list