Home
last modified time | relevance | path

Searched refs:__sanitizer (Results 1 – 25 of 250) sorted by relevance

12345678910

/freebsd/contrib/llvm-project/compiler-rt/lib/nsan/
H A Dnsan_stats.h43 void AddCheck(CheckTypeT check_ty, __sanitizer::uptr pc, __sanitizer::uptr bp,
46 void AddWarning(CheckTypeT check_ty, __sanitizer::uptr pc,
47 __sanitizer::uptr bp, double rel_err);
51 void AddInvalidLoadTrackingEvent(__sanitizer::uptr pc, __sanitizer::uptr bp);
54 void AddUnknownLoadTrackingEvent(__sanitizer::uptr pc, __sanitizer::uptr bp);
59 using IndexMap = __sanitizer::AddrHashMap<__sanitizer::uptr, 11>;
63 __sanitizer::u32 stack_id = 0;
64 __sanitizer::u64 num_checks = 0;
65 __sanitizer::u64 num_warnings = 0;
72 __sanitizer::InternalMmapVectorNoCtor<CheckAndWarningsValue>
[all …]
H A Dnsan.h19 using __sanitizer::sptr;
20 using __sanitizer::u16;
21 using __sanitizer::u8;
22 using __sanitizer::uptr;
89 using orig_bits_type = __sanitizer::u32;
90 using mantissa_bits_type = __sanitizer::u32;
107 using orig_bits_type = __sanitizer::u64;
108 using mantissa_bits_type = __sanitizer::u64;
129 using mantissa_bits_type = __sanitizer::u64;
218 return v1 == v2 ? __sanitizer::u64{0} : kMaxULPDiff; // Signs differ.
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/
H A Dtsan_new_delete.cpp24 enum class align_val_t: __sanitizer::uptr {};
62 void *operator new(__sanitizer::uptr size);
63 void *operator new(__sanitizer::uptr size) { in operator new()
68 void *operator new[](__sanitizer::uptr size);
69 void *operator new[](__sanitizer::uptr size) { in operator new[]()
74 void *operator new(__sanitizer::uptr size, std::nothrow_t const&);
75 void *operator new(__sanitizer::uptr size, std::nothrow_t const&) { in operator new()
80 void *operator new[](__sanitizer::uptr size, std::nothrow_t const&);
81 void *operator new[](__sanitizer::uptr size, std::nothrow_t const&) { in operator new[]()
86 void *operator new(__sanitizer::uptr size, std::align_val_t align);
[all …]
H A Dtsan_dispatch_defs.h35 typedef __sanitizer::u64 dispatch_time_t;
62 typedef __sanitizer::s64 off_t;
63 typedef __sanitizer::u16 mode_t;
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_internal_defs.h139 namespace __sanitizer {
295 namespace __sanitizer {
325 __sanitizer::u64 v1 = (__sanitizer::u64)(c1); \
326 __sanitizer::u64 v2 = (__sanitizer::u64)(c2); \
328 __sanitizer::CheckFailed(__FILE__, __LINE__, \
404 ((__sanitizer::uptr)__builtin_extract_return_addr( \
406 # define GET_CURRENT_FRAME() ((__sanitizer::uptr)__builtin_frame_address(0))
415 # define GET_CALLER_PC() ((__sanitizer::uptr)_ReturnAddress())
418 (((__sanitizer::uptr)_AddressOfReturnAddress()) + sizeof(__sanitizer::uptr))
438 volatile __sanitizer::uptr enable_fp; \
[all …]
H A Dsanitizer_win_dll_thunk.h17 namespace __sanitizer {
32 return __sanitizer::dllThunkIntercept(main_function, (__sanitizer::uptr) \
43 return __sanitizer::dllThunkInterceptWhenPossible(main_function, \
44 default_function, (__sanitizer::uptr)dll_function); \
94 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \
102 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \
110 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \
118 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \
126 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \
134 static fntype fn = (fntype)__sanitizer::dllThunkGetRealAddrOrDie(#name); \
[all …]
H A Dsanitizer_interface_internal.h38 __sanitizer::sptr coverage_fd;
54 const __sanitizer::uptr *pcs, const __sanitizer::uptr len);
57 SANITIZER_INTERFACE_ATTRIBUTE void __sanitizer_cov(__sanitizer::u32 *guard);
91 __sanitizer::uptr module_path_len,
142 __sanitizer_cov_trace_pc_guard(__sanitizer::u32 *);
144 __sanitizer_cov_trace_pc_guard_init(__sanitizer::u32 *, __sanitizer::u32 *);
150 __sanitizer_cov_pcs_init(const __sanitizer::uptr *, const __sanitizer::uptr *);
H A Dsanitizer_dense_map.h24 namespace __sanitizer {
51 if (__sanitizer::is_trivially_destructible<ValueT>::value) { in clear()
131 return try_emplace(__sanitizer::move(KV.first), in insert()
132 __sanitizer::move(KV.second)); in insert()
146 TheBucket = InsertIntoBucket(TheBucket, __sanitizer::move(Key), in try_emplace()
147 __sanitizer::forward<Ts>(Args)...); in try_emplace()
163 InsertIntoBucket(TheBucket, Key, __sanitizer::forward<Ts>(Args)...); in try_emplace()
181 InsertIntoBucketWithLookup(TheBucket, __sanitizer::move(KV.first), in insert_as()
182 __sanitizer::move(KV.second), Val); in insert_as()
222 return *InsertIntoBucket(TheBucket, __sanitizer::move(Key)); in FindAndConstruct()
[all …]
H A Dsanitizer_thread_arg_retval.cpp18 namespace __sanitizer { namespace
34 __sanitizer::Lock lock(&mtx_); in GetArgs()
43 __sanitizer::Lock lock(&mtx_); in Finish()
57 __sanitizer::Lock lock(&mtx_); in BeforeJoin()
76 __sanitizer::Lock lock(&mtx_); in DetachLocked()
109 } // namespace __sanitizer
H A Dsanitizer_syscalls_netbsd.inc134 PRE_READ(path, __sanitizer::internal_strlen(path) + 1);
142 POST_READ(path, __sanitizer::internal_strlen(path) + 1);
165 PRE_READ(path, __sanitizer::internal_strlen(path) + 1);
168 PRE_READ(path, __sanitizer::internal_strlen(link) + 1);
176 POST_READ(path, __sanitizer::internal_strlen(path) + 1);
179 POST_READ(path, __sanitizer::internal_strlen(link) + 1);
186 PRE_READ(path, __sanitizer::internal_strlen(path) + 1);
193 POST_READ(path, __sanitizer::internal_strlen(path) + 1);
201 PRE_READ(path, __sanitizer::internal_strlen(path) + 1);
208 POST_READ(path, __sanitizer::internal_strlen(path) + 1);
[all …]
H A Dsanitizer_common_syscalls.inc421 PRE_READ(name, __sanitizer::internal_strlen((const char *)name) + 1);
741 PRE_READ(uargs, __sanitizer::internal_strlen((const char *)uargs) + 1);
749 __sanitizer::internal_strlen((const char *)name_user) + 1);
863 __sanitizer::internal_strlen((const char *)dev_name) + 1);
866 __sanitizer::internal_strlen((const char *)dir_name) + 1);
868 POST_WRITE(type, __sanitizer::internal_strlen((const char *)type) + 1);
877 POST_WRITE(name, __sanitizer::internal_strlen((const char *)name) + 1);
886 POST_WRITE(name, __sanitizer::internal_strlen((const char *)name) + 1);
892 PRE_READ(path, __sanitizer::internal_strlen((const char *)path) + 1);
904 __sanitizer::internal_strlen((const char *)filename) + 1);
[all …]
H A Dsanitizer_win_weak_interception.h15 namespace __sanitizer {
26 return __sanitizer::interceptWhenPossible((__sanitizer::uptr) Name, #Name);\
H A Dsanitizer_thread_arg_retval.h22 namespace __sanitizer {
46 __sanitizer::Lock lock(&mtx_); in Create()
63 __sanitizer::Lock lock(&mtx_); in Detach()
83 __sanitizer::Lock lock(&mtx_); in size()
115 } // namespace __sanitizer
H A Dsanitizer_common_libcdep.cpp21 namespace __sanitizer { namespace
226 __sanitizer::StopStackDepotBackgroundThread(); in SANITIZER_INTERFACE_WEAK_DEF()
227 __sanitizer::PlatformPrepareForSandboxing(args); in SANITIZER_INTERFACE_WEAK_DEF()
228 if (__sanitizer::sandboxing_callback) in SANITIZER_INTERFACE_WEAK_DEF()
229 __sanitizer::sandboxing_callback(); in SANITIZER_INTERFACE_WEAK_DEF()
/freebsd/contrib/llvm-project/compiler-rt/lib/gwp_asan/optional/
H A Dbacktrace_sanitizer_common.cpp21 void __sanitizer::BufferedStackTrace::UnwindImpl(uptr pc, uptr bp, in UnwindImpl()
43 __sanitizer::BufferedStackTrace Trace; in BacktraceCommon()
45 if (Size > __sanitizer::kStackTraceMax) in BacktraceCommon()
46 Size = __sanitizer::kStackTraceMax; in BacktraceCommon()
48 Trace.Unwind((__sanitizer::uptr)__builtin_return_address(0), in BacktraceCommon()
49 (__sanitizer::uptr)__builtin_frame_address(0), Context, in BacktraceCommon()
66 __sanitizer::StackTrace StackTrace; in PrintBacktrace()
67 StackTrace.trace = reinterpret_cast<__sanitizer::uptr *>(Trace); in PrintBacktrace()
75 __sanitizer::InternalScopedString buffer; in PrintBacktrace()
92 __sanitizer::SetCommonFlagsDefaults(); in getBacktraceFunction()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/ctx_profile/
H A DCtxInstrProfiling.cpp26 __sanitizer::SpinMutex AllContextsMutex;
28 __sanitizer::Vector<ContextRoot *> AllContextRoots;
65 __sanitizer::DenseMap<uint64_t, bool> ContextStartAddrs; in validate()
136 __sanitizer::internal_memset(start(), 0, Size); in Arena()
143 Arena *NewArena = new (__sanitizer::InternalAlloc( in allocateNewArena()
156 __sanitizer::InternalFree(Current); in freeArenaList()
229 __sanitizer::Printf("[ctxprof] Returned ctx differs from what's asked: " in __llvm_ctx_profile_get_context()
242 __sanitizer::GenericScopedLock<__sanitizer::SpinMutex> Lock( in setupContext()
282 __sanitizer::GenericScopedLock<__sanitizer::SpinMutex> Lock( in __llvm_ctx_profile_start_collection()
286 __sanitizer::GenericScopedLock<__sanitizer::StaticSpinMutex> Lock( in __llvm_ctx_profile_start_collection()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_fuchsia.cpp37 __sanitizer::InitShadowBounds(); in InitShadow()
38 CHECK_NE(__sanitizer::ShadowBounds.shadow_limit, 0); in InitShadow()
46 kHighShadowStart = __sanitizer::ShadowBounds.shadow_base; in InitShadow()
47 kHighShadowEnd = __sanitizer::ShadowBounds.shadow_limit - 1; in InitShadow()
54 return __sanitizer::ShadowBounds.shadow_limit <= p && in MemIsApp()
55 p <= (__sanitizer::ShadowBounds.memory_limit - 1); in MemIsApp()
81 .stack_bottom = __sanitizer::MainThreadStackBase, in InitThreads()
83 __sanitizer::MainThreadStackBase + __sanitizer::MainThreadStackSize, in InitThreads()
H A Dhwasan_interface_internal.h37 using __sanitizer::uptr;
38 using __sanitizer::sptr;
39 using __sanitizer::uu64;
40 using __sanitizer::uu32;
41 using __sanitizer::uu16;
42 using __sanitizer::u64;
43 using __sanitizer::u32;
44 using __sanitizer::u16;
45 using __sanitizer::u8;
/freebsd/contrib/llvm-project/compiler-rt/lib/ubsan_minimal/
H A Dubsan_minimal_handlers.cpp18 static __sanitizer::atomic_uintptr_t caller_pcs[kMaxCallerPcs];
21 static __sanitizer::atomic_uint32_t caller_pcs_sz;
27 unsigned sz = __sanitizer::atomic_load_relaxed(&caller_pcs_sz); in report_this_error()
34 p = __sanitizer::atomic_load_relaxed(&caller_pcs[i]); in report_this_error()
41 if (!__sanitizer::atomic_compare_exchange_strong( in report_this_error()
42 &caller_pcs_sz, &sz, sz + 1, __sanitizer::memory_order_seq_cst)) in report_this_error()
49 __sanitizer::atomic_store_relaxed(&caller_pcs[sz], caller); in report_this_error()
78 namespace __sanitizer { namespace
/freebsd/contrib/llvm-project/compiler-rt/lib/msan/
H A Dmsan_interface_internal.h39 using __sanitizer::uptr;
40 using __sanitizer::sptr;
41 using __sanitizer::uu64;
42 using __sanitizer::uu32;
43 using __sanitizer::uu16;
44 using __sanitizer::u64;
45 using __sanitizer::u32;
46 using __sanitizer::u16;
47 using __sanitizer::u8;
/freebsd/contrib/llvm-project/compiler-rt/lib/asan/
H A Dasan_fuchsia.cpp44 CHECK_EQ(kHighMemEnd, __sanitizer::ShadowBounds.memory_limit - 1); in InitializeShadowMemory()
45 CHECK_EQ(kHighMemBeg, __sanitizer::ShadowBounds.shadow_limit); in InitializeShadowMemory()
46 CHECK_EQ(kHighShadowBeg, __sanitizer::ShadowBounds.shadow_base); in InitializeShadowMemory()
47 CHECK_EQ(kShadowGapEnd, __sanitizer::ShadowBounds.shadow_base - 1); in InitializeShadowMemory()
149 CHECK_NE(__sanitizer::MainThreadStackBase, 0); in CreateMainThread()
150 CHECK_GT(__sanitizer::MainThreadStackSize, 0); in CreateMainThread()
162 const AsanThread::InitOptions options = {__sanitizer::MainThreadStackBase, in CreateMainThread()
163 __sanitizer::MainThreadStackSize}; in CreateMainThread()
/freebsd/contrib/llvm-project/compiler-rt/lib/interception/
H A Dinterception.h28 typedef __sanitizer::uptr SIZE_T;
29 typedef __sanitizer::sptr SSIZE_T;
30 typedef __sanitizer::sptr PTRDIFF_T;
31 typedef __sanitizer::s64 INTMAX_T;
32 typedef __sanitizer::u64 UINTMAX_T;
33 typedef __sanitizer::OFF_T OFF_T;
34 typedef __sanitizer::OFF64_T OFF64_T;
123 const __sanitizer::uptr replacement;
124 const __sanitizer::uptr original;
/freebsd/contrib/llvm-project/compiler-rt/lib/sanitizer_common/symbolizer/
H A Dsanitizer_wrappers.cpp23 namespace __sanitizer { namespace
108 if (__sanitizer::internal_iserror(res, &rverrno)) { \
121 res = __sanitizer::internal_open(filename, flags, mode); in open()
123 res = __sanitizer::internal_open(filename, flags); in open()
129 unsigned long res = __sanitizer::internal_close(fd); in close()
134 unsigned long res = __sanitizer::internal_##func(arg, buf); \
154 size_t strlen(const char *s) { return __sanitizer::internal_strlen(s); } in strlen()
159 __sanitizer::internal_mmap(addr, length, prot, flags, fd, offset); in mmap()
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/tests/
H A Drawprofile.cpp19 using ::__sanitizer::StackDepotPut;
20 using ::__sanitizer::StackTrace;
47 __sanitizer::LoadedModule FakeModule; in TEST()
52 __sanitizer::ArrayRef<__sanitizer::LoadedModule> Modules(&FakeModule, in TEST()
/freebsd/contrib/llvm-project/compiler-rt/lib/memprof/
H A Dmemprof_interface_internal.h24 using __sanitizer::u32;
25 using __sanitizer::u64;
26 using __sanitizer::uptr;

12345678910