aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorWalter Erquinigo <wallace@fb.com>2022-04-27 12:13:40 -0700
committerWalter Erquinigo <wallace@fb.com>2022-05-02 08:48:49 -0700
commit5de0a3e9da721189dd648a90e87829d375c5d17f (patch)
tree84657a952e770c029f9d582545da00f6a15aa14a /clang/lib/Frontend/CompilerInvocation.cpp
parent59dc8ce95a0df8205ccea7300155b29a37cfb44e (diff)
downloadllvm-5de0a3e9da721189dd648a90e87829d375c5d17f.zip
llvm-5de0a3e9da721189dd648a90e87829d375c5d17f.tar.gz
llvm-5de0a3e9da721189dd648a90e87829d375c5d17f.tar.bz2
[trace][intelpt] Support system-wide tracing [1] - Add a method for accessing the list of logical core ids
In order to open perf events per core, we need to first get the list of core ids available in the system. So I'm adding a function that does that by parsing /proc/cpuinfo. That seems to be the simplest and most portable way to do that. Besides that, I made a few refactors and renames to reflect better that the cpu info that we use in lldb-server comes from procfs. Differential Revision: https://reviews.llvm.org/D124573
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions