Home
last modified time | relevance | path

Searched refs:uintptr_t (Results 1 – 25 of 474) sorted by relevance

12345678910>>...19

/openbsd-src/gnu/llvm/compiler-rt/lib/builtins/
H A Dclear_cache.c22 uint32_t FlushInstructionCache(uintptr_t hProcess, void *lpBaseAddress,
23 uintptr_t dwSize);
24 uintptr_t GetCurrentProcess(void);
71 arg.addr = (uintptr_t)start; in __clear_cache()
72 arg.len = (uintptr_t)end - (uintptr_t)start; in __clear_cache()
97 const uintptr_t start_int = (uintptr_t)start; in __clear_cache()
98 const uintptr_t end_int = (uintptr_t)end; in __clear_cache()
99 uintptr_t synci_step; in __clear_cache()
103 for (uintptr_t p = start_int; p < end_int; p += synci_step) in __clear_cache()
120 uint64_t xstart = (uint64_t)(uintptr_t)start; in __clear_cache()
[all …]
H A Demutls.c37 uintptr_t skip_destructor_rounds;
38 uintptr_t size; // number of elements in the 'data' array
75 base = (void *)(((uintptr_t)(object + EXTRA_ALIGN_PTR_BYTES)) & in emutls_memalign_alloc()
76 ~(uintptr_t)(align - 1)); in emutls_memalign_alloc()
142 typedef uintptr_t gcc_word;
237 static __inline uintptr_t __atomic_load_n(void *ptr, unsigned type) { in __atomic_load_n()
248 static __inline void __atomic_store_n(void *ptr, uintptr_t val, unsigned type) { in __atomic_store_n()
262 uintptr_t i; in emutls_shutdown()
282 uintptr_t index; // data[index-1] is the object address
291 COMPILE_TIME_ASSERT(sizeof(uintptr_t) == sizeof(gcc_pointer)); in emutls_allocate_object()
[all …]
H A Dgcc_personality_v0.c71 static uintptr_t readEncodedPointer(const uint8_t **data, uint8_t encoding) { in readEncodedPointer()
73 uintptr_t result = 0; in readEncodedPointer()
81 result = *((const uintptr_t *)p); in readEncodedPointer()
82 p += sizeof(uintptr_t); in readEncodedPointer()
124 result += (uintptr_t)(*data); in readEncodedPointer()
138 result = *((const uintptr_t *)result); in readEncodedPointer()
207 uintptr_t pc = (uintptr_t)_Unwind_GetIP(context) - 1; in __gcc_personality_sj0()
208 uintptr_t funcStart = (uintptr_t)_Unwind_GetRegionStart(context); in __gcc_personality_sj0()
209 uintptr_t pcOffset = pc - funcStart; in __gcc_personality_sj0()
227 uintptr_t start = readEncodedPointer(&p, callSiteEncoding); in __gcc_personality_sj0()
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/gwp_asan/tests/
H A Dcompression.cpp18 uintptr_t Uncompressed = 0x00; in TEST()
32 uint8_t Compressed[sizeof(uintptr_t) + 1]; in TEST()
34 uintptr_t Uncompressed = 0x40; in TEST()
66 uintptr_t Uncompressed[2] = {0x00, 0x00}; in TEST()
68 EXPECT_EQ(2u, pack(Uncompressed, sizeof(Uncompressed) / sizeof(uintptr_t), in TEST()
73 EXPECT_EQ(2u, pack(Uncompressed, sizeof(Uncompressed) / sizeof(uintptr_t), in TEST()
78 EXPECT_EQ(2u, pack(Uncompressed, sizeof(Uncompressed) / sizeof(uintptr_t), in TEST()
83 EXPECT_EQ(3u, pack(Uncompressed, sizeof(Uncompressed) / sizeof(uintptr_t), in TEST()
90 EXPECT_EQ(2u, pack(Uncompressed, sizeof(Uncompressed) / sizeof(uintptr_t), in TEST()
95 EXPECT_EQ(2u, pack(Uncompressed, sizeof(Uncompressed) / sizeof(uintptr_t), in TEST()
[all …]
H A Dcrash_handler_api.cpp24 size_t metadata(uintptr_t Addr, uintptr_t Size, bool IsDeallocated) { in metadata()
63 uintptr_t Buffer[kNumBacktraceConstants]; in checkBacktrace()
79 void checkMetadata(size_t Index, uintptr_t ErrorPtr) { in checkMetadata()
101 static uintptr_t BacktraceConstants[kNumBacktraceConstants];
104 uintptr_t InternalFaultAddr;
107 uintptr_t CrashHandlerAPITest::BacktraceConstants[kNumBacktraceConstants] = {
111 uintptr_t UnknownPtr = reinterpret_cast<uintptr_t>(&State); in TEST_F()
125 uintptr_t FailureAddress = 0x9000; in TEST_F()
137 uintptr_t FailureAddress = 0x7000; in TEST_F()
153 uintptr_t FailureAddress = 0x7001; in TEST_F()
[all …]
/openbsd-src/gnu/llvm/llvm/include/llvm/ADT/
H A DSmallBitVector.h39 uintptr_t X = 1;
43 NumBaseBits = sizeof(uintptr_t) * CHAR_BIT,
64 using size_type = uintptr_t;
100 void switchToSmall(uintptr_t NewSmallBits, size_type NewSize) { in switchToSmall()
107 X = reinterpret_cast<uintptr_t>(BV); in switchToLarge()
113 uintptr_t getSmallRawBits() const { in getSmallRawBits()
118 void setSmallRawBits(uintptr_t NewRawBits) { in setSmallRawBits()
120 X = (NewRawBits << 1) | uintptr_t(1); in setSmallRawBits()
133 uintptr_t getSmallBits() const { in getSmallBits()
134 return getSmallRawBits() & ~(~uintptr_t(0) << getSmallSize()); in getSmallBits()
[all …]
H A DPointerEmbeddedInt.h34 uintptr_t Value = 0;
38 static_assert(Bits < sizeof(uintptr_t) * CHAR_BIT,
41 enum : uintptr_t {
44 Shift = sizeof(uintptr_t) * CHAR_BIT - Bits,
47 Mask = static_cast<uintptr_t>(-1) << Bits
56 explicit PointerEmbeddedInt(uintptr_t Value, RawValueTag) : Value(Value) {}
66 Value = static_cast<uintptr_t>(I) << Shift;
90 return T(reinterpret_cast<uintptr_t>(P), typename T::RawValueTag());
94 return T(reinterpret_cast<uintptr_t>(P), typename T::RawValueTag());
/openbsd-src/gnu/llvm/compiler-rt/tools/gwp_asan/
H A Dstack_trace_compressor_fuzzer.cpp9 constexpr size_t kBytesForLargestVarInt = (sizeof(uintptr_t) * 8) / 7 + 1;
12 size_t BufferSize = kBytesForLargestVarInt * Size / sizeof(uintptr_t); in LLVMFuzzerTestOneInput()
18 reinterpret_cast<uintptr_t *>(Buffer2.data()), in LLVMFuzzerTestOneInput()
19 BufferSize / sizeof(uintptr_t)); in LLVMFuzzerTestOneInput()
23 reinterpret_cast<const uintptr_t *>(Data), Size / sizeof(uintptr_t), in LLVMFuzzerTestOneInput()
29 reinterpret_cast<uintptr_t *>(Buffer2.data()), in LLVMFuzzerTestOneInput()
30 BufferSize / sizeof(uintptr_t)); in LLVMFuzzerTestOneInput()
33 if (DecodedElements != Size / sizeof(uintptr_t)) in LLVMFuzzerTestOneInput()
37 const uintptr_t *FuzzPtrs = reinterpret_cast<const uintptr_t *>(Data); in LLVMFuzzerTestOneInput()
38 const uintptr_t *DecodedPtrs = in LLVMFuzzerTestOneInput()
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/fuzzer/
H A DFuzzerValueBitMap.h23 static const size_t kBitsInWord = (sizeof(uintptr_t) * 8);
33 inline bool AddValue(uintptr_t Value) { in AddValue()
34 uintptr_t Idx = Value % kMapSizeInBits; in AddValue()
35 uintptr_t WordIdx = Idx / kBitsInWord; in AddValue()
36 uintptr_t BitIdx = Idx % kBitsInWord; in AddValue()
37 uintptr_t Old = Map[WordIdx]; in AddValue()
38 uintptr_t New = Old | (1ULL << BitIdx); in AddValue()
44 inline bool AddValueModPrime(uintptr_t Value) { in AddValueModPrime()
48 inline bool Get(uintptr_t Idx) { in Get()
50 uintptr_t WordIdx = Idx / kBitsInWord; in Get()
[all …]
H A DFuzzerTracePC.cpp28 ATTRIBUTES_INTERFACE_TLS_INITIAL_EXEC uintptr_t __sancov_lowest_stack;
71 void TracePC::HandlePCsInit(const uintptr_t *Start, const uintptr_t *Stop) { in HandlePCsInit()
121 void TracePC::HandleCallerCallee(uintptr_t Caller, uintptr_t Callee) { in HandleCallerCallee()
122 const uintptr_t kBits = 12; in HandleCallerCallee()
123 const uintptr_t kMask = (1 << kBits) - 1; in HandleCallerCallee()
124 uintptr_t Idx = (Caller & kMask) | ((Callee & kMask) << kBits); in HandleCallerCallee()
130 inline ALWAYS_INLINE uintptr_t GetPreviousInstructionPc(uintptr_t PC) { in GetPreviousInstructionPc()
149 ALWAYS_INLINE uintptr_t TracePC::GetNextInstructionPc(uintptr_t PC) { in GetNextInstructionPc()
161 std::vector<uintptr_t> CoveredFuncs; in UpdateObservedPCs()
202 uintptr_t TracePC::PCTableEntryIdx(const PCTableEntry *TE) { in PCTableEntryIdx()
[all …]
/openbsd-src/gnu/gcc/libmudflap/
H A Dmf-heuristics.c53 __mf_heuristic_check (uintptr_t ptr, uintptr_t ptr_high) in __mf_heuristic_check()
67 uintptr_t stack_top_guess = (uintptr_t)__builtin_frame_address(0); in __mf_heuristic_check()
69 uintptr_t stack_segment_base = 0xC0000000; /* XXX: Bad assumption. */ in __mf_heuristic_check()
72 uintptr_t stack_segment_base = 0; in __mf_heuristic_check()
98 uintptr_t low; in __mf_heuristic_check()
99 uintptr_t high; in __mf_heuristic_check()
135 if ((uintptr_t) low <= ptr && in __mf_heuristic_check()
136 (uintptr_t) high >= ptr_high) in __mf_heuristic_check()
142 entry[i].low = (uintptr_t) low; in __mf_heuristic_check()
143 entry[i].high = (uintptr_t) high; in __mf_heuristic_check()
[all …]
H A Dmf-impl.h49 typedef __mf_uintptr_t uintptr_t; typedef
68 #define MINPTR ((uintptr_t) 0)
69 #define MAXPTR (~ (uintptr_t) 0)
72 #define CLAMPSUB(ptr,offset) (((uintptr_t) ptr) >= (offset) ? ((uintptr_t) ptr)-((uintptr_t) offset…
73 #define CLAMPADD(ptr,offset) (((uintptr_t) ptr) <= MAXPTR-(offset) ? ((uintptr_t) ptr)+((uintptr_t)…
74 …SZ(ptr,size) ((size) ? (((uintptr_t) ptr) <= MAXPTR-(size)+1 ? ((uintptr_t) ptr)+((uintptr_t) size…
76 #define __MF_CACHE_INDEX(ptr) ((((uintptr_t) (ptr)) >> __mf_lc_shift) & __mf_lc_mask)
79 ((elem->low > (uintptr_t) (ptr)) || \
80 (elem->high < (CLAMPADD((uintptr_t) (ptr), (uintptr_t) CLAMPSUB(sz,1) )))); })
88 uintptr_t pc, const char *location,
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/gwp_asan/
H A Dstack_trace_compressor.cpp17 size_t varIntEncode(uintptr_t Value, uint8_t *Out, size_t OutLen) { in varIntEncode()
35 size_t varIntDecode(const uint8_t *In, size_t InLen, uintptr_t *Out) { in varIntDecode()
40 *Out |= (static_cast<uintptr_t>(In[i]) & 0x7f) << Shift; in varIntDecode()
48 if (Shift >= sizeof(uintptr_t) * 8) in varIntDecode()
54 uintptr_t zigzagEncode(uintptr_t Value) { in zigzagEncode()
55 uintptr_t Encoded = Value << 1; in zigzagEncode()
61 uintptr_t zigzagDecode(uintptr_t Value) { in zigzagDecode()
62 uintptr_t Decoded = Value >> 1; in zigzagDecode()
69 size_t pack(const uintptr_t *Unpacked, size_t UnpackedSize, uint8_t *Packed, in pack()
73 uintptr_t Diff = Unpacked[CurrentDepth]; in pack()
[all …]
H A Dguarded_pool_allocator.cpp34 uintptr_t getPageAddr(uintptr_t Ptr, uintptr_t PageSize) { in getPageAddr()
38 bool isPowerOfTwo(uintptr_t X) { return (X & (X - 1)) == 0; } in isPowerOfTwo()
113 State.GuardedPagePool = reinterpret_cast<uintptr_t>(GuardedPoolMemory); in init()
115 reinterpret_cast<uintptr_t>(GuardedPoolMemory) + PoolBytesRequired; in init()
133 uintptr_t Start = reinterpret_cast<uintptr_t>(Base); in iterate()
181 uintptr_t GuardedPoolAllocator::alignUp(uintptr_t Ptr, size_t Alignment) { in alignUp()
191 uintptr_t GuardedPoolAllocator::alignDown(uintptr_t Ptr, size_t Alignment) { in alignDown()
238 uintptr_t SlotStart = State.slotToAddr(Index); in allocate()
240 uintptr_t SlotEnd = State.slotToAddr(Index) + State.maximumAllocationSize(); in allocate()
241 uintptr_t UserPtr; in allocate()
[all …]
H A Dcommon.h73 void RecordAllocation(uintptr_t Addr, size_t RequestedSize);
92 uintptr_t Addr = 0;
119 uintptr_t P = reinterpret_cast<uintptr_t>(Ptr); in pointerIsMine()
124 uintptr_t slotToAddr(size_t N) const;
130 size_t getNearestSlot(uintptr_t Ptr) const;
134 bool isGuardPage(uintptr_t Ptr) const;
139 uintptr_t internallyDetectedErrorFaultAddress() const;
146 uintptr_t GuardedPagePool = 0;
147 uintptr_t GuardedPagePoolEnd = 0;
156 uintptr_t FailureAddress = 0;
H A Dcrash_handler.h39 uintptr_t ErrorPtr = 0u);
47 uintptr_t ErrorPtr);
58 uintptr_t
60 uintptr_t ErrorPtr);
70 uintptr_t ErrorPtr);
81 uintptr_t __gwp_asan_get_allocation_address(
101 const gwp_asan::AllocationMetadata *AllocationMeta, uintptr_t *Buffer,
124 const gwp_asan::AllocationMetadata *AllocationMeta, uintptr_t *Buffer,
H A Dcrash_handler.cpp24 uintptr_t ErrorPtr) { in __gwp_asan_error_is_mine()
33 uintptr_t
35 uintptr_t ErrorPtr) { in __gwp_asan_get_internal_crash_address()
48 const AllocationMetadata *Metadata, uintptr_t Ptr) { in addrToMetadata()
56 uintptr_t ErrorPtr) { in __gwp_asan_diagnose_error()
92 uintptr_t ErrorPtr) { in __gwp_asan_get_metadata()
107 uintptr_t __gwp_asan_get_allocation_address( in __gwp_asan_get_allocation_address()
123 const gwp_asan::AllocationMetadata *AllocationMeta, uintptr_t *Buffer, in __gwp_asan_get_allocation_trace()
125 uintptr_t UncompressedBuffer[AllocationMetadata::kMaxTraceLengthToCollect]; in __gwp_asan_get_allocation_trace()
147 const gwp_asan::AllocationMetadata *AllocationMeta, uintptr_t *Buffer, in __gwp_asan_get_deallocation_trace()
[all …]
/openbsd-src/gnu/llvm/libcxxabi/src/
H A Dcxa_personality.cpp163 uintptr_t readPointerHelper(const uint8_t*& p) { in readPointerHelper()
167 return static_cast<uintptr_t>(value); in readPointerHelper()
206 uintptr_t
209 uintptr_t result = 0; in readULEB128()
210 uintptr_t shift = 0; in readULEB128()
216 result |= static_cast<uintptr_t>(byte & 0x7F) << shift; in readULEB128()
232 uintptr_t result = 0; in readSLEB128()
233 uintptr_t shift = 0; in readSLEB128()
239 result |= static_cast<uintptr_t>(byte & 0x7F) << shift; in readSLEB128()
244 result |= static_cast<uintptr_t>(~0) << shift; in readSLEB128()
[all …]
/openbsd-src/gnu/llvm/libunwind/src/
H A DAddressSpace.hpp51 char *getFuncNameFromTBTable(uintptr_t pc, uint16_t &NameLen,
62 uintptr_t dwarf_section_length;
64 uintptr_t compact_unwind_section_length;
129 uintptr_t dso_base;
135 uintptr_t dwarf_section;
139 uintptr_t dwarf_index_section;
143 uintptr_t compact_unwind_section;
147 uintptr_t arm_section;
156 CacheItem(UnwindInfoSections &uis, uintptr_t pc) in CacheItem()
159 CacheItem(uintptr_t pc) in CacheItem()
[all …]
H A DUnwindLevel1.c134 (_Unwind_Personality_Fn)(uintptr_t)(frameInfo.handler); in unwind_phase1()
137 (void *)exception_object, (void *)(uintptr_t)p); in unwind_phase1()
146 exception_object->private_2 = (uintptr_t)sp; in unwind_phase1()
254 (_Unwind_Personality_Fn)(uintptr_t)(frameInfo.handler); in unwind_phase2()
371 (void *)exception_object, (void *)(uintptr_t)p); in unwind_phase2_forced()
481 (void *)exception_object, (void *)(uintptr_t)stop); in _Unwind_ForcedUnwind()
488 exception_object->private_1 = (uintptr_t) stop; in _Unwind_ForcedUnwind()
489 exception_object->private_2 = (uintptr_t) stop_parameter; in _Unwind_ForcedUnwind()
497 _LIBUNWIND_EXPORT uintptr_t
501 uintptr_t result = 0; in _Unwind_GetLanguageSpecificData()
[all …]
/openbsd-src/sys/arch/riscv64/include/
H A Dsbi.h119 register uintptr_t a0 __asm ("a0") = (uintptr_t)(arg0); in sbi_call()
120 register uintptr_t a1 __asm ("a1") = (uintptr_t)(arg1); in sbi_call()
121 register uintptr_t a2 __asm ("a2") = (uintptr_t)(arg2); in sbi_call()
122 register uintptr_t a3 __asm ("a3") = (uintptr_t)(arg3); in sbi_call()
123 register uintptr_t a6 __asm ("a6") = (uintptr_t)(arg6); in sbi_call()
124 register uintptr_t a7 __asm ("a7") = (uintptr_t)(arg7); in sbi_call()
/openbsd-src/gnu/llvm/libunwind/include/
H A Dunwind_itanium.h26 uintptr_t private_[6];
28 uintptr_t private_1; // non-zero means forced unwind
29 uintptr_t private_2; // holds sp that phase1 found for phase2 to use
66 extern uintptr_t _Unwind_GetGR(struct _Unwind_Context *context, int index);
68 uintptr_t new_value);
69 extern uintptr_t _Unwind_GetIP(struct _Unwind_Context *context);
70 extern void _Unwind_SetIP(struct _Unwind_Context *, uintptr_t new_value);
H A Dunwind.h76 extern uintptr_t _Unwind_GetRegionStart(struct _Unwind_Context *context);
77 extern uintptr_t
120 extern uintptr_t _Unwind_GetCFA(struct _Unwind_Context *);
129 extern uintptr_t _Unwind_GetIPInfo(struct _Unwind_Context *context,
148 uintptr_t tbase;
149 uintptr_t dbase;
150 uintptr_t func;
164 extern uintptr_t _Unwind_GetDataRelBase(struct _Unwind_Context *context)
166 extern uintptr_t _Unwind_GetTextRelBase(struct _Unwind_Context *context)
/openbsd-src/gnu/llvm/llvm/lib/ExecutionEngine/
H A DSectionMemoryManager.cpp21 uint8_t *SectionMemoryManager::allocateDataSection(uintptr_t Size, in allocateDataSection()
33 uint8_t *SectionMemoryManager::allocateCodeSection(uintptr_t Size, in allocateCodeSection()
42 SectionMemoryManager::AllocationPurpose Purpose, uintptr_t Size, in allocateSection()
49 uintptr_t RequiredSize = Alignment * ((Size + Alignment - 1) / Alignment + 1); in allocateSection()
50 uintptr_t Addr = 0; in allocateSection()
68 Addr = (uintptr_t)FreeMB.Free.base(); in allocateSection()
69 uintptr_t EndOfBlock = Addr + FreeMB.Free.allocatedSize(); in allocateSection()
71 Addr = (Addr + Alignment - 1) & ~(uintptr_t)(Alignment - 1); in allocateSection()
84 Addr + Size - (uintptr_t)PendingMB.base()); in allocateSection()
126 Addr = (uintptr_t)MB.base(); in allocateSection()
[all …]
/openbsd-src/gnu/llvm/compiler-rt/lib/scudo/standalone/include/scudo/
H A Dinterface.h26 typedef void (*iterate_callback)(uintptr_t base, size_t size, void *arg);
75 uintptr_t fault_addr, const char *stack_depot,
78 uintptr_t memory_addr, size_t memory_size);
90 uintptr_t allocation_address;
91 uintptr_t allocation_size;
94 uintptr_t allocation_trace[64];
97 uintptr_t deallocation_trace[64];

12345678910>>...19