llvm/compiler-rt/lib/fuzzer/FuzzerUtil.cpp

//===- FuzzerUtil.cpp - Misc utils ----------------------------------------===//
//
// 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
//
//===----------------------------------------------------------------------===//
// Misc utils.
//===----------------------------------------------------------------------===//

#include "FuzzerUtil.h"
#include "FuzzerIO.h"
#include "FuzzerInternal.h"
#include <cassert>
#include <chrono>
#include <cstring>
#include <errno.h>
#include <mutex>
#include <signal.h>
#include <sstream>
#include <stdio.h>
#include <sys/types.h>
#include <thread>

namespace fuzzer {

void PrintHexArray(const uint8_t *Data, size_t Size,
                   const char *PrintAfter) {}

void Print(const Unit &v, const char *PrintAfter) {}

void PrintASCIIByte(uint8_t Byte) {}

void PrintASCII(const uint8_t *Data, size_t Size, const char *PrintAfter) {}

void PrintASCII(const Unit &U, const char *PrintAfter) {}

bool ToASCII(uint8_t *Data, size_t Size) {}

bool IsASCII(const Unit &U) {}

bool IsASCII(const uint8_t *Data, size_t Size) {}

bool ParseOneDictionaryEntry(const std::string &Str, Unit *U) {}

bool ParseDictionaryFile(const std::string &Text, std::vector<Unit> *Units) {}

// Code duplicated (and tested) in llvm/include/llvm/Support/Base64.h
std::string Base64(const Unit &U) {}

static std::mutex SymbolizeMutex;

std::string DescribePC(const char *SymbolizedFMT, uintptr_t PC) {}

void PrintPC(const char *SymbolizedFMT, const char *FallbackFMT, uintptr_t PC) {}

void PrintStackTrace() {}

void PrintMemoryProfile() {}

unsigned NumberOfCpuCores() {}

uint64_t SimpleFastHash(const void *Data, size_t Size, uint64_t Initial) {}

}  // namespace fuzzer