llvm/compiler-rt/lib/sanitizer_common/sanitizer_procmaps_common.cpp

//===-- sanitizer_procmaps_common.cpp -------------------------------------===//
//
// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
// See https://llvm.org/LICENSE.txt for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
//
//===----------------------------------------------------------------------===//
//
// Information about the process mappings (common parts).
//===----------------------------------------------------------------------===//

#include "sanitizer_platform.h"

#if SANITIZER_FREEBSD || SANITIZER_LINUX || SANITIZER_NETBSD ||                \
    SANITIZER_SOLARIS

#include "sanitizer_common.h"
#include "sanitizer_placement_new.h"
#include "sanitizer_procmaps.h"

namespace __sanitizer {

static ProcSelfMapsBuff cached_proc_self_maps;
static StaticSpinMutex cache_lock;

static int TranslateDigit(char c) {}

// Parse a number and promote 'p' up to the first non-digit character.
static uptr ParseNumber(const char **p, int base) {}

bool IsDecimal(char c) {}

uptr ParseDecimal(const char **p) {}

bool IsHex(char c) {}

uptr ParseHex(const char **p) {}

void MemoryMappedSegment::AddAddressRanges(LoadedModule *module) {}

MemoryMappingLayout::MemoryMappingLayout(bool cache_enabled) {}

bool MemoryMappingLayout::Error() const {}

MemoryMappingLayout::~MemoryMappingLayout() {}

void MemoryMappingLayout::Reset() {}

// static
void MemoryMappingLayout::CacheMemoryMappings() {}

void MemoryMappingLayout::LoadFromCache() {}

void MemoryMappingLayout::DumpListOfModules(
    InternalMmapVectorNoCtor<LoadedModule> *modules) {}

#if SANITIZER_LINUX || SANITIZER_ANDROID || SANITIZER_SOLARIS
void GetMemoryProfile(fill_profile_f cb, uptr *stats) {}

void ParseUnixMemoryProfile(fill_profile_f cb, uptr *stats, char *smaps,
                            uptr smaps_len) {}
#endif

} // namespace __sanitizer

#endif