Home
last modified time | relevance | path

Searched refs:uptr (Results 1 – 25 of 461) sorted by relevance

12345678910>>...19

/openbsd-src/gnu/llvm/compiler-rt/lib/tsan/rtl/
H A Dtsan_platform.h74 static const uptr kMetaShadowBeg = 0x300000000000ull;
75 static const uptr kMetaShadowEnd = 0x340000000000ull;
76 static const uptr kShadowBeg = 0x010000000000ull;
77 static const uptr kShadowEnd = 0x100000000000ull;
78 static const uptr kHeapMemBeg = 0x7b0000000000ull;
79 static const uptr kHeapMemEnd = 0x7c0000000000ull;
80 static const uptr kLoAppMemBeg = 0x000000001000ull;
81 static const uptr kLoAppMemEnd = 0x008000000000ull;
82 static const uptr kMidAppMemBeg = 0x550000000000ull;
83 static const uptr kMidAppMemEnd = 0x568000000000ull;
[all …]
H A Dtsan_rtl.h63 static const uptr kSpaceBeg = 0;
65 static const uptr kMetadataSize = 0;
67 static const uptr kRegionSizeLog = 20;
70 static const uptr kFlags = 0;
80 static const uptr kSpaceBeg = Mapping::kHeapMemBeg;
81 static const uptr kSpaceSize = Mapping::kHeapMemEnd - Mapping::kHeapMemBeg;
82 static const uptr kMetadataSize = 0;
85 static const uptr kFlags = 0;
98 uptr sp;
101 uptr in_signal_handler;
[all …]
H A Dtsan_mman.h19 const uptr kDefaultAlignment = 16;
33 void *user_alloc_internal(ThreadState *thr, uptr pc, uptr sz,
34 uptr align = kDefaultAlignment, bool signal = true);
36 void user_free(ThreadState *thr, uptr pc, void *p, bool signal = true);
38 void *user_alloc(ThreadState *thr, uptr pc, uptr sz);
39 void *user_calloc(ThreadState *thr, uptr pc, uptr sz, uptr n);
40 void *user_realloc(ThreadState *thr, uptr pc, void *p, uptr sz);
41 void *user_reallocarray(ThreadState *thr, uptr pc, void *p, uptr sz, uptr n);
42 void *user_memalign(ThreadState *thr, uptr pc, uptr align, uptr sz);
43 int user_posix_memalign(ThreadState *thr, uptr pc, void **memptr, uptr align,
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/asan/
H A Dasan_interface_internal.h24 using __sanitizer::uptr;
49 uptr beg; // The address of the global.
50 uptr size; // The original size of the global.
51 uptr size_with_redzone; // The size with the redzone.
55 uptr has_dynamic_init; // Non-zero if the global has dynamic initializer.
56 uptr windows_padding; // TODO: Figure out how to remove this padding
59 uptr odr_indicator; // The address of the ODR indicator symbol.
66 void __asan_register_image_globals(uptr *flag);
68 void __asan_unregister_image_globals(uptr *flag);
71 void __asan_register_elf_globals(uptr *flag, void *start, void *stop);
[all …]
H A Dasan_fake_stack.h23 uptr magic; // Modified by the instrumented code.
24 uptr descr; // Modified by the instrumented code.
25 uptr pc; // Modified by the instrumented code.
26 uptr real_stack;
57 static const uptr kMinStackFrameSizeLog = 6; // Min frame is 64B.
58 static const uptr kMaxStackFrameSizeLog = 16; // Max stack frame is 64K.
61 static const uptr kNumberOfSizeClasses =
65 static FakeStack *Create(uptr stack_size_log);
70 static uptr SizeRequiredForFlags(uptr stack_size_log) { in SizeRequiredForFlags()
71 return ((uptr)1) << (stack_size_log + 1 - kMinStackFrameSizeLog); in SizeRequiredForFlags()
[all …]
H A Dasan_report.h24 uptr beg;
25 uptr size;
27 uptr name_len;
28 uptr line;
33 int GetGlobalsForAddress(uptr addr, __asan_global *globals, u32 *reg_sites,
49 void ReportGenericError(uptr pc, uptr bp, uptr sp, uptr addr, bool is_write,
50 uptr access_size, u32 exp, bool fatal);
52 void ReportNewDeleteTypeMismatch(uptr addr, uptr delete_size,
53 uptr delete_alignment,
55 void ReportDoubleFree(uptr addr, BufferedStackTrace *free_stack);
[all …]
H A Dasan_allocator.h58 uptr Beg() const; // First byte of user memory.
59 uptr End() const; // Last byte of user memory.
60 uptr UsedSize() const; // Size requested by the user.
62 uptr AllocTid() const;
63 uptr FreeTid() const;
68 bool AddrIsInside(uptr addr, uptr access_size, sptr *offset) const { in AddrIsInside()
75 bool AddrIsAtLeft(uptr addr, uptr access_size, sptr *offset) const { in AddrIsAtLeft()
83 bool AddrIsAtRight(uptr addr, uptr access_size, sptr *offset) const { in AddrIsAtRight()
95 AsanChunkView FindHeapChunkByAddress(uptr address);
96 AsanChunkView FindHeapChunkByAllocBeg(uptr address);
[all …]
H A Dasan_poisoning.cpp35 void PoisonShadow(uptr addr, uptr size, u8 value) { in PoisonShadow()
45 void PoisonShadowPartialRightRedzone(uptr addr, in PoisonShadowPartialRightRedzone()
46 uptr size, in PoisonShadowPartialRightRedzone()
47 uptr redzone_size, in PoisonShadowPartialRightRedzone()
60 explicit ShadowSegmentEndpoint(uptr address) { in ShadowSegmentEndpoint()
67 void AsanPoisonOrUnpoisonIntraObjectRedzone(uptr ptr, uptr size, bool poison) { in AsanPoisonOrUnpoisonIntraObjectRedzone()
68 uptr end = ptr + size; in AsanPoisonOrUnpoisonIntraObjectRedzone()
103 void __asan_poison_memory_region(void const volatile *addr, uptr size) { in __asan_poison_memory_region()
105 uptr beg_addr = (uptr)addr; in __asan_poison_memory_region()
106 uptr end_addr = beg_addr + size; in __asan_poison_memory_region()
[all …]
H A Dasan_fake_stack.cpp29 ALWAYS_INLINE void SetShadow(uptr ptr, uptr size, uptr class_id, u64 magic) { in SetShadow()
33 for (uptr i = 0; i < (((uptr)1) << class_id); i++) { in SetShadow()
44 FakeStack *FakeStack::Create(uptr stack_size_log) { in Create()
45 static uptr kMinStackSizeLog = 16; in Create()
46 static uptr kMaxStackSizeLog = FIRST_32_SECOND_64(24, 28); in Create()
51 uptr size = RequiredSize(stack_size_log); in Create()
70 for (uptr class_id = 0; class_id < kNumberOfSizeClasses; class_id++) in Destroy()
75 uptr size = RequiredSize(stack_size_log_); in Destroy()
76 FlushUnneededASanShadowMemory(reinterpret_cast<uptr>(this), size); in Destroy()
81 PoisonShadow(reinterpret_cast<uptr>(this), RequiredSize(stack_size_log()), in PoisonAll()
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_common.h37 const uptr kWordSize = SANITIZER_WORDSIZE / 8;
38 const uptr kWordSizeInBits = 8 * kWordSize;
40 const uptr kCacheLineSize = SANITIZER_CACHE_LINE_SIZE;
42 const uptr kMaxPathLength = 4096;
44 const uptr kMaxThreadStackSize = 1 << 30; // 1Gb
46 const uptr kErrorMessageBufferSize = 1 << 16;
63 inline uptr GetPageSize() { in GetPageSize()
67 inline uptr GetPageSizeCached() { in GetPageSizeCached()
71 uptr GetPageSize();
72 extern uptr PageSizeCached;
[all …]
H A Dsanitizer_stacktrace.h43 const uptr *trace;
53 StackTrace(const uptr *trace, u32 size) : trace(trace), size(size), tag(0) {} in StackTrace()
54 StackTrace(const uptr *trace, u32 size, u32 tag) in StackTrace()
68 uptr PrintTo(char *out_buf, uptr out_buf_size) const;
78 static uptr GetCurrentPc();
79 static inline uptr GetPreviousInstructionPc(uptr pc);
80 static uptr GetNextInstructionPc(uptr pc);
85 uptr StackTrace::GetPreviousInstructionPc(uptr pc) { in GetPreviousInstructionPc()
110 uptr trace_buffer[kStackTraceMax];
111 uptr top_frame_bp; // Optional bp of a top frame.
[all …]
H A Dsanitizer_allocator_primary64.h52 bool GetAndResetStats(uptr &ranges, uptr &bytes) { in GetAndResetStats()
60 u64 *MapPackedCounterArrayBuffer(uptr count) { in MapPackedCounterArrayBuffer()
67 void ReleasePageRangeToOS(uptr class_id, CompactPtrT from, CompactPtrT to) { in ReleasePageRangeToOS()
68 const uptr region_base = allocator_.GetRegionBeginBySizeClass(class_id); in ReleasePageRangeToOS()
69 const uptr from_page = allocator_.CompactPtrToPointer(region_base, from); in ReleasePageRangeToOS()
70 const uptr to_page = allocator_.CompactPtrToPointer(region_base, to); in ReleasePageRangeToOS()
78 uptr released_ranges_count_ = 0;
79 uptr released_bytes_ = 0;
87 static const uptr kSpaceBeg = Params::kSpaceBeg;
88 static const uptr kSpaceSize = Params::kSpaceSize;
[all …]
H A Dsanitizer_posix.h29 uptr internal_open(const char *filename, int flags);
30 uptr internal_open(const char *filename, int flags, u32 mode);
31 uptr internal_close(fd_t fd);
33 uptr internal_read(fd_t fd, void *buf, uptr count);
34 uptr internal_write(fd_t fd, const void *buf, uptr count);
37 uptr internal_mmap(void *addr, uptr length, int prot, int flags,
39 uptr internal_munmap(void *addr, uptr length);
41 uptr internal_mremap(void *old_address, uptr old_size, uptr new_size, int flags,
44 int internal_mprotect(void *addr, uptr length, int prot);
45 int internal_madvise(uptr addr, uptr length, int advice);
[all …]
H A Dsanitizer_allocator_primary32.h56 static const uptr kSpaceBeg = Params::kSpaceBeg;
58 static const uptr kMetadataSize = Params::kMetadataSize;
60 static const uptr kRegionSizeLog = Params::kRegionSizeLog;
77 static const uptr kMaxNumCached = SizeClassMap::kMaxNumCachedHint - 2;
78 void SetFromArray(void *batch[], uptr count) { in SetFromArray()
81 for (uptr i = 0; i < count; i++) in SetFromArray()
84 uptr Count() const { return count_; } in Count()
91 for (uptr i = 0, n = Count(); i < n; i++) in CopyToArray()
96 static uptr AllocationSizeRequiredForNElements(uptr n) { in AllocationSizeRequiredForNElements()
97 return sizeof(uptr) * 2 + sizeof(void *) * n; in AllocationSizeRequiredForNElements()
[all …]
H A Dsanitizer_allocator_size_class_map.h119 template <uptr kNumBits, uptr kMinSizeLog, uptr kMidSizeLog, uptr kMaxSizeLog,
120 uptr kMaxNumCachedHintT, uptr kMaxBytesCachedLog>
122 static const uptr kMinSize = 1 << kMinSizeLog;
123 static const uptr kMidSize = 1 << kMidSizeLog;
124 static const uptr kMidClass = kMidSize / kMinSize;
125 static const uptr S = kNumBits - 1;
126 static const uptr M = (1 << S) - 1;
131 static const uptr kMaxNumCachedHint = kMaxNumCachedHintT;
134 static const uptr kMaxSize = 1UL << kMaxSizeLog;
135 static const uptr kNumClasses =
[all …]
H A Dsanitizer_deadlock_detector.h48 void ensureCurrentEpoch(uptr current_epoch) { in ensureCurrentEpoch()
56 uptr getEpoch() const { return epoch_; } in getEpoch()
59 bool addLock(uptr lock_id, uptr current_epoch, u32 stk) { in addLock()
75 void removeLock(uptr lock_id) { in removeLock()
99 u32 findLockContext(uptr lock_id) { in findLockContext()
100 for (uptr i = 0; i < n_all_locks_; i++) in findLockContext()
106 const BV &getLocks(uptr current_epoch) const { in getLocks()
111 uptr getNumLocks() const { return n_all_locks_; } in getNumLocks()
112 uptr getLock(uptr idx) const { return all_locks_with_contexts_[idx].lock; } in getLock()
116 uptr epoch_;
[all …]
H A Dsanitizer_win.cpp70 uptr GetPageSize() { in GetPageSize()
76 uptr GetMmapGranularity() { in GetMmapGranularity()
82 uptr GetMaxUserVirtualAddress() { in GetMaxUserVirtualAddress()
85 return (uptr)si.lpMaximumApplicationAddress; in GetMaxUserVirtualAddress()
88 uptr GetMaxVirtualAddress() { in GetMaxVirtualAddress()
101 uptr internal_getpid() { in internal_getpid()
115 uptr GetThreadSelf() { in GetThreadSelf()
120 void GetThreadStackTopAndBottom(bool at_initialization, uptr *stack_top, in GetThreadStackTopAndBottom()
121 uptr *stack_bottom) { in GetThreadStackTopAndBottom()
129 *stack_top = (uptr)mbi.BaseAddress + mbi.RegionSize; in GetThreadStackTopAndBottom()
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/
H A Dsize_class_map.h18 inline uptr scaledLog2(uptr Size, uptr ZeroLog, uptr LogBits) { in scaledLog2()
19 const uptr L = getMostSignificantSetBitIndex(Size); in scaledLog2()
20 const uptr LBits = (Size >> (L - LogBits)) - (1 << LogBits); in scaledLog2()
21 const uptr HBits = (L - ZeroLog) << LogBits; in scaledLog2()
26 static u16 getMaxCachedHint(uptr Size) { in getMaxCachedHint()
64 static const uptr MinSize = 1UL << Config::MinSizeLog;
65 static const uptr MidSize = 1UL << Config::MidSizeLog;
66 static const uptr MidClass = MidSize / MinSize;
68 static const uptr M = (1UL << S) - 1;
73 static const uptr MaxSize = (1UL << Config::MaxSizeLog) + Config::SizeDelta;
[all …]
H A Drelease.h20 ReleaseRecorder(uptr Base, MapPlatformData *Data = nullptr)
23 uptr getReleasedRangesCount() const { return ReleasedRangesCount; } in getReleasedRangesCount()
25 uptr getReleasedBytes() const { return ReleasedBytes; } in getReleasedBytes()
27 uptr getBase() const { return Base; } in getBase()
30 void releasePageRangeToOS(uptr From, uptr To) { in releasePageRangeToOS()
31 const uptr Size = To - From; in releasePageRangeToOS()
38 uptr ReleasedRangesCount = 0;
39 uptr ReleasedBytes = 0;
40 uptr Base = 0;
65 RegionPageMap(uptr NumberOfRegions, uptr CountersPerRegion, uptr MaxValue) { in RegionPageMap()
[all …]
H A Dmemtag.h35 inline constexpr uptr archMemoryTagGranuleSize() { return 16; } in archMemoryTagGranuleSize()
37 inline uptr untagPointer(uptr Ptr) { return Ptr & ((1ULL << 56) - 1); } in untagPointer()
39 inline uint8_t extractTag(uptr Ptr) { return (Ptr >> 56) & 0xf; } in extractTag()
45 inline NORETURN uptr archMemoryTagGranuleSize() {
49 inline NORETURN uptr untagPointer(uptr Ptr) {
54 inline NORETURN uint8_t extractTag(uptr Ptr) {
124 uptr PrevTCO;
148 inline uptr selectRandomTag(uptr Ptr, uptr ExcludeMask) { in selectRandomTag()
150 uptr TaggedPtr; in selectRandomTag()
161 inline uptr addFixedTag(uptr Ptr, uptr Tag) { in addFixedTag()
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/lsan/
H A Dlsan_common.h83 uptr begin;
84 uptr end;
92 bool WordIsPoisoned(uptr addr);
109 bool GetThreadRangesLocked(tid_t os_id, uptr *stack_begin, uptr *stack_end,
110 uptr *tls_begin, uptr *tls_end, uptr *cache_begin,
111 uptr *cache_end, DTLS **dtls);
112 void GetAllThreadAllocatorCachesLocked(InternalMmapVector<uptr> *caches);
116 void GetAdditionalThreadContextPtrsLocked(InternalMmapVector<uptr> *ptrs);
128 void GetAllocatorGlobalRange(uptr *begin, uptr *end);
131 uptr PointsIntoChunk(void *p);
[all …]
H A Dlsan_allocator.h24 void *Allocate(const StackTrace &stack, uptr size, uptr alignment,
27 void *Reallocate(const StackTrace &stack, void *p, uptr new_size,
28 uptr alignment);
29 uptr GetMallocUsableSize(const void *p);
34 void GetAllocatorCacheRange(uptr *begin, uptr *end);
44 uptr requested_size : 54;
46 uptr requested_size : 32;
47 uptr padding : 22;
55 static const uptr kSpaceBeg = 0;
57 static const uptr kMetadataSize = sizeof(ChunkMetadata);
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/hwasan/
H A Dhwasan_interface_internal.h37 using __sanitizer::uptr;
48 void __hwasan_init_frames(uptr, uptr);
51 extern uptr __hwasan_shadow_memory_dynamic_address;
54 void __hwasan_loadN(uptr, uptr);
56 void __hwasan_load1(uptr);
58 void __hwasan_load2(uptr);
60 void __hwasan_load4(uptr);
62 void __hwasan_load8(uptr);
64 void __hwasan_load16(uptr);
67 void __hwasan_loadN_noabort(uptr, uptr);
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/msan/
H A Dmsan_allocator.cpp28 uptr requested_size;
32 void OnMap(uptr p, uptr size) const {} in OnMap()
33 void OnUnmap(uptr p, uptr size) const { in OnUnmap()
38 uptr shadow_p = MEM_TO_SHADOW(p); in OnUnmap()
41 uptr origin_p = MEM_TO_ORIGIN(p); in OnUnmap()
48 static const uptr kMaxAllowedMallocSize = 2UL << 30;
51 static const uptr kSpaceBeg = 0;
53 static const uptr kMetadataSize = sizeof(Metadata);
55 static const uptr kRegionSizeLog = 20;
58 static const uptr kFlags = 0;
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/interception/
H A Dinterception_win.h28 bool OverrideFunction(uptr old_func, uptr new_func, uptr *orig_old_func = 0);
31 bool OverrideFunction(const char *name, uptr new_func, uptr *orig_old_func = 0);
34 uptr InternalGetProcAddress(void *module, const char *func_name);
41 const char *function_name, uptr new_function,
42 uptr *orig_old_func);
47 uptr old_func, uptr new_func, uptr *orig_old_func);
52 uptr old_func, uptr new_func, uptr *orig_old_func);
54 uptr old_func, uptr new_func, uptr *orig_old_func);
56 uptr old_func, uptr new_func, uptr *orig_old_func);
66 (::__interception::uptr)WRAP(func), \
[all …]

12345678910>>...19