Home
last modified time | relevance | path

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

12345678910>>...13

/external/valgrind/tsan/
Dts_stats.h44 uintptr_t memory_access_sizes[18];
45 uintptr_t events[LAST_EVENT];
46 uintptr_t unlocked_access_ok;
47 uintptr_t n_fast_access1, n_fast_access2, n_fast_access4, n_fast_access8,
51 uintptr_t mops_per_trace[16];
52 uintptr_t locks_per_trace[16];
53 uintptr_t locked_access[8];
54 uintptr_t history_uses_same_segment, history_creates_new_segment,
57 uintptr_t msm_branch_count[16];
59 uintptr_t access_to_first_1g;
[all …]
Dts_pin.cc62 # define UINTPTR_MAX ((uintptr_t)-1)
69 static void DumpEvent(CONTEXT *ctx, EventType type, int32_t tid, uintptr_t pc,
70 uintptr_t a, uintptr_t info);
110 static unordered_set<uintptr_t> *g_windows_thread_pool_calback_set;
113 static unordered_map<uintptr_t, uintptr_t> *g_windows_thread_pool_wait_object_map;
118 uintptr_t pc;
119 uintptr_t sp;
120 StackFrame(uintptr_t p, uintptr_t s) : pc(p), sp(s) { } in StackFrame()
135 uintptr_t pc;
136 uintptr_t sp;
[all …]
Dthread_sanitizer.h39 void PcToStrings(uintptr_t pc, bool demangle,
42 string PcToRtnNameAndFilePos(uintptr_t pc);
43 string PcToRtnName(uintptr_t pc, bool demangle);
56 uintptr_t trace_addr;
57 uintptr_t segment_set_recycle_queue_size;
58 uintptr_t recent_segments_cache_size;
154 uintptr_t *end_;
155 uintptr_t pcs_[kMaxCallStackSize];
163 uintptr_t *pcs() { return pcs_; } in pcs()
167 uintptr_t &back() { in back()
[all …]
Dts_lock.h76 ALWAYS_INLINE uintptr_t AtomicExchange(uintptr_t *ptr, uintptr_t new_value) { in AtomicExchange()
77 uintptr_t old_value = *ptr; in AtomicExchange()
82 ALWAYS_INLINE void ReleaseStore(uintptr_t *ptr, uintptr_t value) { in ReleaseStore()
96 ALWAYS_INLINE uintptr_t AtomicExchange(uintptr_t *ptr, uintptr_t new_value) { in AtomicExchange()
100 ALWAYS_INLINE void ReleaseStore(uintptr_t *ptr, uintptr_t value) { in ReleaseStore()
102 *(volatile uintptr_t*)ptr = value; in ReleaseStore()
114 uintptr_t AtomicExchange(uintptr_t *ptr, uintptr_t new_value);
115 void ReleaseStore(uintptr_t *ptr, uintptr_t value);
Dts_events.h103 Event(EventType type, int32_t tid, uintptr_t pc, uintptr_t a, uintptr_t info) in Event()
112 void Init(EventType type, int32_t tid, uintptr_t pc, uintptr_t a, uintptr_t info) { in Init()
123 uintptr_t a() const { return a_; } in a()
124 uintptr_t pc() const { return pc_; } in pc()
125 uintptr_t info() const { return info_; } in info()
137 uintptr_t pc_;
138 uintptr_t a_;
139 uintptr_t info_;
Dts_race_verifier.cc46 uintptr_t pc;
48 vector<uintptr_t> traces;
56 static map<uintptr_t, PossibleRace*>* races_map;
61 uintptr_t pc;
70 typedef map<uintptr_t, TypedCallSites> AddressMap;
75 static set<uintptr_t>* ignore_addresses;
79 typedef map<uintptr_t, int> VisitCountMap;
90 bool RaceVerifierGetAddresses(uintptr_t min_pc, uintptr_t max_pc, in RaceVerifierGetAddresses()
91 uintptr_t* instrument_pc) { in RaceVerifierGetAddresses()
92 uintptr_t pc = 0; in RaceVerifierGetAddresses()
[all …]
Dts_race_verifier.h41 bool RaceVerifierGetAddresses(uintptr_t min_pc, uintptr_t max_pc,
42 uintptr_t* instrument_pc);
43 bool RaceVerifierStartAccess(int thread_id, uintptr_t addr, uintptr_t pc,
45 void RaceVerifierEndAccess(int thread_id, uintptr_t addr, uintptr_t pc,
47 int RaceVerifierGetSleepTime(uintptr_t trace_pc);
Dts_heap_info.h43 typedef map<uintptr_t, HeapInfo> map_t;
53 void InsertInfo(uintptr_t a, HeapInfo info) { in InsertInfo()
59 void EraseInfo(uintptr_t a) { in EraseInfo()
64 void EraseRange(uintptr_t start, uintptr_t end) { in EraseRange()
71 HeapInfo *GetInfo(uintptr_t a) { in GetInfo()
99 bool IsValidPtr(uintptr_t a) { in IsValidPtr()
100 return a != 0 && a != (uintptr_t) -1; in IsValidPtr()
106 max_info.ptr = (uintptr_t)-1; in Reset()
Dts_dynamorio.cc91 uintptr_t pc;
92 uintptr_t sp;
93 StackFrame(uintptr_t p, uintptr_t s) : pc(p), sp(s) { } in StackFrame()
113 uintptr_t pc = t.shadow_stack[i].pc; in PrintShadowStack()
117 uintptr_t pc = t.shadow_stack[i].pc; in PrintShadowStack()
118 uintptr_t sp = t.shadow_stack[i].sp; in PrintShadowStack()
123 static void UpdateShadowStack(DrThread &t, uintptr_t sp) { in UpdateShadowStack()
135 static void PushShadowStack(DrThread &t, uintptr_t pc, uintptr_t target_pc, uintptr_t sp) { in PushShadowStack()
184 static void On_Mop(uintptr_t pc, size_t size, void *a, bool is_w) { in On_Mop()
192 static void On_Read(uintptr_t pc, size_t size, void *a) { in On_Read()
[all …]
Dthread_sanitizer.cc75 uintptr_t g_nacl_mem_start = (uintptr_t)-1;
76 uintptr_t g_nacl_mem_end = (uintptr_t)-1;
161 string PcToRtnNameAndFilePos(uintptr_t pc) { in PcToRtnNameAndFilePos()
471 uintptr_t *GetNewMemForStackTrace(size_t capacity) { in GetNewMemForStackTrace()
473 return reinterpret_cast<uintptr_t*>(free_lists_[capacity]->Allocate()); in GetNewMemForStackTrace()
476 void TakeStackTraceBack(uintptr_t *mem, size_t capacity) { in TakeStackTraceBack()
486 free_lists_[i] = new FreeList((i+2) * sizeof(uintptr_t), 1024); in StackTraceFreeList()
505 uintptr_t *mem = g_stack_trace_free_list->GetNewMemForStackTrace(capacity); in CreateNewEmptyStackTrace()
515 reinterpret_cast<uintptr_t*>(trace), trace->capacity()); in Delete()
527 void Set(size_t i, uintptr_t pc) { in Set()
[all …]
Dts_valgrind.cc97 string PcToRtnName(uintptr_t pc, bool demangle) { in PcToRtnName()
110 void PcToStrings(uintptr_t pc, bool demangle, in PcToStrings()
154 static inline uintptr_t GetVgPc(ThreadId vg_tid) { in GetVgPc()
161 static inline uintptr_t GetVgSp(ThreadId vg_tid) { in GetVgSp()
168 static inline uintptr_t GetVgLr(ThreadId vg_tid) { in GetVgLr()
169 return (uintptr_t)VG_(threads)[vg_tid].arch.vex.guest_R14; in GetVgLr()
173 static uintptr_t g_current_pc;
175 uintptr_t GetPcOfCurrentThread() { in GetPcOfCurrentThread()
179 void GetThreadStack(int tid, uintptr_t *min_addr, uintptr_t *max_addr) { in GetThreadStack()
181 uintptr_t stack_max = VG_(thread_get_stack_max)(GetVgTid()); in GetThreadStack()
[all …]
/external/webrtc/src/system_wrappers/source/
Daligned_malloc.cc71 returnValue->memoryPointer = malloc(size + sizeof(uintptr_t) + in AlignedMalloc()
81 uintptr_t alignStartPos = (uintptr_t)returnValue->memoryPointer; in AlignedMalloc()
82 alignStartPos += sizeof(uintptr_t); in AlignedMalloc()
86 uintptr_t alignedPos = (alignStartPos + alignment - 1) & ~(alignment - 1); in AlignedMalloc()
93 uintptr_t headerPos = alignedPos; in AlignedMalloc()
94 headerPos -= sizeof(uintptr_t); in AlignedMalloc()
96 uintptr_t headerValue = (uintptr_t)returnValue; in AlignedMalloc()
97 memcpy(headerPtr,&headerValue,sizeof(uintptr_t)); in AlignedMalloc()
108 uintptr_t alignedPos = (uintptr_t)memBlock; in AlignedFree()
109 uintptr_t headerPos = alignedPos - sizeof(uintptr_t); in AlignedFree()
[all …]
/external/llvm/include/llvm/ADT/
DSmallBitVector.h34 uintptr_t X;
38 NumBaseBits = sizeof(uintptr_t) * CHAR_BIT,
84 return X & uintptr_t(1); in isSmall()
92 void switchToSmall(uintptr_t NewSmallBits, size_t NewSize) { in switchToSmall()
99 X = reinterpret_cast<uintptr_t>(BV); in switchToLarge()
105 uintptr_t getSmallRawBits() const { in getSmallRawBits()
110 void setSmallRawBits(uintptr_t NewRawBits) { in setSmallRawBits()
112 X = (NewRawBits << 1) | uintptr_t(1); in setSmallRawBits()
125 uintptr_t getSmallBits() const { in getSmallBits()
126 return getSmallRawBits() & ~(~uintptr_t(0) << getSmallSize()); in getSmallBits()
[all …]
/external/llvm/include/llvm/CodeGen/
DMachineCodeEmitter.h164 if(Alignment <= (uintptr_t)(BufferEnd-CurBufferPtr)) { in emitAlignment()
167 (uint8_t*)(((uintptr_t)CurBufferPtr+Alignment-1) & in emitAlignment()
168 ~(uintptr_t)(Alignment-1)); in emitAlignment()
233 void emitInt32At(uintptr_t *Addr, uintptr_t Value) { in emitInt32At()
234 if (Addr >= (uintptr_t*)BufferBegin && Addr < (uintptr_t*)BufferEnd) in emitInt32At()
239 void emitInt64At(uintptr_t *Addr, uintptr_t Value) { in emitInt64At()
240 if (Addr >= (uintptr_t*)BufferBegin && Addr < (uintptr_t*)BufferEnd) in emitInt64At()
256 virtual void *allocateSpace(uintptr_t Size, unsigned Alignment) { in allocateSpace()
261 if (Size >= (uintptr_t)(BufferEnd-CurBufferPtr)) { in allocateSpace()
281 virtual uintptr_t getCurrentPCValue() const { in getCurrentPCValue()
[all …]
DJITCodeEmitter.h152 uint8_t *NewPtr = (uint8_t*)RoundUpToAlignment((uintptr_t)CurBufferPtr, in emitAlignment()
161 uint8_t *NewPtr = (uint8_t*)RoundUpToAlignment((uintptr_t)CurBufferPtr, in emitAlignmentWithFill()
238 void emitInt32At(uintptr_t *Addr, uintptr_t Value) { in emitInt32At()
239 if (Addr >= (uintptr_t*)BufferBegin && Addr < (uintptr_t*)BufferEnd) in emitInt32At()
244 void emitInt64At(uintptr_t *Addr, uintptr_t Value) { in emitInt64At()
245 if (Addr >= (uintptr_t*)BufferBegin && Addr < (uintptr_t*)BufferEnd) in emitInt64At()
256 virtual void *allocateSpace(uintptr_t Size, unsigned Alignment) { in allocateSpace()
261 if (Size >= (uintptr_t)(BufferEnd-CurBufferPtr)) { in allocateSpace()
276 virtual void *allocateGlobal(uintptr_t Size, unsigned Alignment) = 0;
286 virtual uintptr_t getCurrentPCValue() const { in getCurrentPCValue()
[all …]
DObjectCodeEmitter.h38 std::vector<uintptr_t> MBBLocations;
42 std::vector<uintptr_t> LabelLocations;
46 std::vector<uintptr_t> CPLocations;
50 std::vector<uintptr_t> CPSections;
54 std::vector<uintptr_t> JTLocations;
102 uintptr_t getCurrentPCValue() const;
106 uintptr_t getCurrentPCOffset() const;
138 virtual uintptr_t getMachineBasicBlockAddress(MachineBasicBlock *MBB) const;
146 virtual uintptr_t getJumpTableEntryAddress(unsigned Index) const;
155 virtual uintptr_t getConstantPoolEntryAddress(unsigned Index) const;
[all …]
/external/llvm/unittests/Support/
DAllocatorTest.cpp65 uintptr_t a; in TEST()
66 a = (uintptr_t)Alloc.Allocate(1, 2); in TEST()
68 a = (uintptr_t)Alloc.Allocate(1, 4); in TEST()
70 a = (uintptr_t)Alloc.Allocate(1, 8); in TEST()
72 a = (uintptr_t)Alloc.Allocate(1, 16); in TEST()
74 a = (uintptr_t)Alloc.Allocate(1, 32); in TEST()
76 a = (uintptr_t)Alloc.Allocate(1, 64); in TEST()
78 a = (uintptr_t)Alloc.Allocate(1, 128); in TEST()
111 MemSlab *Slab = (MemSlab*)(((uintptr_t)MemBase+sizeof(void*)+Alignment-1) & in Allocate()
112 ~(uintptr_t)(Alignment - 1)); in Allocate()
[all …]
/external/v8/src/
Dgdb-jit.cc56 uintptr_t position() const { in position()
63 Slot(Writer* w, uintptr_t offset) : w_(w), offset_(offset) { } in Slot()
79 uintptr_t offset_;
90 Slot<T> SlotAt(uintptr_t offset) { in SlotAt()
102 uintptr_t slot_position = position_; in CreateSlotsHere()
108 void Ensure(uintptr_t pos) { in Ensure()
119 void Align(uintptr_t align) { in Align()
120 uintptr_t delta = position_ % align; in Align()
122 uintptr_t padding = align - delta; in Align()
127 void WriteULEB128(uintptr_t value) { in WriteULEB128()
[all …]
Dexecution.h159 void SetStackLimit(uintptr_t limit);
193 uintptr_t climit() { in climit()
196 uintptr_t real_climit() { in real_climit()
199 uintptr_t jslimit() { in jslimit()
202 uintptr_t real_jslimit() { in real_jslimit()
240 static const uintptr_t kInterruptLimit = V8_UINT64_C(0xfffffffffffffffe);
241 static const uintptr_t kIllegalLimit = V8_UINT64_C(0xfffffffffffffff8);
243 static const uintptr_t kInterruptLimit = 0xfffffffe;
244 static const uintptr_t kIllegalLimit = 0xfffffff8;
266 uintptr_t real_jslimit_; // Actual JavaScript stack limit set for the VM.
[all …]
/external/clang/test/Sema/
Dblock-return.c53 typedef unsigned int * uintptr_t; typedef
60 …Boolean (^isEqual)(const CFBasicHash *, uintptr_t stack_value_or_key1, uintptr_t stack_value_or_ke…
66 Boolean (*value_equal)(uintptr_t, uintptr_t) = 0; in foo3()
68 …cb.isEqual = ^(const CFBasicHash *table, uintptr_t stack_value_or_key1, uintptr_t stack_value_or_k… in foo3()
69 …return (Boolean)(uintptr_t)INVOKE_CALLBACK2(value_equal, (uintptr_t)stack_value_or_key1, (uintptr_… in foo3()
Dinit.c107 uintptr_t a;
122 uintptr_t ptrasintadd1 = (uintptr_t)&a - 4;
123 uintptr_t ptrasintadd2 = (uintptr_t)&a + 4;
124 uintptr_t ptrasintadd3 = 4 + (uintptr_t)&a;
/external/webkit/Source/ThirdParty/ANGLE/src/compiler/preprocessor/
Dmemory.c75 uintptr_t free, end;
77 uintptr_t alignmask;
93 pool->alignmask = (uintptr_t)(align)-1; in mem_CreatePool()
94 pool->free = ((uintptr_t)(pool + 1) + pool->alignmask) & ~pool->alignmask; in mem_CreatePool()
95 pool->end = (uintptr_t)pool + chunksize; in mem_CreatePool()
121 if (pool->free > pool->end || pool->free < (uintptr_t)rv) { in mem_Alloc()
124 pool->free = (uintptr_t)rv; in mem_Alloc()
133 pool->free = (uintptr_t)ch + minreq; in mem_Alloc()
134 pool->end = (uintptr_t)ch + pool->chunksize; in mem_Alloc()
138 rv = (void *)(((uintptr_t)(ch+1) + pool->alignmask) & ~pool->alignmask); in mem_Alloc()
/external/elfutils/libdw/
Dmemory-access.h27 addr = (__typeof (addr)) (((uintptr_t) (addr)) + 1); \
32 addr = (__typeof (addr)) (((uintptr_t) (addr)) + 1); \
37 addr = (__typeof (addr)) (((uintptr_t) (addr)) + 1); \
42 addr = (__typeof (addr)) (((uintptr_t) (addr)) + 1); \
57 addr = (__typeof (addr)) (((uintptr_t) (addr)) + 1); \
67 addr = (__typeof (addr)) (((uintptr_t) (addr)) + 1); \
77 addr = (__typeof (addr)) (((uintptr_t) (addr)) + 1); \
87 addr = (__typeof (addr)) (((uintptr_t) (addr)) + 1); \
213 Addr = (__typeof (Addr)) (((uintptr_t) (Addr)) + 2); \
217 Addr = (__typeof (Addr)) (((uintptr_t) (Addr)) + 2); \
[all …]
/external/llvm/lib/Target/X86/
DX86JITInfo.h28 uintptr_t PICBase;
58 virtual uintptr_t getPICJumpTableEntry(uintptr_t BB, uintptr_t JTBase);
76 void setPICBase(uintptr_t Base) { PICBase = Base; } in setPICBase()
77 uintptr_t getPICBase() const { return PICBase; } in getPICBase()
/external/llvm/lib/Object/
DCOFFObjectFile.cpp41 uintptr_t addr, in checkAddr()
45 addr + size > uintptr_t(m->getBufferEnd())) { in checkAddr()
58 uintptr_t offset = uintptr_t(addr) - uintptr_t(base()); in toSymb()
80 uintptr_t offset = uintptr_t(addr) - uintptr_t(SectionTable); in toSec()
92 Symb.p = reinterpret_cast<uintptr_t>(symb); in getSymbolNext()
232 Sec.p = reinterpret_cast<uintptr_t>(sec); in getSectionNext()
280 uintptr_t con_start = uintptr_t(base()) + sec->PointerToRawData; in getSectionContents()
281 uintptr_t con_end = con_start + sec->SizeOfRawData; in getSectionContents()
282 if (con_end >= uintptr_t(Data->getBufferEnd())) in getSectionContents()
328 if (!checkAddr(Data, ec, uintptr_t(Header), sizeof(coff_file_header))) in COFFObjectFile()
[all …]

12345678910>>...13