#include "src/trace_processor/importers/common/mapping_tracker.h"
#include <cstddef>
#include <cstdint>
#include <memory>
#include <utility>
#include "perfetto/ext/base/string_utils.h"
#include "perfetto/ext/base/string_view.h"
#include "src/trace_processor/importers/common/address_range.h"
#include "src/trace_processor/importers/common/jit_cache.h"
#include "src/trace_processor/importers/common/virtual_memory_mapping.h"
#include "src/trace_processor/storage/trace_storage.h"
#include "src/trace_processor/types/trace_processor_context.h"
#include "src/trace_processor/util/build_id.h"
namespace perfetto {
namespace trace_processor {
namespace {
bool IsKernelModule(const CreateMappingParams& params) { … }
}
template <typename MappingImpl>
MappingImpl& MappingTracker::AddMapping(std::unique_ptr<MappingImpl> mapping) { … }
KernelMemoryMapping& MappingTracker::CreateKernelMemoryMapping(
CreateMappingParams params) { … }
UserMemoryMapping& MappingTracker::CreateUserMemoryMapping(
UniquePid upid,
CreateMappingParams params) { … }
KernelMemoryMapping* MappingTracker::FindKernelMappingForAddress(
uint64_t address) const { … }
UserMemoryMapping* MappingTracker::FindUserMappingForAddress(
UniquePid upid,
uint64_t address) const { … }
std::vector<VirtualMemoryMapping*> MappingTracker::FindMappings(
base::StringView name,
const BuildId& build_id) const { … }
VirtualMemoryMapping& MappingTracker::InternMemoryMapping(
CreateMappingParams params) { … }
void MappingTracker::AddJitRange(UniquePid upid,
AddressRange jit_range,
JitCache* jit_cache) { … }
DummyMemoryMapping& MappingTracker::CreateDummyMapping(std::string name) { … }
}
}