Lines Matching +full:sub +full:- +full:modules

1 //===-- TraceIntelPTBundleSaver.cpp ---------------------------------------===//
5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
7 //===----------------------------------------------------------------------===//
20 #include "lldb/lldb-types.h"
85 /// Build the threads sub-section of the trace bundle description file.
107 lldb::tid_t tid = thread_sp->GetID(); in BuildThreadsSection()
108 if (!trace_sp->IsTraced(tid)) in BuildThreadsSection()
114 if (trace_sp->GetTracedCpus().empty()) { in BuildThreadsSection()
119 llvm::Error err = process.GetTarget().GetTrace()->OnThreadBinaryDataRead( in BuildThreadsSection()
121 [&](llvm::ArrayRef<uint8_t> data) -> llvm::Error { in BuildThreadsSection()
148 [&](llvm::ArrayRef<uint8_t> data) -> llvm::Error { in WriteContextSwitchTrace()
154 pids.insert(process->GetID()); in WriteContextSwitchTrace()
161 if (compact_context_switch_trace->empty()) { in WriteContextSwitchTrace()
185 [&](llvm::ArrayRef<uint8_t> data) -> llvm::Error { in WriteIntelPTTrace()
226 /// Build modules sub-section of the trace bundle. The original modules
227 /// will be copied over to the \a <directory/modules> folder. Invalid modules
229 /// Copying the modules has the benefit of making these
230 /// directories self-contained, as the raw traces and modules are part of the
238 /// The directory where the modules files will be saved when building
239 /// the modules section.
242 /// \a <directory>/modules/usr/lib/foo/libbar.so.
245 /// The modules section or \a llvm::Error in case of failures.
254 std::string system_path = module_sp->GetPlatformFileSpec().GetPath(); in BuildModulesSection()
255 // TODO: support memory-only libraries like [vdso] in BuildModulesSection()
256 if (!module_sp->GetFileSpec().IsAbsolute()) in BuildModulesSection()
259 std::string file = module_sp->GetFileSpec().GetPath(); in BuildModulesSection()
260 ObjectFile *objfile = module_sp->GetObjectFile(); in BuildModulesSection()
265 Address base_addr(objfile->GetBaseAddress()); in BuildModulesSection()
274 path_to_copy_module.AppendPathComponent("modules"); in BuildModulesSection()
286 JSONUINT64{load_addr}, module_sp->GetUUID().GetAsString()}); in BuildModulesSection()
292 /// returning the processes information, this method saves to disk all modules
343 assert(kernel_process->GetID() == kDefaultKernelProcessID && in BuildKernelSection()
393 "intel-pt", in SaveToDisk()