diff options
author | Walter Erquinigo <wallace@fb.com> | 2022-04-27 12:13:40 -0700 |
---|---|---|
committer | Walter Erquinigo <wallace@fb.com> | 2022-05-02 08:48:49 -0700 |
commit | 5de0a3e9da721189dd648a90e87829d375c5d17f (patch) | |
tree | 84657a952e770c029f9d582545da00f6a15aa14a /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | 59dc8ce95a0df8205ccea7300155b29a37cfb44e (diff) | |
download | llvm-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