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
26 lines
562 B
CMake
26 lines
562 B
CMake
add_lldb_library(lldbPluginProcessLinux
|
|
IntelPTCollector.cpp
|
|
NativeProcessLinux.cpp
|
|
NativeRegisterContextLinux.cpp
|
|
NativeRegisterContextLinux_arm.cpp
|
|
NativeRegisterContextLinux_arm64.cpp
|
|
NativeRegisterContextLinux_ppc64le.cpp
|
|
NativeRegisterContextLinux_s390x.cpp
|
|
NativeRegisterContextLinux_x86_64.cpp
|
|
NativeThreadLinux.cpp
|
|
Perf.cpp
|
|
Procfs.cpp
|
|
SingleStepCheck.cpp
|
|
|
|
LINK_LIBS
|
|
lldbCore
|
|
lldbHost
|
|
lldbSymbol
|
|
lldbTarget
|
|
lldbUtility
|
|
lldbPluginProcessPOSIX
|
|
lldbPluginProcessUtility
|
|
LINK_COMPONENTS
|
|
Support
|
|
)
|