llvm/compiler-rt/lib/tsan/rtl/tsan_interface.inc

//===-- tsan_interface.inc --------------------------------------*- C++ -*-===//
//
// 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
//
//===----------------------------------------------------------------------===//
//
// This file is a part of ThreadSanitizer (TSan), a race detector.
//
//===----------------------------------------------------------------------===//

#include "sanitizer_common/sanitizer_ptrauth.h"
#include "tsan_interface.h"
#include "tsan_rtl.h"

#define CALLERPC

usingnamespace__tsan;

void __tsan_read1(void *addr) {}

void __tsan_read2(void *addr) {}

void __tsan_read4(void *addr) {}

void __tsan_read8(void *addr) {}

void __tsan_read16(void *addr) {}

void __tsan_write1(void *addr) {}

void __tsan_write2(void *addr) {}

void __tsan_write4(void *addr) {}

void __tsan_write8(void *addr) {}

void __tsan_write16(void *addr) {}

void __tsan_read1_pc(void *addr, void *pc) {}

void __tsan_read2_pc(void *addr, void *pc) {}

void __tsan_read4_pc(void *addr, void *pc) {}

void __tsan_read8_pc(void *addr, void *pc) {}

void __tsan_write1_pc(void *addr, void *pc) {}

void __tsan_write2_pc(void *addr, void *pc) {}

void __tsan_write4_pc(void *addr, void *pc) {}

void __tsan_write8_pc(void *addr, void *pc) {}

ALWAYS_INLINE USED void __tsan_unaligned_read2(const void *addr) {}

ALWAYS_INLINE USED void __tsan_unaligned_read4(const void *addr) {}

ALWAYS_INLINE USED void __tsan_unaligned_read8(const void *addr) {}

ALWAYS_INLINE USED void __tsan_unaligned_write2(void *addr) {}

ALWAYS_INLINE USED void __tsan_unaligned_write4(void *addr) {}

ALWAYS_INLINE USED void __tsan_unaligned_write8(void *addr) {}

extern "C" {
// __sanitizer_unaligned_load/store are for user instrumentation.
SANITIZER_INTERFACE_ATTRIBUTE
u16 __sanitizer_unaligned_load16(const uu16 *addr) {}

SANITIZER_INTERFACE_ATTRIBUTE
u32 __sanitizer_unaligned_load32(const uu32 *addr) {}

SANITIZER_INTERFACE_ATTRIBUTE
u64 __sanitizer_unaligned_load64(const uu64 *addr) {}

SANITIZER_INTERFACE_ATTRIBUTE
void __sanitizer_unaligned_store16(uu16 *addr, u16 v) {}

SANITIZER_INTERFACE_ATTRIBUTE
void __sanitizer_unaligned_store32(uu32 *addr, u32 v) {}

SANITIZER_INTERFACE_ATTRIBUTE
void __sanitizer_unaligned_store64(uu64 *addr, u64 v) {}
}

void __tsan_vptr_update(void **vptr_p, void *new_val) {}

void __tsan_vptr_read(void **vptr_p) {}

void __tsan_func_entry(void *pc) {}

void __tsan_func_exit() {}

void __tsan_ignore_thread_begin() {}

void __tsan_ignore_thread_end() {}

void __tsan_read_range(void *addr, uptr size) {}

void __tsan_write_range(void *addr, uptr size) {}

void __tsan_read_range_pc(void *addr, uptr size, void *pc) {}

void __tsan_write_range_pc(void *addr, uptr size, void *pc) {}