003 File Manager
Current Path:
/usr/src/contrib/llvm-project/openmp/runtime/src
usr
/
src
/
contrib
/
llvm-project
/
openmp
/
runtime
/
src
/
📁
..
📄
dllexports
(49.75 KB)
📄
exports_so.txt
(2.97 KB)
📄
extractExternal.cpp
(14.86 KB)
📁
i18n
📁
include
📄
kmp.h
(150.49 KB)
📄
kmp_affinity.cpp
(184.91 KB)
📄
kmp_affinity.h
(28.58 KB)
📄
kmp_alloc.cpp
(69.75 KB)
📄
kmp_atomic.cpp
(179.29 KB)
📄
kmp_atomic.h
(90.96 KB)
📄
kmp_barrier.cpp
(88.39 KB)
📄
kmp_cancel.cpp
(11.35 KB)
📄
kmp_config.h.cmake
(3.37 KB)
📄
kmp_csupport.cpp
(138.04 KB)
📄
kmp_debug.cpp
(3.54 KB)
📄
kmp_debug.h
(8.17 KB)
📄
kmp_debugger.cpp
(10.44 KB)
📄
kmp_debugger.h
(1.97 KB)
📄
kmp_dispatch.cpp
(90.11 KB)
📄
kmp_dispatch.h
(17.22 KB)
📄
kmp_dispatch_hier.h
(41.94 KB)
📄
kmp_environment.cpp
(14.35 KB)
📄
kmp_environment.h
(2.22 KB)
📄
kmp_error.cpp
(16 KB)
📄
kmp_error.h
(2.11 KB)
📄
kmp_ftn_cdecl.cpp
(1018 B)
📄
kmp_ftn_entry.h
(41.9 KB)
📄
kmp_ftn_extra.cpp
(971 B)
📄
kmp_ftn_os.h
(30.82 KB)
📄
kmp_ftn_stdcall.cpp
(895 B)
📄
kmp_global.cpp
(19.3 KB)
📄
kmp_gsupport.cpp
(91.3 KB)
📄
kmp_i18n.cpp
(27.56 KB)
📄
kmp_i18n.h
(6.77 KB)
📄
kmp_import.cpp
(1.04 KB)
📄
kmp_io.cpp
(6.38 KB)
📄
kmp_io.h
(1.1 KB)
📄
kmp_itt.cpp
(4.96 KB)
📄
kmp_itt.h
(14.32 KB)
📄
kmp_itt.inl
(38.74 KB)
📄
kmp_lock.cpp
(134.18 KB)
📄
kmp_lock.h
(52.92 KB)
📄
kmp_omp.h
(8.34 KB)
📄
kmp_os.h
(44.1 KB)
📄
kmp_platform.h
(5.35 KB)
📄
kmp_runtime.cpp
(289.73 KB)
📄
kmp_safe_c_api.h
(2.28 KB)
📄
kmp_sched.cpp
(37.33 KB)
📄
kmp_settings.cpp
(191.93 KB)
📄
kmp_settings.h
(3.26 KB)
📄
kmp_stats.cpp
(29.13 KB)
📄
kmp_stats.h
(40.94 KB)
📄
kmp_stats_timing.cpp
(3.59 KB)
📄
kmp_stats_timing.h
(3.6 KB)
📄
kmp_str.cpp
(22.28 KB)
📄
kmp_str.h
(4.48 KB)
📄
kmp_stub.cpp
(9.68 KB)
📄
kmp_stub.h
(1.56 KB)
📄
kmp_taskdeps.cpp
(29.79 KB)
📄
kmp_taskdeps.h
(3.93 KB)
📄
kmp_tasking.cpp
(177.28 KB)
📄
kmp_threadprivate.cpp
(26.22 KB)
📄
kmp_utility.cpp
(10.73 KB)
📄
kmp_version.cpp
(7.04 KB)
📄
kmp_version.h
(2.38 KB)
📄
kmp_wait_release.cpp
(905 B)
📄
kmp_wait_release.h
(32.1 KB)
📄
kmp_wrapper_getpid.h
(2.04 KB)
📄
kmp_wrapper_malloc.h
(7.2 KB)
📄
libomp.rc.var
(2.81 KB)
📄
ompt-event-specific.h
(4.38 KB)
📄
ompt-general.cpp
(23.73 KB)
📄
ompt-internal.h
(3.62 KB)
📄
ompt-specific.cpp
(14.43 KB)
📄
ompt-specific.h
(5.32 KB)
📄
test-touch.c
(688 B)
📁
thirdparty
📄
tsan_annotations.cpp
(5.92 KB)
📄
tsan_annotations.h
(6.77 KB)
📄
z_Linux_asm.S
(41.09 KB)
📄
z_Linux_util.cpp
(81.69 KB)
📄
z_Windows_NT-586_asm.asm
(30.37 KB)
📄
z_Windows_NT-586_util.cpp
(3.49 KB)
📄
z_Windows_NT_util.cpp
(52.15 KB)
Editing: tsan_annotations.h
/*! \file */ /* * tsan_annotations.h -- ThreadSanitizer annotations to support data * race detection in OpenMP programs. */ //===----------------------------------------------------------------------===// // // 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 // //===----------------------------------------------------------------------===// #ifndef TSAN_ANNOTATIONS_H #define TSAN_ANNOTATIONS_H #include "kmp_config.h" /* types as used in tsan/rtl/tsan_interface_ann.cc */ typedef unsigned long uptr; typedef signed long sptr; #ifdef __cplusplus extern "C" { #endif /* Declaration of all annotation functions in tsan/rtl/tsan_interface_ann.cc */ void AnnotateHappensBefore(const char *f, int l, uptr addr); void AnnotateHappensAfter(const char *f, int l, uptr addr); void AnnotateCondVarSignal(const char *f, int l, uptr cv); void AnnotateCondVarSignalAll(const char *f, int l, uptr cv); void AnnotateMutexIsNotPHB(const char *f, int l, uptr mu); void AnnotateCondVarWait(const char *f, int l, uptr cv, uptr lock); void AnnotateRWLockCreate(const char *f, int l, uptr m); void AnnotateRWLockCreateStatic(const char *f, int l, uptr m); void AnnotateRWLockDestroy(const char *f, int l, uptr m); void AnnotateRWLockAcquired(const char *f, int l, uptr m, uptr is_w); void AnnotateRWLockReleased(const char *f, int l, uptr m, uptr is_w); void AnnotateTraceMemory(const char *f, int l, uptr mem); void AnnotateFlushState(const char *f, int l); void AnnotateNewMemory(const char *f, int l, uptr mem, uptr size); void AnnotateNoOp(const char *f, int l, uptr mem); void AnnotateFlushExpectedRaces(const char *f, int l); void AnnotateEnableRaceDetection(const char *f, int l, int enable); void AnnotateMutexIsUsedAsCondVar(const char *f, int l, uptr mu); void AnnotatePCQGet(const char *f, int l, uptr pcq); void AnnotatePCQPut(const char *f, int l, uptr pcq); void AnnotatePCQDestroy(const char *f, int l, uptr pcq); void AnnotatePCQCreate(const char *f, int l, uptr pcq); void AnnotateExpectRace(const char *f, int l, uptr mem, char *desc); void AnnotateBenignRaceSized(const char *f, int l, uptr mem, uptr size, char *desc); void AnnotateBenignRace(const char *f, int l, uptr mem, char *desc); void AnnotateIgnoreReadsBegin(const char *f, int l); void AnnotateIgnoreReadsEnd(const char *f, int l); void AnnotateIgnoreWritesBegin(const char *f, int l); void AnnotateIgnoreWritesEnd(const char *f, int l); void AnnotateIgnoreSyncBegin(const char *f, int l); void AnnotateIgnoreSyncEnd(const char *f, int l); void AnnotatePublishMemoryRange(const char *f, int l, uptr addr, uptr size); void AnnotateUnpublishMemoryRange(const char *f, int l, uptr addr, uptr size); void AnnotateThreadName(const char *f, int l, char *name); void WTFAnnotateHappensBefore(const char *f, int l, uptr addr); void WTFAnnotateHappensAfter(const char *f, int l, uptr addr); void WTFAnnotateBenignRaceSized(const char *f, int l, uptr mem, uptr sz, char *desc); int RunningOnValgrind(); double ValgrindSlowdown(void); const char *ThreadSanitizerQuery(const char *query); void AnnotateMemoryIsInitialized(const char *f, int l, uptr mem, uptr sz); #ifdef __cplusplus } #endif #ifdef TSAN_SUPPORT #define ANNOTATE_HAPPENS_AFTER(addr) \ AnnotateHappensAfter(__FILE__, __LINE__, (uptr)addr) #define ANNOTATE_HAPPENS_BEFORE(addr) \ AnnotateHappensBefore(__FILE__, __LINE__, (uptr)addr) #define ANNOTATE_IGNORE_WRITES_BEGIN() \ AnnotateIgnoreWritesBegin(__FILE__, __LINE__) #define ANNOTATE_IGNORE_WRITES_END() AnnotateIgnoreWritesEnd(__FILE__, __LINE__) #define ANNOTATE_RWLOCK_CREATE(lck) \ AnnotateRWLockCreate(__FILE__, __LINE__, (uptr)lck) #define ANNOTATE_RWLOCK_RELEASED(lck) \ AnnotateRWLockAcquired(__FILE__, __LINE__, (uptr)lck, 1) #define ANNOTATE_RWLOCK_ACQUIRED(lck) \ AnnotateRWLockReleased(__FILE__, __LINE__, (uptr)lck, 1) #define ANNOTATE_BARRIER_BEGIN(addr) \ AnnotateHappensBefore(__FILE__, __LINE__, (uptr)addr) #define ANNOTATE_BARRIER_END(addr) \ AnnotateHappensAfter(__FILE__, __LINE__, (uptr)addr) #define ANNOTATE_REDUCE_AFTER(addr) \ AnnotateHappensAfter(__FILE__, __LINE__, (uptr)addr) #define ANNOTATE_REDUCE_BEFORE(addr) \ AnnotateHappensBefore(__FILE__, __LINE__, (uptr)addr) #else #define ANNOTATE_HAPPENS_AFTER(addr) #define ANNOTATE_HAPPENS_BEFORE(addr) #define ANNOTATE_IGNORE_WRITES_BEGIN() #define ANNOTATE_IGNORE_WRITES_END() #define ANNOTATE_RWLOCK_CREATE(lck) #define ANNOTATE_RWLOCK_RELEASED(lck) #define ANNOTATE_RWLOCK_ACQUIRED(lck) #define ANNOTATE_BARRIER_BEGIN(addr) #define ANNOTATE_BARRIER_END(addr) #define ANNOTATE_REDUCE_AFTER(addr) #define ANNOTATE_REDUCE_BEFORE(addr) #endif #define ANNOTATE_QUEUING #define ANNOTATE_TICKET #define ANNOTATE_FUTEX #define ANNOTATE_TAS #define ANNOTATE_DRDPA #ifdef ANNOTATE_QUEUING #define ANNOTATE_QUEUING_CREATE(lck) #define ANNOTATE_QUEUING_RELEASED(lck) ANNOTATE_HAPPENS_BEFORE(lck) #define ANNOTATE_QUEUING_ACQUIRED(lck) ANNOTATE_HAPPENS_AFTER(lck) #else #define ANNOTATE_QUEUING_CREATE(lck) #define ANNOTATE_QUEUING_RELEASED(lck) #define ANNOTATE_QUEUING_ACQUIRED(lck) #endif #ifdef ANNOTATE_TICKET #define ANNOTATE_TICKET_CREATE(lck) #define ANNOTATE_TICKET_RELEASED(lck) ANNOTATE_HAPPENS_BEFORE(lck) #define ANNOTATE_TICKET_ACQUIRED(lck) ANNOTATE_HAPPENS_AFTER(lck) #else #define ANNOTATE_TICKET_CREATE(lck) #define ANNOTATE_TICKET_RELEASED(lck) #define ANNOTATE_TICKET_ACQUIRED(lck) #endif #ifdef ANNOTATE_FUTEX #define ANNOTATE_FUTEX_CREATE(lck) #define ANNOTATE_FUTEX_RELEASED(lck) ANNOTATE_HAPPENS_BEFORE(lck) #define ANNOTATE_FUTEX_ACQUIRED(lck) ANNOTATE_HAPPENS_AFTER(lck) #else #define ANNOTATE_FUTEX_CREATE(lck) #define ANNOTATE_FUTEX_RELEASED(lck) #define ANNOTATE_FUTEX_ACQUIRED(lck) #endif #ifdef ANNOTATE_TAS #define ANNOTATE_TAS_CREATE(lck) #define ANNOTATE_TAS_RELEASED(lck) ANNOTATE_HAPPENS_BEFORE(lck) #define ANNOTATE_TAS_ACQUIRED(lck) ANNOTATE_HAPPENS_AFTER(lck) #else #define ANNOTATE_TAS_CREATE(lck) #define ANNOTATE_TAS_RELEASED(lck) #define ANNOTATE_TAS_ACQUIRED(lck) #endif #ifdef ANNOTATE_DRDPA #define ANNOTATE_DRDPA_CREATE(lck) #define ANNOTATE_DRDPA_RELEASED(lck) ANNOTATE_HAPPENS_BEFORE(lck) #define ANNOTATE_DRDPA_ACQUIRED(lck) ANNOTATE_HAPPENS_AFTER(lck) #else #define ANNOTATE_DRDPA_CREATE(lck) #define ANNOTATE_DRDPA_RELEASED(lck) #define ANNOTATE_DRDPA_ACQUIRED(lck) #endif #endif
Upload File
Create Folder