Lines Matching refs:uptr

63   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;
102 uptr *shadow_stack_pos;
165 uptr *shadow_stack_pos;
170 uptr trace_prev_pc;
190 uptr *shadow_stack;
191 uptr *shadow_stack_end;
202 uptr stk_addr;
203 uptr stk_size;
204 uptr tls_addr;
205 uptr tls_size;
211 uptr slot_epoch;
271 uptr sync_epoch;
290 uptr addr_min;
291 uptr addr_max;
296 uptr pc_or_addr;
369 uptr global_epoch; // guarded by slot_mtx and by all slot mutexes
374 uptr trace_part_total_allocated SANITIZER_GUARDED_BY(slot_mtx);
375 uptr trace_part_recycle_finished SANITIZER_GUARDED_BY(slot_mtx);
376 uptr trace_part_finished_excess SANITIZER_GUARDED_BY(slot_mtx);
378 uptr mapped_shadow_begin;
379 uptr mapped_shadow_end;
403 const char *GetObjectTypeFromTag(uptr tag);
404 const char *GetReportHeaderFromTag(uptr tag);
405 uptr TagFromShadowStackFrame(uptr pc);
409 void AddMemoryAccess(uptr addr, uptr external_tag, Shadow s, Tid tid,
415 int AddMutex(uptr addr, StackID creation_stack_id);
416 void AddLocation(uptr addr, uptr size);
424 ScopedReportBase(ReportType typ, uptr tag);
439 explicit ScopedReport(ReportType typ, uptr tag = kExternalTagNone);
447 ThreadContext *IsThreadStackOrTls(uptr addr, bool *is_stack);
454 void ExtractTagFromStack(StackTraceTy *stack, uptr *tag = nullptr) {
456 uptr possible_tag_pc = stack->trace[stack->size - 2];
457 uptr possible_tag = TagFromShadowStackFrame(possible_tag_pc);
465 void ObtainCurrentStack(ThreadState *thr, uptr toppc, StackTraceTy *stack,
466 uptr *tag = nullptr) {
467 uptr size = thr->shadow_stack_pos - thr->shadow_stack;
468 uptr start = 0;
482 void MapShadow(uptr addr, uptr size);
483 void MapThreadTrace(uptr addr, uptr size, const char *name);
484 void DontNeedShadowFor(uptr addr, uptr size);
485 void UnmapShadow(ThreadState *thr, uptr addr, uptr size);
487 void DontDumpShadow(uptr addr, uptr size);
492 void ForkBefore(ThreadState *thr, uptr pc);
493 void ForkParentAfter(ThreadState *thr, uptr pc);
494 void ForkChildAfter(ThreadState *thr, uptr pc, bool start_thread);
500 bool IsExpectedReport(uptr addr, uptr size);
514 StackID CurrentStackId(ThreadState *thr, uptr pc);
516 void PrintCurrentStack(ThreadState *thr, uptr pc);
517 void PrintCurrentStackSlow(uptr pc); // uses libunwind
518 MBlock *JavaHeapBlock(uptr addr, uptr *start);
524 void OnUserAlloc(ThreadState *thr, uptr pc, uptr p, uptr sz, bool write);
525 void OnUserFree(ThreadState *thr, uptr pc, uptr p, bool write);
527 void MemoryAccess(ThreadState *thr, uptr pc, uptr addr, uptr size,
529 void UnalignedMemoryAccess(ThreadState *thr, uptr pc, uptr addr, uptr size,
533 void MemoryAccessRangeT(ThreadState *thr, uptr pc, uptr addr, uptr size);
536 void MemoryAccessRange(ThreadState *thr, uptr pc, uptr addr, uptr size, in MemoryAccessRange()
547 void MemoryRangeFreed(ThreadState *thr, uptr pc, uptr addr, uptr size);
548 void MemoryResetRange(ThreadState *thr, uptr pc, uptr addr, uptr size);
549 void MemoryRangeImitateWrite(ThreadState *thr, uptr pc, uptr addr, uptr size);
550 void MemoryRangeImitateWriteOrResetRange(ThreadState *thr, uptr pc, uptr addr,
551 uptr size);
553 void ThreadIgnoreBegin(ThreadState *thr, uptr pc);
555 void ThreadIgnoreSyncBegin(ThreadState *thr, uptr pc);
558 Tid ThreadCreate(ThreadState *thr, uptr pc, uptr uid, bool detached);
562 Tid ThreadConsumeTid(ThreadState *thr, uptr pc, uptr uid);
563 void ThreadJoin(ThreadState *thr, uptr pc, Tid tid);
564 void ThreadDetach(ThreadState *thr, uptr pc, Tid tid);
569 void ThreadNotJoined(ThreadState *thr, uptr pc, Tid tid, uptr uid);
578 void MutexCreate(ThreadState *thr, uptr pc, uptr addr, u32 flagz = 0);
579 void MutexDestroy(ThreadState *thr, uptr pc, uptr addr, u32 flagz = 0);
580 void MutexPreLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz = 0);
581 void MutexPostLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz = 0,
583 int MutexUnlock(ThreadState *thr, uptr pc, uptr addr, u32 flagz = 0);
584 void MutexPreReadLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz = 0);
585 void MutexPostReadLock(ThreadState *thr, uptr pc, uptr addr, u32 flagz = 0);
586 void MutexReadUnlock(ThreadState *thr, uptr pc, uptr addr);
587 void MutexReadOrWriteUnlock(ThreadState *thr, uptr pc, uptr addr);
588 void MutexRepair(ThreadState *thr, uptr pc, uptr addr); // call on EOWNERDEAD
589 void MutexInvalidAccess(ThreadState *thr, uptr pc, uptr addr);
591 void Acquire(ThreadState *thr, uptr pc, uptr addr);
599 void Release(ThreadState *thr, uptr pc, uptr addr);
600 void ReleaseStoreAcquire(ThreadState *thr, uptr pc, uptr addr);
601 void ReleaseStore(ThreadState *thr, uptr pc, uptr addr);
602 void AfterSleep(ThreadState *thr, uptr pc);
606 uptr ALWAYS_INLINE HeapEnd() { in HeapEnd()
615 void DoReset(ThreadState *thr, uptr epoch);
618 ThreadState *FiberCreate(ThreadState *thr, uptr pc, unsigned flags);
619 void FiberDestroy(ThreadState *thr, uptr pc, ThreadState *fiber);
620 void FiberSwitch(ThreadState *thr, uptr pc, ThreadState *fiber, unsigned flags);
694 bool RestoreStack(EventType type, Sid sid, Epoch epoch, uptr addr, uptr size,
696 MutexSet *pmset, uptr *ptag);
722 if (UNLIKELY(((uptr)(pos + 1) & TracePart::kAlignment) == 0)) in TraceAcquire()
731 atomic_store_relaxed(&thr->trace_pos, (uptr)(evp + 1)); in TraceRelease()
747 uptr pc = 0) {
761 bool TryTraceMemoryAccess(ThreadState *thr, uptr pc, uptr addr, uptr size,
764 bool TryTraceMemoryAccessRange(ThreadState *thr, uptr pc, uptr addr, uptr size,
766 void TraceMemoryAccessRange(ThreadState *thr, uptr pc, uptr addr, uptr size,
768 void TraceFunc(ThreadState *thr, uptr pc = 0);
769 void TraceMutexLock(ThreadState *thr, EventType type, uptr pc, uptr addr,
771 void TraceMutexUnlock(ThreadState *thr, uptr addr);
775 void TraceRestartFuncEntry(ThreadState *thr, uptr pc);
780 void FuncEntry(ThreadState *thr, uptr pc) { in FuncEntry()