Lines Matching refs:ptr
35 void* ptr; member
92 __func__, (uintptr_t)allocation->ptr, allocation->size); in allocation_tracker_expect_no_allocations()
99 void* allocation_tracker_notify_alloc(uint8_t allocator_id, void* ptr, in allocation_tracker_notify_alloc() argument
104 if (!enabled || !ptr) return ptr; in allocation_tracker_notify_alloc()
110 return_ptr = ((char*)ptr) + canary_size; in allocation_tracker_notify_alloc()
125 allocation->ptr = return_ptr; in allocation_tracker_notify_alloc()
136 void* ptr) { in allocation_tracker_notify_free() argument
139 if (!enabled || !ptr) return ptr; in allocation_tracker_notify_free()
141 auto map_entry = allocations.find(ptr); in allocation_tracker_notify_free()
155 UNUSED_ATTR const char* beginning_canary = ((char*)ptr) - canary_size; in allocation_tracker_notify_free()
156 UNUSED_ATTR const char* end_canary = ((char*)ptr) + allocation->size; in allocation_tracker_notify_free()
166 allocations.erase(ptr); in allocation_tracker_notify_free()
169 return ((char*)ptr) - canary_size; in allocation_tracker_notify_free()