Home
last modified time | relevance | path

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

12345678910>>...36

/netbsd-src/external/gpl3/gcc/dist/libsanitizer/tsan/
H A Dtsan_platform.h68 static const uptr kMetaShadowBeg = 0x300000000000ull;
69 static const uptr kMetaShadowEnd = 0x340000000000ull;
70 static const uptr kTraceMemBeg = 0x600000000000ull;
71 static const uptr kTraceMemEnd = 0x620000000000ull;
72 static const uptr kShadowBeg = 0x010000000000ull;
73 static const uptr kShadowEnd = 0x200000000000ull;
74 static const uptr kHeapMemBeg = 0x7b0000000000ull;
75 static const uptr kHeapMemEnd = 0x7c0000000000ull;
76 static const uptr kLoAppMemBeg = 0x000000001000ull;
77 static const uptr kLoAppMemEnd = 0x008000000000ull;
[all …]
H A Dtsan_rtl.h61 static const uptr kSpaceBeg = 0;
63 static const uptr kMetadataSize = 0;
65 static const uptr kRegionSizeLog = 20;
68 static const uptr kFlags = 0;
78 static const uptr kSpaceBeg = Mapping::kHeapMemBeg;
79 static const uptr kSpaceSize = Mapping::kHeapMemEnd - Mapping::kHeapMemBeg;
80 static const uptr kMetadataSize = 0;
83 static const uptr kFlags = 0;
96 uptr sp;
99 uptr in_signal_handler;
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/tsan/
H A Dtsan_platform.h58 static const uptr kMetaShadowBeg = 0x300000000000ull;
59 static const uptr kMetaShadowEnd = 0x340000000000ull;
60 static const uptr kTraceMemBeg = 0x600000000000ull;
61 static const uptr kTraceMemEnd = 0x620000000000ull;
62 static const uptr kShadowBeg = 0x010000000000ull;
63 static const uptr kShadowEnd = 0x200000000000ull;
64 static const uptr kHeapMemBeg = 0x7b0000000000ull;
65 static const uptr kHeapMemEnd = 0x7c0000000000ull;
66 static const uptr kLoAppMemBeg = 0x000000001000ull;
67 static const uptr kLoAppMemEnd = 0x008000000000ull;
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/tsan/rtl/
H A Dtsan_platform.h60 static const uptr kMetaShadowBeg = 0x300000000000ull;
61 static const uptr kMetaShadowEnd = 0x340000000000ull;
62 static const uptr kTraceMemBeg = 0x600000000000ull;
63 static const uptr kTraceMemEnd = 0x620000000000ull;
64 static const uptr kShadowBeg = 0x010000000000ull;
65 static const uptr kShadowEnd = 0x200000000000ull;
66 static const uptr kHeapMemBeg = 0x7b0000000000ull;
67 static const uptr kHeapMemEnd = 0x7c0000000000ull;
68 static const uptr kLoAppMemBeg = 0x000000001000ull;
69 static const uptr kLoAppMemEnd = 0x008000000000ull;
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/asan/
H A Dasan_interface_internal.h25 using __sanitizer::uptr;
50 uptr beg; // The address of the global.
51 uptr size; // The original size of the global.
52 uptr size_with_redzone; // The size with the redzone.
56 uptr has_dynamic_init; // Non-zero if the global has dynamic initializer.
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);
73 void __asan_unregister_elf_globals(uptr *flag, void *start, void *stop);
[all …]
H A Dasan_fake_stack.h24 uptr magic; // Modified by the instrumented code.
25 uptr descr; // Modified by the instrumented code.
26 uptr pc; // Modified by the instrumented code.
27 uptr real_stack;
58 static const uptr kMinStackFrameSizeLog = 6; // Min frame is 64B.
59 static const uptr kMaxStackFrameSizeLog = 16; // Max stack frame is 64K.
62 static const uptr kNumberOfSizeClasses =
66 static FakeStack *Create(uptr stack_size_log);
71 static uptr SizeRequiredForFlags(uptr stack_size_log) { in SizeRequiredForFlags()
72 return ((uptr)1) << (stack_size_log + 1 - kMinStackFrameSizeLog); in SizeRequiredForFlags()
[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;
70 bool AddrIsInside(uptr addr, uptr access_size, sptr *offset) const { in AddrIsInside()
77 bool AddrIsAtLeft(uptr addr, uptr access_size, sptr *offset) const { in AddrIsAtLeft()
85 bool AddrIsAtRight(uptr addr, uptr access_size, sptr *offset) const { in AddrIsAtRight()
97 AsanChunkView FindHeapChunkByAddress(uptr address);
98 AsanChunkView FindHeapChunkByAllocBeg(uptr address);
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/asan/
H A Dasan_interface_internal.h23 using __sanitizer::uptr;
48 uptr beg; // The address of the global.
49 uptr size; // The original size of the global.
50 uptr size_with_redzone; // The size with the redzone.
54 uptr has_dynamic_init; // Non-zero if the global has dynamic initializer.
57 uptr odr_indicator; // The address of the ODR indicator symbol.
64 void __asan_register_image_globals(uptr *flag);
66 void __asan_unregister_image_globals(uptr *flag);
69 void __asan_register_elf_globals(uptr *flag, void *start, void *stop);
71 void __asan_unregister_elf_globals(uptr *flag, void *start, void *stop);
[all …]
H A Dasan_fake_stack.h22 uptr magic; // Modified by the instrumented code.
23 uptr descr; // Modified by the instrumented code.
24 uptr pc; // Modified by the instrumented code.
25 uptr real_stack;
56 static const uptr kMinStackFrameSizeLog = 6; // Min frame is 64B.
57 static const uptr kMaxStackFrameSizeLog = 16; // Max stack frame is 64K.
60 static const uptr kNumberOfSizeClasses =
64 static FakeStack *Create(uptr stack_size_log);
69 static uptr SizeRequiredForFlags(uptr stack_size_log) { in SizeRequiredForFlags()
70 return ((uptr)1) << (stack_size_log + 1 - kMinStackFrameSizeLog); in SizeRequiredForFlags()
[all …]
H A Dasan_allocator.h56 uptr Beg() const; // First byte of user memory.
57 uptr End() const; // Last byte of user memory.
58 uptr UsedSize() const; // Size requested by the user.
60 uptr AllocTid() const;
61 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 …]
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/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.
58 uptr odr_indicator; // The address of the ODR indicator symbol.
65 void __asan_register_image_globals(uptr *flag);
67 void __asan_unregister_image_globals(uptr *flag);
70 void __asan_register_elf_globals(uptr *flag, void *start, void *stop);
72 void __asan_unregister_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_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_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_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 …]
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/sanitizer_common/
H A Dsanitizer_common.h38 const uptr kWordSize = SANITIZER_WORDSIZE / 8;
39 const uptr kWordSizeInBits = 8 * kWordSize;
41 const uptr kCacheLineSize = SANITIZER_CACHE_LINE_SIZE;
43 const uptr kMaxPathLength = 4096;
45 const uptr kMaxThreadStackSize = 1 << 30; // 1Gb
47 const uptr kErrorMessageBufferSize = 1 << 16;
64 inline uptr GetPageSize() { in GetPageSize()
68 inline uptr GetPageSizeCached() { in GetPageSizeCached()
72 uptr GetPageSize();
73 extern uptr PageSizeCached;
[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_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()
111 uptr trace_buffer[kStackTraceMax];
112 uptr top_frame_bp; // Optional bp of a top frame.
[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 …]
/netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/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 static const uptr kErrorMessageBufferSize = 1 << 16;
62 uptr GetPageSize();
63 extern uptr PageSizeCached;
64 INLINE uptr GetPageSizeCached() { in GetPageSizeCached()
69 uptr GetMmapGranularity();
[all …]
H A Dsanitizer_allocator_primary64.h47 static const uptr kSpaceBeg = Params::kSpaceBeg;
48 static const uptr kSpaceSize = Params::kSpaceSize;
49 static const uptr kMetadataSize = Params::kMetadataSize;
62 static const uptr kCompactPtrScale = 4;
63 CompactPtrT PointerToCompactPtr(uptr base, uptr ptr) const { in PointerToCompactPtr()
66 uptr CompactPtrToPointer(uptr base, CompactPtrT ptr32) const { in CompactPtrToPointer()
67 return base + (static_cast<uptr>(ptr32) << kCompactPtrScale); in CompactPtrToPointer()
71 uptr TotalSpaceSize = kSpaceSize + AdditionalSize(); in Init()
78 CHECK_NE(NonConstSpaceBeg, ~(uptr)0); in Init()
96 for (uptr class_id = 1; class_id < kNumClasses; class_id++) { in ForceReleaseToOS()
[all …]
H A Dsanitizer_stacktrace.h40 const uptr *trace;
50 StackTrace(const uptr *trace, u32 size) : trace(trace), size(size), tag(0) {} in StackTrace()
51 StackTrace(const uptr *trace, u32 size, u32 tag) in StackTrace()
65 static uptr GetCurrentPc();
66 static inline uptr GetPreviousInstructionPc(uptr pc);
67 static uptr GetNextInstructionPc(uptr pc);
74 uptr StackTrace::GetPreviousInstructionPc(uptr pc) { in GetPreviousInstructionPc()
92 uptr trace_buffer[kStackTraceMax];
93 uptr top_frame_bp; // Optional bp of a top frame.
97 void Init(const uptr *pcs, uptr cnt, uptr extra_top_pc = 0);
[all …]
/netbsd-src/sys/external/bsd/compiler_rt/dist/lib/sanitizer_common/
H A Dsanitizer_common.h39 const uptr kWordSize = SANITIZER_WORDSIZE / 8;
40 const uptr kWordSizeInBits = 8 * kWordSize;
42 const uptr kCacheLineSize = SANITIZER_CACHE_LINE_SIZE;
44 const uptr kMaxPathLength = 4096;
46 const uptr kMaxThreadStackSize = 1 << 30; // 1Gb
48 static const uptr kErrorMessageBufferSize = 1 << 16;
64 uptr GetPageSize();
65 extern uptr PageSizeCached;
66 INLINE uptr GetPageSizeCached() { in GetPageSizeCached()
71 uptr GetMmapGranularity();
[all …]
H A Dsanitizer_allocator_primary64.h50 static const uptr kSpaceBeg = Params::kSpaceBeg;
51 static const uptr kSpaceSize = Params::kSpaceSize;
52 static const uptr kMetadataSize = Params::kMetadataSize;
65 static const uptr kCompactPtrScale = 4;
66 CompactPtrT PointerToCompactPtr(uptr base, uptr ptr) const { in PointerToCompactPtr()
69 uptr CompactPtrToPointer(uptr base, CompactPtrT ptr32) const { in CompactPtrToPointer()
70 return base + (static_cast<uptr>(ptr32) << kCompactPtrScale); in CompactPtrToPointer()
74 uptr TotalSpaceSize = kSpaceSize + AdditionalSize(); in Init()
81 CHECK_NE(NonConstSpaceBeg, ~(uptr)0); in Init()
99 for (uptr class_id = 1; class_id < kNumClasses; class_id++) { in ForceReleaseToOS()
[all …]
/netbsd-src/external/gpl3/gcc/dist/libsanitizer/lsan/
H A Dlsan_common.h76 uptr pointer_alignment() const { in pointer_alignment()
77 return use_unaligned ? 1 : sizeof(uptr); in pointer_alignment()
87 uptr hit_count;
88 uptr total_size;
96 uptr addr;
97 uptr size;
104 void AddLeakedChunk(uptr chunk, u32 stack_trace_id, uptr leaked_size,
106 void ReportTopLeaks(uptr max_leaks);
108 uptr ApplySuppressions();
109 uptr UnsuppressedLeakCount();
[all …]

12345678910>>...36