[all-commits] [llvm/llvm-project] 9b7918: [trace][intelpt] Server side changes for TSC to wa...

Jakob Johnson via All-commits all-commits at lists.llvm.org
Thu Mar 24 05:36:45 PDT 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b79187c96a3bc2c245ab54d49accc12336f0cee
      https://github.com/llvm/llvm-project/commit/9b79187c96a3bc2c245ab54d49accc12336f0cee
  Author: Jakob Johnson <johnsonjakob99 at gmail.com>
  Date:   2022-03-24 (Thu, 24 Mar 2022)

  Changed paths:
    M lldb/docs/lldb-gdb-remote.txt
    M lldb/include/lldb/Utility/TraceGDBRemotePackets.h
    M lldb/include/lldb/Utility/TraceIntelPTGDBRemotePackets.h
    M lldb/source/Plugins/Process/Linux/IntelPTCollector.cpp
    M lldb/source/Plugins/Process/Linux/IntelPTCollector.h
    M lldb/source/Plugins/Process/Linux/Perf.cpp
    M lldb/source/Plugins/Process/Linux/Perf.h
    M lldb/source/Plugins/Process/POSIX/ProcessPOSIXLog.h
    M lldb/source/Utility/TraceIntelPTGDBRemotePackets.cpp
    M lldb/unittests/Process/Linux/PerfTests.cpp
    M lldb/unittests/Utility/CMakeLists.txt
    A lldb/unittests/Utility/TraceGDBRemotePacketsTest.cpp

  Log Message:
  -----------
  [trace][intelpt] Server side changes for TSC to wall time conversion

Update the response schema of the TraceGetState packet and add
Intel PT specific response structure that contains the TSC conversion,
if it exists. The IntelPTCollector loads the TSC conversion and caches
it to prevent unnecessary calls to perf_event_open. Move the TSC conversion
calculation from Perf.h to TraceIntelPTGDBRemotePackets.h to remove
dependency on Linux specific headers.

Differential Revision: https://reviews.llvm.org/D122246




More information about the All-commits mailing list